|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas org.openide.awt.SpinButton
javax.swing.JSpinner
in JDK 1.4
A class that produces a Spin Button.
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] |
Nested Class Summary |
Nested classes inherited from class java.awt.Canvas |
Canvas.AccessibleAWTCanvas |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
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 org.openide.awt.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. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SpinButton()
Deprecated. Create new SpinButton. |
Method Summary | |
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. |
Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final boolean DEFAULT_ORIENTATION
protected boolean orientation
protected boolean arrowsOrientation
public static final int DEFAULT_MINIMUM
minimum
,
setMinimum(int)
,
getMinimum()
,
Constant Field Valuesprotected int minimum
DEFAULT_MINIMUM
,
setMinimum(int)
,
getMinimum()
public static final int DEFAULT_MAXIMUM
maximum
,
setMaximum(int)
,
getMaximum()
,
Constant Field Valuesprotected int maximum
DEFAULT_MAXIMUM
,
setMaximum(int)
,
getMaximum()
public static final int DEFAULT_STEP
step
,
setStep(int)
,
getStep()
,
Constant Field Valuesprotected int step
DEFAULT_STEP
,
setStep(int)
,
getStep()
protected int value
setValue(int)
,
getValue()
public static final int DEFAULT_REPEAT_DELAY
setDelay(int)
,
getDelay()
,
repeatDelay
,
Constant Field Valuesprotected int repeatDelay
setDelay(int)
,
getDelay()
,
DEFAULT_REPEAT_DELAY
public static final int DEFAULT_REPEAT_RATE
setRate(int)
,
getRate()
,
repeatRate
,
Constant Field Valuesprotected int repeatRate
setRate(int)
,
getRate()
,
DEFAULT_REPEAT_RATE
protected org.openide.awt.SpinButton.RepeatThread rt
protected boolean running
protected boolean repeating
protected boolean runningDir
protected boolean boundsIgnored
Constructor Detail |
public SpinButton()
Method Detail |
public void setForeground(Color color)
color
- New foreground color.public void setOrientation(boolean aDir)
aDir
- new value of orientation.orientation
,
DEFAULT_ORIENTATION
,
getOrientation()
public void setArrowsOrientation(boolean aDir)
aDir
- new value of orientation of arows.orientation
,
DEFAULT_ORIENTATION
,
getOrientation()
public boolean getOrientation()
orientation
,
DEFAULT_ORIENTATION
,
setOrientation(boolean)
public boolean getArrowsOrientation()
orientation
,
DEFAULT_ORIENTATION
,
setOrientation(boolean)
public void setMinimum(int aMin)
aMin
- New minimum.getMinimum()
public int getMinimum()
setMinimum(int)
public void setMaximum(int aMax)
aMax
- New maximum.getMinimum()
public int getMaximum()
setMaximum(int)
public void setValue(int aValue)
aValue
- New value.getValue()
public int getValue()
setValue(int)
public void setStep(int aStep)
aStep
- New step.getStep()
public int getStep()
setStep(int)
public void setDelay(int aDelay)
aDelay
- New delay.repeatDelay
,
getDelay()
public int getDelay()
repeatDelay
,
setDelay(int)
public void setRate(int aRate)
aRate
- New rate.repeatRate
,
getRate()
public int getRate()
repeatRate
,
setRate(int)
public boolean isBoundsIgnored()
public void setBoundsIgnored(boolean ignored)
public boolean isRepeating()
public void setRepeating(boolean aRepeating)
public void paint(Graphics g)
protected void switchRun(boolean aDirect)
public void switchStop()
public Dimension getMinimumSize()
public Dimension getPreferredSize()
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void addSpinButtonListener(SpinButtonListener spinButtonListener)
public void removeSpinButtonListener(SpinButtonListener spinButtonListener)
public void notifySpinButtonListenersAboutUpMove()
public void notifySpinButtonListenersAboutDownMove()
protected void repeatThreadNotify()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |