public class DarkToggleButtonUI extends DarkButtonUI implements ToggleButtonConstants
Modifier and Type | Field and Description |
---|---|
protected Color |
background |
protected Color |
backgroundInactive |
protected Color |
borderColor |
protected Color |
focusBorderColor |
protected Color |
inactiveBorderColor |
protected Color |
inactiveSliderBorderColor |
protected Color |
inactiveSliderColor |
protected Color |
selectedForeground |
protected Color |
sliderBorderColor |
protected Color |
sliderColor |
protected Dimension |
sliderSize |
arc, borderlessClick, borderlessHover, borderlessOutlineClick, borderlessOutlineHover, borderSize, button, clickBackground, defaultBackground, defaultClickBackground, defaultForeground, defaultHoverBackground, drawOutline, hoverBackground, iconRect, inactiveBackground, inactiveForeground, keyListener, layoutDelegate, shadowHeight, squareArc, textRect, viewRect
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
KEY_ALT_ARC, KEY_BOTTOM_NEIGHBOUR, KEY_CLICK_COLOR, KEY_CORNER, KEY_HOVER_COLOR, KEY_LEFT_NEIGHBOUR, KEY_NO_ARC, KEY_NO_BORDERLESS_OVERWRITE, KEY_RIGHT_NEIGHBOUR, KEY_SQUARE, KEY_THIN, KEY_TOP_NEIGHBOUR, KEY_VARIANT, VARIANT_BORDERLESS, VARIANT_BORDERLESS_RECTANGULAR, VARIANT_NONE, VARIANT_ONLY_LABEL
Constructor and Description |
---|
DarkToggleButtonUI() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(JComponent c,
int x,
int y) |
protected BasicButtonListener |
createButtonListener(AbstractButton b) |
static ComponentUI |
createUI(JComponent c) |
protected Color |
getBackgroundColor(JComponent c) |
protected Color |
getForeground(AbstractButton button) |
Dimension |
getPreferredSize(JComponent c) |
protected Color |
getSliderBorderColor(AbstractButton b) |
protected Rectangle |
getSliderBounds(JComponent c) |
protected Color |
getSliderColor(AbstractButton b) |
protected Color |
getToggleBorderColor(AbstractButton b) |
protected void |
installDefaults(AbstractButton b) |
protected String |
layout(AbstractButton b,
JComponent c,
FontMetrics fm,
int width,
int height) |
void |
paint(Graphics g,
JComponent c) |
createKeyListener, getArc, getBorderlessBackground, getBorderlessOutline, getEffectiveRect, getPropertyPrefix, installListeners, installUI, paintBorderlessBackground, paintButtonBackground, paintDefaultBackground, paintIcon, paintText, paintText, repaintNeighbours, shouldDrawBackground, uninstallListeners
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallUI
getAccessibleChild, getAccessibleChildrenCount, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInCell, isSlider, isTableCellEditor, isTreeCellEditor, isTreeOrTableCellEditor
chooseAlternativeArc, convertIconButtonToBorderless, doConvertToBorderless, getNeighbour, isBorderlessRectangular, isBorderlessVariant, isDefaultButton, isIconOnly, isLabelButton, isNoArc, isSquare, isThin
protected Dimension sliderSize
protected Color background
protected Color backgroundInactive
protected Color focusBorderColor
protected Color borderColor
protected Color inactiveBorderColor
protected Color sliderColor
protected Color inactiveSliderColor
protected Color sliderBorderColor
protected Color inactiveSliderBorderColor
protected Color selectedForeground
public static ComponentUI createUI(JComponent c)
protected void installDefaults(AbstractButton b)
installDefaults
in class DarkButtonUI
protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener
in class DarkButtonUI
public void paint(Graphics g, JComponent c)
paint
in class DarkButtonUI
protected Color getForeground(AbstractButton button)
getForeground
in class DarkButtonUI
protected Color getBackgroundColor(JComponent c)
getBackgroundColor
in class DarkButtonUI
protected Color getToggleBorderColor(AbstractButton b)
protected Color getSliderColor(AbstractButton b)
protected Color getSliderBorderColor(AbstractButton b)
protected Rectangle getSliderBounds(JComponent c)
protected String layout(AbstractButton b, JComponent c, FontMetrics fm, int width, int height)
layout
in class DarkButtonUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class DarkButtonUI
public boolean contains(JComponent c, int x, int y)
contains
in class DarkButtonUI