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.BasicButtonUI
Creates 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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
installDefaults(javax.swing.AbstractButton b)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
protected void
paintText(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 styleButtonUI
with full rounded edges.
-
HudButtonUI
public HudButtonUI(boolean isDarkColorScheme)
Creates a HUD styleButtonUI
with full rounded edges.
-
HudButtonUI
public HudButtonUI(HudPaintingUtils.Roundedness roundedness)
Creates a HUD styleButtonUI
with 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 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
protected HudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI)
-
-
Method Detail
-
installDefaults
protected void installDefaults(javax.swing.AbstractButton b)
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicButtonUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paint
in 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:
paintText
in classjavax.swing.plaf.basic.BasicButtonUI
-
-