Package editor
Class LabButtonUI
-
public class LabButtonUI extends BasicButtonUI
Needed to properly handle painting of disabled text
-
-
Field Summary
Fields Modifier and Type Field Description protected int
dashedRectGapHeight
protected int
dashedRectGapWidth
protected int
dashedRectGapX
protected int
dashedRectGapY
protected Color
focusColor
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
-
Constructor Summary
Constructors Constructor Description LabButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent c)
protected Color
getFocusColor()
Dimension
getPreferredSize(JComponent c)
protected void
installDefaults(AbstractButton b)
protected void
paintButtonPressed(Graphics g, AbstractButton b)
protected void
paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void
paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
protected void
uninstallDefaults(AbstractButton b)
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
-
-
-
Field Detail
-
dashedRectGapX
protected int dashedRectGapX
-
dashedRectGapY
protected int dashedRectGapY
-
dashedRectGapWidth
protected int dashedRectGapWidth
-
dashedRectGapHeight
protected int dashedRectGapHeight
-
focusColor
protected Color focusColor
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
paintButtonPressed
protected void paintButtonPressed(Graphics g, AbstractButton b)
-
paintText
protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
- Overrides:
paintText
in classBasicButtonUI
-
installDefaults
protected void installDefaults(AbstractButton b)
- Overrides:
installDefaults
in classBasicButtonUI
-
uninstallDefaults
protected void uninstallDefaults(AbstractButton b)
- Overrides:
uninstallDefaults
in classBasicButtonUI
-
getFocusColor
protected Color getFocusColor()
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
- Overrides:
paintFocus
in classBasicButtonUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicButtonUI
-
-