|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
visad.util.Slider
visad.util.ArrowSlider
public class ArrowSlider
A pointer slider for visad .
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class visad.util.Slider |
|---|
listeners, name |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
ArrowSlider()
Construct a new arrow slider with the default values |
|
ArrowSlider(float lower,
float upper,
float initial)
Construct a new arrow slider with the givden lower, upper and initial values |
|
ArrowSlider(float lower,
float upper,
float initial,
String name)
Construct a new arrow slider with the given lower, upper and initial values |
|
| Method Summary | |
|---|---|
float |
getMaximum()
Return the maximum value of this slider |
Dimension |
getMaximumSize()
Return the maximum size of the arrow slider |
float |
getMinimum()
Return the minimum value of this slider |
Dimension |
getMinimumSize()
Return the minimum size of the arrow slider |
Dimension |
getPreferredSize()
Return the preferred sise of the arrow slider |
float |
getValue()
Returns the current value of the slider |
static void |
main(String[] argv)
For testing purposes |
void |
mouseClicked(MouseEvent e)
Present to implement MouseListener, currently ignored |
void |
mouseDragged(MouseEvent e)
Updates the slider position |
void |
mouseEntered(MouseEvent e)
Present to implement MouseListener, currently ignored |
void |
mouseExited(MouseEvent e)
Present to implement MouseListener, currently ignored |
void |
mouseMoved(MouseEvent e)
Present to implement MouseMovementListener, currently ignored |
void |
mousePressed(MouseEvent e)
Moves the slider to the clicked position |
void |
mouseReleased(MouseEvent e)
Present to implement MouseListener, currently ignored |
void |
paint(Graphics g)
Redraw the slider |
void |
setBounds(float min,
float max,
float init)
Sets new minimum, maximum, and initial values for this slider |
void |
setMaximum(float value)
Sets the maximum value of this scrolbar |
void |
setMaximumSize(Dimension dim)
Set the preferred size of the arrow slider |
void |
setMinimum(float value)
Sets the minimum value for this slider |
void |
setMinimumSize(Dimension dim)
Set the preferred size of the arrow slider |
void |
setPreferredSize(Dimension dim)
Set the preferred size of the arrow slider |
void |
setValue(float value)
Sets the current value of the slider |
void |
update(Graphics g)
update the slider |
| Methods inherited from class visad.util.Slider |
|---|
addSliderChangeListener, getName, notifyListeners, removeSliderChangeListener |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrowSlider()
public ArrowSlider(float lower,
float upper,
float initial)
IllegalArgumenentException - if lower is not less than initial or initial
is not less than upper
public ArrowSlider(float lower,
float upper,
float initial,
String name)
IllegalArgumenentException - if lower is not less than initial or initial
is not less than upper| Method Detail |
|---|
public static void main(String[] argv)
public void setBounds(float min,
float max,
float init)
public float getMinimum()
getMinimum in class Sliderpublic void setMinimum(float value)
setMinimum in class Sliderpublic float getMaximum()
getMaximum in class Sliderpublic void setMaximum(float value)
setMaximum in class Sliderpublic float getValue()
getValue in class Sliderpublic void setValue(float value)
setValue in class SliderIllegalArgumentException - if the new value is out of bounds for the sliderpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setPreferredSize(Dimension dim)
setPreferredSize in class JComponentpublic Dimension getMaximumSize()
getMaximumSize in class JComponentpublic void setMaximumSize(Dimension dim)
setMaximumSize in class JComponentpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic void setMinimumSize(Dimension dim)
setMinimumSize in class JComponentpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void update(Graphics g)
update in class JComponentpublic void paint(Graphics g)
paint in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||