|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent infovis.panel.dqinter.BasicRangeSlider
public abstract class BasicRangeSlider
Base class for range sliders.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
BasicRangeSlider(DoubleBoundedRangeModel model)
Creates a new RangeSlider object. |
|
BasicRangeSlider(double minimum,
double maximum,
double lowValue,
double highValue)
Constructs a new range slider. |
Method Summary | |
---|---|
boolean |
contains(double v)
Returns true if the specified value is within the range indicated by this range slider, i˙e˙ lowValue 1 <= v <= highValue. |
double |
getHighValue()
Returns the current "high" value shown by the range slider's bar. |
double |
getLowValue()
Returns the current "low" value shown by the range slider's bar. |
double |
getMaximum()
Returns the maximum possible value for either the low value or the high value. |
double |
getMinimum()
Returns the minimum possible value for either the low value or the high value. |
void |
setHighValue(double highValue)
Sets the high value shown by this range slider. |
void |
setLowValue(double lowValue)
Sets the low value shown by this range slider. |
void |
setMaximum(double max)
Sets the maximum value of the doubleBoundedRangeModel. |
void |
setMinimum(double min)
Sets the minimum value of the doubleBoundedRangeModel. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from interface java.awt.event.MouseMotionListener |
---|
mouseDragged, mouseMoved |
Methods inherited from interface javax.swing.event.ChangeListener |
---|
stateChanged |
Constructor Detail |
---|
public BasicRangeSlider(double minimum, double maximum, double lowValue, double highValue)
minimum
- - the minimum value of the range.maximum
- - the maximum value of the range.lowValue
- - the current low value shown by the range
slider's bar.highValue
- - the current high value shown by the range
slider's bar.public BasicRangeSlider(DoubleBoundedRangeModel model)
model
- the DoubleBoundedRangeModelMethod Detail |
---|
public double getLowValue()
public double getHighValue()
public double getMinimum()
public double getMaximum()
public boolean contains(double v)
v
- value
public void setLowValue(double lowValue)
lowValue
- the low value shown by this range sliderpublic void setHighValue(double highValue)
highValue
- the high value shown by this range sliderpublic void setMinimum(double min)
min
- the minimum value.public void setMaximum(double max)
max
- the maximum value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |