Package editor
Class LabButtonUI
Needed to properly handle painting of disabled text
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intprotected ColorFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIprotected Colorprotected voidprotected voidprotected voidpaintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) protected voidpaintText(Graphics g, AbstractButton b, Rectangle textRect, String text) protected voidMethods 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, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
dashedRectGapX
protected int dashedRectGapX -
dashedRectGapY
protected int dashedRectGapY -
dashedRectGapWidth
protected int dashedRectGapWidth -
dashedRectGapHeight
protected int dashedRectGapHeight -
focusColor
-
-
Constructor Details
-
LabButtonUI
public LabButtonUI()
-
-
Method Details
-
createUI
-
paintButtonPressed
-
paintText
- Overrides:
paintTextin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicButtonUI
-
getFocusColor
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Overrides:
paintFocusin classBasicButtonUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicButtonUI
-