|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweiman.observableControls.RunSliderDoubleBoxNoLabel
public abstract class RunSliderDoubleBoxNoLabel
Original code for JSlider, ticks, hashtable from Glenn Josefiak Final code with linear interpolator, JSpinner, SpinnerNumberModel, clamping by Carl Weiman, October 20, 2006
| Constructor Summary | |
|---|---|
RunSliderDoubleBoxNoLabel(boolean isHorizontal,
java.lang.String label)
|
|
RunSliderDoubleBoxNoLabel(double _dblMin,
double _dblMax,
double _dblInit,
boolean isHorizontal,
java.lang.String label)
Construct a DoubleSlider |
|
| Method Summary | |
|---|---|
void |
addObserver(java.util.Observer obsrvr)
Add the specified Observer to the list of parties notified if the slider is moved. |
java.awt.Component |
getBox()
|
double |
getDblSliderMax()
|
double |
getDblSliderMin()
|
javax.swing.JPanel |
getResetButtonPanel()
|
double |
getTolerance()
|
double |
getValue()
Return the current value of the DoubleSlider |
static void |
main(java.lang.String[] args)
|
void |
setLabel(java.lang.String s)
Set the text of the slider valueUnits |
void |
setTickLabel(double tickValue)
Set the valueUnits of a tick |
void |
setTitle(java.lang.String s)
|
void |
setValue(double value)
Programmatically set value of textfield, slider and observable in one place |
void |
setValueX(double value)
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
void |
update(java.util.Observable obsvble,
java.lang.Object arg)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
public RunSliderDoubleBoxNoLabel(double _dblMin,
double _dblMax,
double _dblInit,
boolean isHorizontal,
java.lang.String label)
_dblMin - The minimum output value of the slider_dblMax - The maximum output value of the slider_dblInit - The initial output value of the sliderisHorizontal - The constructed orientation the sliderlabel - The permanent label of the slider
public RunSliderDoubleBoxNoLabel(boolean isHorizontal,
java.lang.String label)
| Method Detail |
|---|
public void setValueX(double value)
public double getTolerance()
public void update(java.util.Observable obsvble,
java.lang.Object arg)
update in interface java.util.Observerpublic void addObserver(java.util.Observer obsrvr)
obsrvr - The Observer to be added "this" class.public void setValue(double value)
value - intended new double value of DoubleSliderpublic double getValue()
public void setTitle(java.lang.String s)
public void setLabel(java.lang.String s)
s - Descriptive text below the slider.public void setTickLabel(double tickValue)
tickValue - The tickValue at which the valueUnits will appear.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic double getDblSliderMin()
public double getDblSliderMax()
public java.awt.Component getBox()
public javax.swing.JPanel getResetButtonPanel()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||