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 Button
s, 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, selectColor
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
Returns an instance ofTadukooButtonUI
.Retrieves the Property Prefix string present on the Component UI class.void
protected void
protected void
paintFocus
(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) protected void
paintText
(Graphics g, JComponent c, Rectangle textRect, String text) void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor
Methods 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, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getPropertyPrefixString
in interfaceTComponentUIUtil
- Returns:
- The property prefix string for this Component UI
-
installDefaults
- Overrides:
installDefaults
in classMetalButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classMetalButtonUI
-
update
- Overrides:
update
in classMetalButtonUI
-
paintButtonPressed
- Overrides:
paintButtonPressed
in classMetalButtonUI
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Overrides:
paintFocus
in classMetalButtonUI
-
paintText
- Overrides:
paintText
in classMetalButtonUI
-