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 styleButtonUI
with full rounded edges.HudButtonUI
(boolean isDarkColorScheme) Creates a HUD styleButtonUI
with full rounded edges.HudButtonUI
(HudPaintingUtils.Roundedness roundedness) Creates a HUD styleButtonUI
with the given edge rounded ness.HudButtonUI
(HudPaintingUtils.Roundedness roundedness, boolean isDarkColorScheme) Creates a HUD styleButtonUI
with the given edge rounded ness.protected
HudButtonUI
(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI) protected
HudButtonUI
(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI, boolean isDarkColorScheme) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
paint
(Graphics g, JComponent c) protected void
paintText
(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, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
HudButtonUI
public HudButtonUI()Creates a HUD styleButtonUI
with full rounded edges. -
HudButtonUI
public HudButtonUI(boolean isDarkColorScheme) Creates a HUD styleButtonUI
with full rounded edges. -
HudButtonUI
Creates a HUD styleButtonUI
with the given edge rounded ness.- Parameters:
roundedness
- the rounded style to use for the button edges.
-
HudButtonUI
Creates a HUD styleButtonUI
with 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:
installDefaults
in classBasicButtonUI
-
paint
- Overrides:
paint
in classBasicButtonUI
-
paintText
- Overrides:
paintText
in classBasicButtonUI
-