public class DarkSpinnerUI extends BasicSpinnerUI implements SpinnerConstants
Modifier and Type | Field and Description |
---|---|
protected int |
arc |
protected Color |
arrowBackground |
protected Icon |
arrowDownIcon |
protected Icon |
arrowDownInactiveIcon |
protected Icon |
arrowUpIcon |
protected Icon |
arrowUpInactiveIcon |
protected Color |
background |
protected int |
borderSize |
protected Color |
inactiveBackground |
protected Icon |
minusIcon |
protected Icon |
minusInactiveIcon |
protected Icon |
plusIcon |
protected Icon |
plusInactiveIcon |
protected DarkSpinnerListener |
spinnerListener |
spinner
KEY_EDITOR_ALIGNMENT, KEY_IS_TABLE_EDITOR, KEY_IS_TABLE_RENDERER, KEY_IS_TREE_EDITOR, KEY_IS_TREE_RENDER, KEY_VARIANT, VARIANT_PLUS_MINUS
Constructor and Description |
---|
DarkSpinnerUI() |
Modifier and Type | Method and Description |
---|---|
protected JComponent |
createEditor() |
protected LayoutManager |
createLayout() |
protected Component |
createNextButton() |
protected Component |
createPreviousButton() |
protected DarkSpinnerListener |
createSpinnerListener() |
static ComponentUI |
createUI(JComponent c) |
protected Color |
getArrowBackground(JComponent c) |
protected SpinnerIcon |
getArrowIcon(int direction) |
protected SpinnerIcon |
getArrowInactiveIcon(int direction) |
protected Color |
getBackground(JComponent c) |
JComponent |
getEditor() |
Component |
getEditorComponent() |
protected void |
installDefaults() |
protected void |
installListeners() |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintSpinBackground(Graphics2D g,
int width,
int height,
int bSize,
int arc) |
protected void |
replaceEditor(JComponent oldEditor,
JComponent newEditor) |
protected void |
uninstallListeners() |
createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installKeyboardActions, installNextButtonListeners, installPreviousButtonListeners, installUI, uninstallDefaults, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTableCellEditor, isTreeCellEditor, isTreeOrTableCellEditor, usePlusMinusIcons
protected DarkSpinnerListener spinnerListener
protected Color arrowBackground
protected Color background
protected Icon arrowDownIcon
protected Color inactiveBackground
protected int arc
protected int borderSize
protected Icon arrowUpIcon
protected Icon plusIcon
protected Icon minusIcon
protected Icon arrowDownInactiveIcon
protected Icon arrowUpInactiveIcon
protected Icon plusInactiveIcon
protected Icon minusInactiveIcon
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults
in class BasicSpinnerUI
protected void installListeners()
installListeners
in class BasicSpinnerUI
protected DarkSpinnerListener createSpinnerListener()
protected void uninstallListeners()
uninstallListeners
in class BasicSpinnerUI
protected LayoutManager createLayout()
createLayout
in class BasicSpinnerUI
protected Component createPreviousButton()
createPreviousButton
in class BasicSpinnerUI
protected Component createNextButton()
createNextButton
in class BasicSpinnerUI
protected JComponent createEditor()
createEditor
in class BasicSpinnerUI
protected void replaceEditor(JComponent oldEditor, JComponent newEditor)
replaceEditor
in class BasicSpinnerUI
protected SpinnerIcon getArrowIcon(int direction)
protected SpinnerIcon getArrowInactiveIcon(int direction)
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void paintSpinBackground(Graphics2D g, int width, int height, int bSize, int arc)
protected Color getBackground(JComponent c)
protected Color getArrowBackground(JComponent c)
public Component getEditorComponent()
public JComponent getEditor()