|
||||||||||
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 javax.swing.JPanel visad.util.Slider
public abstract class Slider
An abstract class which is very similar to java.awt.ScrollBar, except using all floating point values and having an internal name. Although the interface has nothing to do with orientation, a horizontal orientation will be assumed by several other classes
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 | |
---|---|
protected Vector |
listeners
The vector containing the SliderChangeListeners |
protected String |
name
The internal name of the slider, accessed through getName() |
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 | |
---|---|
Slider()
|
Method Summary | |
---|---|
void |
addSliderChangeListener(SliderChangeListener s)
Add a SliderChangeListener to the listeners list |
abstract float |
getMaximum()
Return the maximum value of this slider |
abstract float |
getMinimum()
Return the minimum value of this slider |
String |
getName()
Get the internal name for this slider |
abstract float |
getValue()
Returns the current value of the slider |
protected void |
notifyListeners(SliderChangeEvent e)
Notify the ColorChangeListerers that the color widget has changed |
void |
removeSliderChangeListener(SliderChangeListener s)
Remove a SliderChangeListener from the listeners list |
abstract void |
setMaximum(float value)
Sets the maximum value of this scrolbar |
abstract void |
setMinimum(float value)
Sets the minimum value for this slider |
abstract void |
setValue(float value)
Sets the current value of the slider |
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 |
Field Detail |
---|
protected String name
getName()
protected Vector listeners
Constructor Detail |
---|
public Slider()
Method Detail |
---|
public String getName()
getName
in class Component
public abstract float getMinimum()
public abstract void setMinimum(float value)
public abstract float getMaximum()
public abstract void setMaximum(float value)
public abstract float getValue()
public abstract void setValue(float value)
public void addSliderChangeListener(SliderChangeListener s)
public void removeSliderChangeListener(SliderChangeListener s)
protected void notifyListeners(SliderChangeEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |