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

-
-
Constructor Summary
Constructors Modifier Constructor Description HudButtonUI()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinstallDefaults(javax.swing.AbstractButton b)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voidpaintText(java.awt.Graphics g, javax.swing.AbstractButton button, java.awt.Rectangle textRect, java.lang.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
-
-
-
-
Constructor Detail
-
HudButtonUI
public HudButtonUI()
Creates a HUD styleButtonUIwith full rounded edges.
-
HudButtonUI
public HudButtonUI(boolean isDarkColorScheme)
Creates a HUD styleButtonUIwith full rounded edges.
-
HudButtonUI
public HudButtonUI(HudPaintingUtils.Roundedness roundedness)
Creates a HUD styleButtonUIwith the given edge rounded ness.- Parameters:
roundedness- the rounded style to use for the button edges.
-
HudButtonUI
public HudButtonUI(HudPaintingUtils.Roundedness roundedness, boolean isDarkColorScheme)
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
protected HudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI)
-
-
Method Detail
-
installDefaults
protected void installDefaults(javax.swing.AbstractButton b)
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicButtonUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicButtonUI
-
paintText
protected void paintText(java.awt.Graphics g, javax.swing.AbstractButton button, java.awt.Rectangle textRect, java.lang.String text)- Overrides:
paintTextin classjavax.swing.plaf.basic.BasicButtonUI
-
-