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 ComponentUI
createUI(JComponent b)
Dimension
getPreferredSize(JComponent c)
protected String
getPropertyPrefix()
protected void
installDefaults(AbstractButton b)
protected void
paintButtonPressed(Graphics g, AbstractButton b)
protected void
paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
protected void
paintText(Graphics g, JComponent c, Rectangle textRect, String text)
void
update(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:
installDefaults
in classBasicButtonUI
-
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in classBasicToggleButtonUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
update
in classComponentUI
-
paintButtonPressed
protected void paintButtonPressed(Graphics g, AbstractButton b)
- Overrides:
paintButtonPressed
in classBasicButtonUI
-
paintText
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
- Overrides:
paintText
in classBasicButtonUI
-
paintIcon
protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
- Overrides:
paintIcon
in classBasicToggleButtonUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicButtonUI
-
-