Package com.tagtraum.beatunes.plaf
Class BeaTunesSegmentedToggleButtonUI
- 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.BeaTunesSegmentedToggleButtonUI
-
public class BeaTunesSegmentedToggleButtonUI extends BasicToggleButtonUI
BeaTunesSegmentedToggleButtonUI.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static Color
PRESSED_BACKGROUND
static Color
SELECTED_BACKGROUND
static Color
UNFOCUSED_SELECTED_BACKGROUND
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
-
Constructor Summary
Constructors Constructor Description BeaTunesSegmentedToggleButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent b)
protected String
getPropertyPrefix()
protected void
installDefaults(AbstractButton b)
protected void
installListeners(AbstractButton b)
protected void
paintButtonPressed(Graphics g, AbstractButton b)
protected void
paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
protected void
uninstallListeners(AbstractButton b)
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, getPreferredSize, installKeyboardActions, installUI, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, 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
-
installListeners
protected void installListeners(AbstractButton b)
- Overrides:
installListeners
in classBasicButtonUI
-
uninstallListeners
protected void uninstallListeners(AbstractButton b)
- Overrides:
uninstallListeners
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
-
paintIcon
protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
- Overrides:
paintIcon
in classBasicToggleButtonUI
-
-