public class WindowsSlidingButtonUI extends SlidingButtonUI
SlidingButtonUI
Modifier and Type | Field and Description |
---|---|
protected static int |
dashedRectGapHeight |
protected static int |
dashedRectGapWidth |
protected static int |
dashedRectGapX |
protected static int |
dashedRectGapY |
protected Color |
focusColor |
defaultTextIconGap, defaultTextShiftOffset
Modifier | Constructor and Description |
---|---|
protected |
WindowsSlidingButtonUI()
Private, no need for outer classes to instantiate
|
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c) |
protected Color |
getFocusColor() |
Dimension |
getPreferredSize(JComponent c) |
protected void |
installBorder(AbstractButton b)
Install a border on the button
|
void |
installDefaults(AbstractButton b) |
protected void |
paintBackground(Graphics2D g,
AbstractButton b) |
protected void |
paintButtonPressed(Graphics g,
AbstractButton b) |
protected void |
paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect) |
protected void |
uninstallDefaults(AbstractButton b) |
getMaximumSize, getMinimumSize, getPropertyPrefix, paint
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, installKeyboardActions, installListeners, installUI, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Color focusColor
protected static int dashedRectGapX
protected static int dashedRectGapY
protected static int dashedRectGapWidth
protected static int dashedRectGapHeight
protected WindowsSlidingButtonUI()
public static ComponentUI createUI(JComponent c)
protected void installBorder(AbstractButton b)
public void installDefaults(AbstractButton b)
installDefaults
in class BasicButtonUI
protected void uninstallDefaults(AbstractButton b)
uninstallDefaults
in class BasicButtonUI
protected void paintBackground(Graphics2D g, AbstractButton b)
paintBackground
in class SlidingButtonUI
protected void paintButtonPressed(Graphics g, AbstractButton b)
paintButtonPressed
in class BasicButtonUI
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus
in class BasicButtonUI
protected Color getFocusColor()
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class SlidingButtonUI