Package editor
Class LabButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- editor.WindowsButtonUI
-
- editor.LabButtonUI
-
public class LabButtonUI extends WindowsButtonUI
Needed to properly handle painting of disabled text
-
-
Field Summary
-
Fields inherited from class editor.WindowsButtonUI
dashedRectGapHeight, dashedRectGapWidth, dashedRectGapX, dashedRectGapY, focusColor
-
-
Constructor Summary
Constructors Constructor Description LabButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected voidpaintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)protected voidpaintText(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text)-
Methods inherited from class editor.WindowsButtonUI
getFocusColor, getPreferredSize, installDefaults, paintFocus, uninstallDefaults
-
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
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
paintButtonPressed
protected void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)- Overrides:
paintButtonPressedin classWindowsButtonUI
-
paintText
protected void paintText(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text)- Overrides:
paintTextin classjavax.swing.plaf.basic.BasicButtonUI
-
-