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 String
FIRST
static String
JBUTTON_SEGMENT_POSITION
static String
LAST
static String
MIDDLE
static String
ONLY
static Color
PRESSED_BACKGROUND
static String
SEGMENTED_TEXTURED
protected static int
SF
static Color
UNFOCUSED_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 ComponentUI
createUI(JComponent b)
static void
drawDelimiter(Graphics g, AbstractButton b)
static void
drawRoundRect(Graphics g, AbstractButton b)
static void
fillRoundRect(Graphics g, AbstractButton b)
static String
getPosition(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, JComponent c, Rectangle iconRect)
protected void
uninstallListeners(AbstractButton b)
void
update(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:
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 classBasicButtonUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
update
in 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:
paintButtonPressed
in classBasicButtonUI
-
paintIcon
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect)
- Overrides:
paintIcon
in classBasicButtonUI
-
-