de.muntjak.tinylookandfeel
Class TinyButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
de.muntjak.tinylookandfeel.TinyButtonUI
- Direct Known Subclasses:
- TinySpinnerButtonUI, TinyWindowButtonUI
public class TinyButtonUI
- extends javax.swing.plaf.metal.MetalButtonUI
TinyButtonUI. The UI delegate for JButton, JToggleButton, window buttons
and arrow buttons of JSpinner and JComboBox.
| Fields inherited from class javax.swing.plaf.metal.MetalButtonUI |
disabledTextColor, focusColor, selectColor |
| Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
defaultTextIconGap, defaultTextShiftOffset |
|
Method Summary |
static void |
clearCache()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component. |
void |
installDefaults(javax.swing.AbstractButton button)
|
void |
installUI(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintButtonPressed(java.awt.Graphics g,
javax.swing.AbstractButton button)
|
protected void |
paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
|
protected void |
paintIcon(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle iconRect)
|
protected void |
paintToggleButtonIcon(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle iconRect)
|
void |
paintToolBarButton(java.awt.Graphics g,
javax.swing.AbstractButton b)
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
|
| Methods inherited from class javax.swing.plaf.metal.MetalButtonUI |
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintText, uninstallDefaults |
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, 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 |
BG_CHANGE_AMOUNT
public static final int BG_CHANGE_AMOUNT
- See Also:
- Constant Field Values
TinyButtonUI
public TinyButtonUI()
clearCache
public static void clearCache()
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI in class javax.swing.plaf.basic.BasicButtonUI
installDefaults
public void installDefaults(javax.swing.AbstractButton button)
- Overrides:
installDefaults in class javax.swing.plaf.metal.MetalButtonUI
paintFocus
protected void paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
- Overrides:
paintFocus in class javax.swing.plaf.metal.MetalButtonUI
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
- Creates the UI delegate for the given component.
- Parameters:
mainColor - The component to create its UI delegate.
- Returns:
- The UI delegate for the given component.
paintButtonPressed
protected void paintButtonPressed(java.awt.Graphics g,
javax.swing.AbstractButton button)
- Overrides:
paintButtonPressed in class javax.swing.plaf.metal.MetalButtonUI
paintToolBarButton
public void paintToolBarButton(java.awt.Graphics g,
javax.swing.AbstractButton b)
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint in class javax.swing.plaf.basic.BasicButtonUI
paintIcon
protected void paintIcon(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle iconRect)
- Overrides:
paintIcon in class javax.swing.plaf.basic.BasicButtonUI
paintToggleButtonIcon
protected void paintToggleButtonIcon(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle iconRect)
update
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
update in class javax.swing.plaf.metal.MetalButtonUI