Package com.tagtraum.beatunes.plaf
Class BeaTunesSegmentedButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- com.tagtraum.beatunes.plaf.BeaTunesSegmentedButtonUI
-
public class BeaTunesSegmentedButtonUI extends BasicButtonUI
BeaTunesSegmentedButtonUI.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIRSTstatic StringJBUTTON_SEGMENT_POSITIONstatic StringLASTstatic StringMIDDLEstatic StringONLYstatic ColorPRESSED_BACKGROUNDstatic StringSEGMENTED_TEXTUREDprotected static intSFstatic ColorUNFOCUSED_OUTLINE-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
-
Constructor Summary
Constructors Constructor Description BeaTunesSegmentedButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent b)static voiddrawDelimiter(Graphics g, AbstractButton b)static voiddrawRoundRect(Graphics g, AbstractButton b)static voidfillRoundRect(Graphics g, AbstractButton b)static StringgetPosition(JComponent b)protected StringgetPropertyPrefix()protected voidinstallDefaults(AbstractButton b)protected voidinstallListeners(AbstractButton b)protected voidpaintButtonPressed(Graphics g, AbstractButton b)protected voidpaintIcon(Graphics g, JComponent c, Rectangle iconRect)protected voiduninstallListeners(AbstractButton b)voidupdate(Graphics g, JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getTextShiftOffset, installKeyboardActions, installUI, paint, paintFocus, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Field Detail
-
ONLY
public static final String ONLY
- See Also:
- Constant Field Values
-
FIRST
public static final String FIRST
- See Also:
- Constant Field Values
-
LAST
public static final String LAST
- See Also:
- Constant Field Values
-
MIDDLE
public static final String MIDDLE
- See Also:
- Constant Field Values
-
JBUTTON_SEGMENT_POSITION
public static final String JBUTTON_SEGMENT_POSITION
- See Also:
- Constant Field Values
-
SEGMENTED_TEXTURED
public static final String SEGMENTED_TEXTURED
- See Also:
- Constant Field Values
-
SF
protected static final int SF
-
PRESSED_BACKGROUND
public static final Color PRESSED_BACKGROUND
-
UNFOCUSED_OUTLINE
public static final Color UNFOCUSED_OUTLINE
-
-
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 classBasicButtonUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
fillRoundRect
public static void fillRoundRect(Graphics g, AbstractButton b)
-
drawRoundRect
public static void drawRoundRect(Graphics g, AbstractButton b)
-
drawDelimiter
public static void drawDelimiter(Graphics g, AbstractButton b)
-
getPosition
public static String getPosition(JComponent b)
-
paintButtonPressed
protected void paintButtonPressed(Graphics g, AbstractButton b)
- Overrides:
paintButtonPressedin classBasicButtonUI
-
paintIcon
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect)
- Overrides:
paintIconin classBasicButtonUI
-
-