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 intdashedRectGapHeightprotected intdashedRectGapWidthprotected intdashedRectGapXprotected intdashedRectGapYprotected ColorfocusColor-
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 ComponentUIcreateUI(JComponent c)protected ColorgetFocusColor()DimensiongetPreferredSize(JComponent c)protected voidinstallDefaults(AbstractButton b)protected voidpaintButtonPressed(Graphics g, AbstractButton b)protected voidpaintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)protected voidpaintText(Graphics g, AbstractButton b, Rectangle textRect, String text)protected voiduninstallDefaults(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:
paintTextin classBasicButtonUI
-
installDefaults
protected void installDefaults(AbstractButton b)
- Overrides:
installDefaultsin classBasicButtonUI
-
uninstallDefaults
protected void uninstallDefaults(AbstractButton b)
- Overrides:
uninstallDefaultsin classBasicButtonUI
-
getFocusColor
protected Color getFocusColor()
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
- Overrides:
paintFocusin classBasicButtonUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicButtonUI
-
-