|
||||||||||
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.RangeSlider
public class RangeSlider
Implements a Swing-based Range slider, which allows the user to enter a range-based value.
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 | |
---|---|
RangeSlider(BoundedRangeModel model)
Creates a new RangeSlider object. |
|
RangeSlider(int minimum,
int maximum,
int lowValue,
int highValue)
Constructs a new range slider. |
Method Summary | |
---|---|
boolean |
contains(int v)
Returns true if the specified value is within the range indicated by this range slider, i˙e˙ lowValue 1 <= v <= highValue. |
int |
getHighValue()
Returns the current "high" value shown by the range slider's bar. |
int |
getLowValue()
Returns the current "low" value shown by the range slider's bar. |
int |
getMaximum()
Returns the maximum possible value for either the low value or the high value. |
int |
getMinimum()
Returns the minimum possible value for either the low value or the high value. |
BoundedRangeModel |
getModel()
Returns the sizeModel. |
Dimension |
getPreferredSize()
|
String |
getToolTipText(MouseEvent event)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
setEnabled(boolean v)
|
void |
setHighValue(int highValue)
Sets the high value shown by this range slider. |
void |
setLowValue(int lowValue)
Sets the low value shown by this range slider. |
void |
setMaximum(int max)
Sets the maximum value of the sizeModel. |
void |
setMinimum(int min)
Sets the minimum value of the sizeModel. |
void |
setModel(BoundedRangeModel model)
Sets the sizeModel. |
void |
stateChanged(ChangeEvent e)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RangeSlider(int minimum, int maximum, int lowValue, int 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 RangeSlider(BoundedRangeModel model)
model
- the BoundedRangeModel.Method Detail |
---|
public int getLowValue()
public int getHighValue()
public int getMinimum()
public int getMaximum()
public boolean contains(int v)
v
- value
public void setLowValue(int lowValue)
lowValue
- the low value shown by this range sliderpublic void setHighValue(int highValue)
highValue
- the high value shown by this range sliderpublic void setMinimum(int min)
min
- the minimum value.public void setMaximum(int max)
max
- the maximum value.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
MouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
MouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
MouseListener.mouseExited(java.awt.event.MouseEvent)
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
JComponent.getPreferredSize()
public void setEnabled(boolean v)
setEnabled
in class JComponent
JComponent.setEnabled(boolean)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
ChangeListener.stateChanged(ChangeEvent)
public BoundedRangeModel getModel()
public void setModel(BoundedRangeModel model)
model
- The BoundedRangeModel to setpublic String getToolTipText(MouseEvent event)
getToolTipText
in class JComponent
JComponent.getToolTipText(MouseEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |