Class TadukooButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
com.github.tadukoo.view.lookandfeel.componentui.TadukooButtonUI
- All Implemented Interfaces:
TComponentUIUtil
A
ComponentUI class for use with Buttons, used by TadukooLookAndFeel to
provide customizations for the Buttons beyond those present in existing Look & Feels.- Since:
- Alpha v.0.1
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColorFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIReturns an instance ofTadukooButtonUI.Retrieves the Property Prefix string present on the Component UI class.voidprotected voidprotected voidpaintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) protected voidpaintText(Graphics g, JComponent c, Rectangle textRect, String text) voidvoidupdate(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColorMethods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tadukoo.view.lookandfeel.componentui.TComponentUIUtil
getBackgroundPaint, getBackgroundPaint, getDisabledForegroundPaint, getDisabledForegroundPaint, getDisabledTextPaint, getDisabledTextPaint, getFocusPaint, getFocusPaint, getForegroundPaint, getForegroundPaint, getSelectPaint, getSelectPaint, getShape, getShape, installHasDisabledForegroundPaint, installHasDisabledForegroundPaintDefaults, installHasDisabledTextPaint, installHasDisabledTextPaintDefaults, installHasSelectAndFocusPaints, installHasSelectAndFocusPaintsDefaults, installHasSizablePaints, installShaped, installTComponent, installTComponentDefaults, paintBackground, uninstallHasDisabledForegroundPaint, uninstallHasDisabledForegroundPaintDefaults, uninstallHasDisabledTextPaint, uninstallHasDisabledTextPaintDefaults, uninstallHasSelectAndFocusPaints, uninstallHasSelectAndFocusPaintsDefaults, uninstallHasSizablePaints, uninstallShaped, uninstallTComponent, uninstallTComponentDefaults
-
Constructor Details
-
TadukooButtonUI
public TadukooButtonUI()
-
-
Method Details
-
createUI
Returns an instance ofTadukooButtonUI.- Parameters:
c- a component- Returns:
- an instance of
TadukooButtonUI
-
getPropertyPrefixString
Retrieves the Property Prefix string present on the Component UI class.
This method is necessary due to the normal propertyPrefix method being default, so it's not available here in this interface.- Specified by:
getPropertyPrefixStringin interfaceTComponentUIUtil- Returns:
- The property prefix string for this Component UI
-
installDefaults
- Overrides:
installDefaultsin classMetalButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classMetalButtonUI
-
update
- Overrides:
updatein classMetalButtonUI
-
paintButtonPressed
- Overrides:
paintButtonPressedin classMetalButtonUI
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Overrides:
paintFocusin classMetalButtonUI
-
paintText
- Overrides:
paintTextin classMetalButtonUI
-