Package com.tagtraum.beatunes.plaf
Class BeaTunesMasterToggleButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.basic.BasicToggleButtonUI
-
- com.tagtraum.beatunes.plaf.BeaTunesMasterToggleButtonUI
-
public class BeaTunesMasterToggleButtonUI extends BasicToggleButtonUI
BeaTunesMasterToggleUI.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
-
Constructor Summary
Constructors Constructor Description BeaTunesMasterToggleButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent b)DimensiongetPreferredSize(JComponent c)protected StringgetPropertyPrefix()protected voidinstallDefaults(AbstractButton b)protected voidpaintButtonPressed(Graphics g, AbstractButton b)protected voidpaintIcon(Graphics g, AbstractButton b, Rectangle iconRect)protected voidpaintText(Graphics g, JComponent c, Rectangle textRect, String text)voidupdate(Graphics g, JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paint
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent b)
-
installDefaults
protected void installDefaults(AbstractButton b)
- Overrides:
installDefaultsin classBasicButtonUI
-
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefixin classBasicToggleButtonUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
paintButtonPressed
protected void paintButtonPressed(Graphics g, AbstractButton b)
- Overrides:
paintButtonPressedin classBasicButtonUI
-
paintText
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
- Overrides:
paintTextin classBasicButtonUI
-
paintIcon
protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
- Overrides:
paintIconin classBasicToggleButtonUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicButtonUI
-
-