public class DarkRadioButtonUI extends MetalRadioButtonUI implements PropertyChangeListener, ToggleButtonConstants
Modifier and Type | Field and Description |
---|---|
protected BasicButtonListener |
buttonListener |
protected RectangularShape |
hitArea |
protected int |
iconBaselineOffset |
protected static Rectangle |
iconRect |
protected KeyListener |
keyListener |
protected JToggleButton |
radioButton |
protected static Dimension |
size |
protected static Rectangle |
textRect |
protected static Rectangle |
viewRect |
disabledTextColor, focusColor, selectColor
icon
defaultTextIconGap, defaultTextShiftOffset
KEY_CLEAR_HIT_AREA, KEY_IS_TABLE_EDITOR, KEY_IS_TABLE_RENDERER, KEY_IS_TREE_EDITOR, KEY_IS_TREE_RENDERER, KEY_VARIANT, KEY_VERTICAL_ICON_OFFSET, VARIANT_SLIDER
Constructor and Description |
---|
DarkRadioButtonUI() |
getDisabledTextColor, getFocusColor, getSelectColor, paintFocus, uninstallDefaults
getPreferredSize, getPropertyPrefix
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions
getAccessibleChild, getAccessibleChildrenCount, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInCell, isSlider, isTableCellEditor, isTreeCellEditor, isTreeOrTableCellEditor
protected static final Rectangle viewRect
protected static final Rectangle iconRect
protected static final Rectangle textRect
protected static Dimension size
protected RectangularShape hitArea
protected JToggleButton radioButton
protected int iconBaselineOffset
protected BasicButtonListener buttonListener
protected KeyListener keyListener
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class BasicButtonUI
public void installDefaults(AbstractButton b)
installDefaults
in class MetalRadioButtonUI
protected void installIcons()
protected void installListeners(AbstractButton button)
installListeners
in class BasicRadioButtonUI
protected KeyListener createKeyListener(AbstractButton button)
public void uninstallUI(JComponent c)
uninstallUI
in class BasicButtonUI
protected void uninstallListeners(AbstractButton button)
uninstallListeners
in class BasicRadioButtonUI
public void paint(Graphics g2d, JComponent c)
paint
in class MetalRadioButtonUI
protected void paintBackground(JComponent c, Graphics2D g)
public static void paintText(Graphics2D g, AbstractButton b, Rectangle textRect, String text, FontMetrics fm, Color disabledTextColor)
protected Icon getStateIcon(AbstractButton b)
public static Icon getIconBullet(JComponent c, Graphics2D g, AbstractButton b)
public Icon getDefaultIcon()
getDefaultIcon
in class BasicRadioButtonUI
protected String layout(AbstractButton b, FontMetrics fm)
protected RectangularShape calculateHitArea()
public boolean contains(JComponent c, int x, int y)
contains
in class ComponentUI
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener