Class HudButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
com.explodingpixels.macwidgets.plaf.HudButtonUI
Creates a Heads Up Display (HUD) style button, similar to that seen in various iApps (e.g.
iPhoto).


-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a HUD styleButtonUIwith full rounded edges.HudButtonUI(boolean isDarkColorScheme) Creates a HUD styleButtonUIwith full rounded edges.HudButtonUI(HudPaintingUtils.Roundedness roundedness) Creates a HUD styleButtonUIwith the given edge rounded ness.HudButtonUI(HudPaintingUtils.Roundedness roundedness, boolean isDarkColorScheme) Creates a HUD styleButtonUIwith the given edge rounded ness.protectedHudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI) protectedHudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI, boolean isDarkColorScheme) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidpaint(Graphics g, JComponent c) protected voidpaintText(Graphics g, AbstractButton button, Rectangle textRect, String text) Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
HudButtonUI
public HudButtonUI()Creates a HUD styleButtonUIwith full rounded edges. -
HudButtonUI
public HudButtonUI(boolean isDarkColorScheme) Creates a HUD styleButtonUIwith full rounded edges. -
HudButtonUI
Creates a HUD styleButtonUIwith the given edge rounded ness.- Parameters:
roundedness- the rounded style to use for the button edges.
-
HudButtonUI
Creates a HUD styleButtonUIwith the given edge rounded ness.- Parameters:
roundedness- the rounded style to use for the button edges.
-
HudButtonUI
protected HudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI, boolean isDarkColorScheme) -
HudButtonUI
-
-
Method Details
-
installDefaults
- Overrides:
installDefaultsin classBasicButtonUI
-
paint
- Overrides:
paintin classBasicButtonUI
-
paintText
- Overrides:
paintTextin classBasicButtonUI
-