javax.swing.JSpinner
in JDK 1.4@Deprecated public class SpinButton extends Canvas
Property | Property Type | Description |
---|---|---|
Orientation | boolean | Orientation of SpinButton (Left-right or Up-down) |
Minimum | int | Minimum value. |
Maximum | int | Maximum value. |
Step | int | Step. |
Value | int | Current value. |
RepeatDelay | int | Delay time after press SpinButton [ms] |
RepeatRate | int | Repeat rate while holding PressButton [ms] |
Modifier and Type | Class and Description |
---|---|
protected class |
SpinButton.RepeatThread
Deprecated.
Made visible only because it was (by mistake)
visible from public signatures. No need to use it.
|
Canvas.AccessibleAWTCanvas
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
arrowsOrientation
Deprecated.
Current orientation of arrows of SpinButton.
|
protected boolean |
boundsIgnored
Deprecated.
|
static int |
DEFAULT_MAXIMUM
Deprecated.
Default maximum.
|
static int |
DEFAULT_MINIMUM
Deprecated.
Default minimum.
|
static boolean |
DEFAULT_ORIENTATION
Deprecated.
Default orientation of SpinButton.
|
static int |
DEFAULT_REPEAT_DELAY
Deprecated.
Default value of repeatDelay.
|
static int |
DEFAULT_REPEAT_RATE
Deprecated.
Default value of repeatRate.
|
static int |
DEFAULT_STEP
Deprecated.
Default step.
|
protected int |
maximum
Deprecated.
Maximum of the range of the SpinButton.
|
protected int |
minimum
Deprecated.
Minimum of the range of the SpinButton.
|
protected boolean |
orientation
Deprecated.
Current orientation of SpinButton.
|
protected int |
repeatDelay
Deprecated.
Adjusts the amount of time that elapses before a increment
(or decrement) begins repeating when you hold down a mouse
button.
|
protected boolean |
repeating
Deprecated.
Flag if the SpinRepeatThread is currently running.
|
protected int |
repeatRate
Deprecated.
Adjusts the speed at which a increment (or decrement)
repeats when you hold down a mouse button.
|
protected SpinButton.RepeatThread |
rt
Deprecated.
Spin repeat thread.
|
protected boolean |
running
Deprecated.
Flag if the SpinRepeatThread is currently running.
|
protected boolean |
runningDir
Deprecated.
Current direction of the run of the SpinRepeatThread.
|
protected int |
step
Deprecated.
Step of the SpinButton.
|
protected int |
value
Deprecated.
Value of the SpinButton.
|
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SpinButton()
Deprecated.
Create new SpinButton.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Deprecated.
|
void |
addSpinButtonListener(SpinButtonListener spinButtonListener)
Deprecated.
|
boolean |
getArrowsOrientation()
Deprecated.
Gets the current orientation of Arrows of SpinButton.
|
int |
getDelay()
Deprecated.
Gets the current value of repeatDelay variable.
|
int |
getMaximum()
Deprecated.
Gets the current maximum of the range of SpinButton.
|
int |
getMinimum()
Deprecated.
Gets the current minimum of the range of SpinButton.
|
Dimension |
getMinimumSize()
Deprecated.
|
boolean |
getOrientation()
Deprecated.
Gets the current orientation of SpinButton.
|
Dimension |
getPreferredSize()
Deprecated.
|
int |
getRate()
Deprecated.
Gets the current value of rate variable.
|
int |
getStep()
Deprecated.
Gets the current step of the SpinButton.
|
int |
getValue()
Deprecated.
Gets the current value of the SpinButton.
|
boolean |
isBoundsIgnored()
Deprecated.
|
boolean |
isRepeating()
Deprecated.
|
void |
notifySpinButtonListenersAboutDownMove()
Deprecated.
|
void |
notifySpinButtonListenersAboutUpMove()
Deprecated.
|
void |
paint(Graphics g)
Deprecated.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Deprecated.
|
void |
removeSpinButtonListener(SpinButtonListener spinButtonListener)
Deprecated.
|
protected void |
repeatThreadNotify()
Deprecated.
|
void |
setArrowsOrientation(boolean aDir)
Deprecated.
Sets the new orientation of arows.
|
void |
setBoundsIgnored(boolean ignored)
Deprecated.
|
void |
setDelay(int aDelay)
Deprecated.
Sets new value of repeatDelay variable.
|
void |
setForeground(Color color)
Deprecated.
Setter method for foreground color.
|
void |
setMaximum(int aMax)
Deprecated.
Sets a maximum of the range of the SpinButton.
|
void |
setMinimum(int aMin)
Deprecated.
Sets a minimum of the range of the SpinButton.
|
void |
setOrientation(boolean aDir)
Deprecated.
Sets the new orientation.
|
void |
setRate(int aRate)
Deprecated.
Sets new value of repeatRate variable.
|
void |
setRepeating(boolean aRepeating)
Deprecated.
|
void |
setStep(int aStep)
Deprecated.
Sets a new step of the SpinButton.
|
void |
setValue(int aValue)
Deprecated.
Sets a new value of the SpinButton.
|
protected void |
switchRun(boolean aDirect)
Deprecated.
|
void |
switchStop()
Deprecated.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public static final boolean DEFAULT_ORIENTATION
public static final int DEFAULT_MINIMUM
public static final int DEFAULT_MAXIMUM
public static final int DEFAULT_STEP
public static final int DEFAULT_REPEAT_DELAY
public static final int DEFAULT_REPEAT_RATE
protected boolean orientation
protected boolean arrowsOrientation
protected int minimum
protected int maximum
protected int step
protected int value
SpinButton.setValue(int)
,
SpinButton.getValue()
protected int repeatDelay
protected int repeatRate
protected SpinButton.RepeatThread rt
protected boolean running
protected boolean repeating
protected boolean runningDir
protected boolean boundsIgnored
public void setForeground(Color color)
setForeground
in class Component
color
- New foreground color.public void setOrientation(boolean aDir)
aDir
- new value of orientation.SpinButton.orientation
,
SpinButton.DEFAULT_ORIENTATION
,
SpinButton.getOrientation()
public void setArrowsOrientation(boolean aDir)
aDir
- new value of orientation of arows.SpinButton.orientation
,
SpinButton.DEFAULT_ORIENTATION
,
SpinButton.getOrientation()
public boolean getOrientation()
SpinButton.orientation
,
SpinButton.DEFAULT_ORIENTATION
,
SpinButton.setOrientation(boolean)
public boolean getArrowsOrientation()
SpinButton.orientation
,
SpinButton.DEFAULT_ORIENTATION
,
SpinButton.setOrientation(boolean)
public void setMinimum(int aMin)
aMin
- New minimum.SpinButton.getMinimum()
public int getMinimum()
SpinButton.setMinimum(int)
public void setMaximum(int aMax)
aMax
- New maximum.SpinButton.getMinimum()
public int getMaximum()
SpinButton.setMaximum(int)
public void setValue(int aValue)
aValue
- New value.SpinButton.getValue()
public int getValue()
SpinButton.setValue(int)
public void setStep(int aStep)
aStep
- New step.SpinButton.getStep()
public int getStep()
SpinButton.setStep(int)
public void setDelay(int aDelay)
aDelay
- New delay.SpinButton.repeatDelay
,
SpinButton.getDelay()
public int getDelay()
SpinButton.repeatDelay
,
SpinButton.setDelay(int)
public void setRate(int aRate)
aRate
- New rate.SpinButton.repeatRate
,
SpinButton.getRate()
public int getRate()
SpinButton.repeatRate
,
SpinButton.setRate(int)
public boolean isBoundsIgnored()
public void setBoundsIgnored(boolean ignored)
public boolean isRepeating()
public void setRepeating(boolean aRepeating)
protected void switchRun(boolean aDirect)
public void switchStop()
public Dimension getMinimumSize()
getMinimumSize
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class Component
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class Component
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class Component
public void addSpinButtonListener(SpinButtonListener spinButtonListener)
public void removeSpinButtonListener(SpinButtonListener spinButtonListener)
public void notifySpinButtonListenersAboutUpMove()
public void notifySpinButtonListenersAboutDownMove()
protected void repeatThreadNotify()