public class HudButtonUI extends BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
protected void |
installDefaults(AbstractButton b) |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintText(Graphics g,
AbstractButton button,
Rectangle textRect,
String text) |
clearTextShiftOffset, createButtonListener, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
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.protected void installDefaults(AbstractButton b)
installDefaults
in class BasicButtonUI
public void paint(Graphics g, JComponent c)
paint
in class BasicButtonUI
protected void paintText(Graphics g, AbstractButton button, Rectangle textRect, String text)
paintText
in class BasicButtonUI