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 ColorPRESSED_BACKGROUNDstatic ColorSELECTED_BACKGROUNDstatic ColorUNFOCUSED_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 ComponentUIcreateUI(JComponent b)protected StringgetPropertyPrefix()protected voidinstallDefaults(AbstractButton b)protected voidinstallListeners(AbstractButton b)protected voidpaintButtonPressed(Graphics g, AbstractButton b)protected voidpaintIcon(Graphics g, AbstractButton b, Rectangle iconRect)protected voiduninstallListeners(AbstractButton b)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, 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:
installDefaultsin classBasicButtonUI
-
installListeners
protected void installListeners(AbstractButton b)
- Overrides:
installListenersin classBasicButtonUI
-
uninstallListeners
protected void uninstallListeners(AbstractButton b)
- Overrides:
uninstallListenersin 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
-
paintIcon
protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
- Overrides:
paintIconin classBasicToggleButtonUI
-
-