public class HudButtonUI extends BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
Modifier | Constructor and Description |
---|---|
|
HudButtonUI()
Creates a HUD style
ButtonUI with full rounded edges. |
|
HudButtonUI(boolean isDarkColorScheme)
Creates a HUD style
ButtonUI with full rounded edges. |
|
HudButtonUI(HudPaintingUtils.Roundedness roundedness)
Creates a HUD style
ButtonUI with the given edge rounded ness. |
|
HudButtonUI(HudPaintingUtils.Roundedness roundedness,
boolean isDarkColorScheme)
Creates a HUD style
ButtonUI with the given edge rounded ness. |
protected |
HudButtonUI(HudPaintingUtils.Roundedness roundness,
HudComboBoxUI hudComboBoxUI) |
protected |
HudButtonUI(HudPaintingUtils.Roundedness roundness,
HudComboBoxUI hudComboBoxUI,
boolean isDarkColorScheme) |
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(boolean isDarkColorScheme)
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.public HudButtonUI(HudPaintingUtils.Roundedness roundedness, boolean isDarkColorScheme)
ButtonUI
with the given edge rounded ness.roundedness
- the rounded style to use for the button edges.protected HudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI, boolean isDarkColorScheme)
protected HudButtonUI(HudPaintingUtils.Roundedness roundness, HudComboBoxUI hudComboBoxUI)
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