de.muntjak.tinylookandfeel
Class TinySpinnerButtonUI
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
de.muntjak.tinylookandfeel.TinySpinnerButtonUI
public class TinySpinnerButtonUI
- extends TinyButtonUI
TinySpinnerButtonUI
|
Field Summary |
protected static java.awt.Dimension |
xpSize
|
| 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)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
static javax.swing.JSpinner |
getSpinner(java.awt.Component button)
|
static java.awt.Container |
getSpinnerParent(java.awt.Component button)
|
void |
paint(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, 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 |
xpSize
protected static final java.awt.Dimension xpSize
clearCache
public static void clearCache()
getSpinnerParent
public static java.awt.Container getSpinnerParent(java.awt.Component button)
- Parameters:
button - a JSpinner's increment/decrement button
- Returns:
- the spinner's parent container
getSpinner
public static javax.swing.JSpinner getSpinner(java.awt.Component button)
- Parameters:
button - a JSpinner's increment/decrement button
- Returns:
- the spinner
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint in class TinyButtonUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicButtonUI
- See Also:
BasicButtonUI.getPreferredSize(javax.swing.JComponent)