|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
com.explodingpixels.macwidgets.plaf.HudButtonUI
public class 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 | |
|---|---|
HudButtonUI()
Creates a HUD style ButtonUI with full rounded edges. |
|
HudButtonUI(HudPaintingUtils.Roundedness roundedness)
Creates a HUD style ButtonUI with the given edge rounded ness. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HudButtonUI()
ButtonUI with full rounded edges.
public HudButtonUI(HudPaintingUtils.Roundedness roundedness)
ButtonUI with the given edge rounded ness.
roundedness - the rounded style to use for the button edges.| Method Detail |
|---|
protected void installDefaults(javax.swing.AbstractButton b)
installDefaults in class javax.swing.plaf.basic.BasicButtonUI
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicButtonUI
protected void paintText(java.awt.Graphics g,
javax.swing.AbstractButton button,
java.awt.Rectangle textRect,
java.lang.String text)
paintText in class javax.swing.plaf.basic.BasicButtonUI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||