Class Viewer.GUI.PanelSlider
All Packages Class Hierarchy This Package Previous Next Index
Class Viewer.GUI.PanelSlider
Object
|
+----Component
|
+----Container
|
+----Panel
|
+----Viewer.GUI.PanelSlider
- public class PanelSlider
- extends Panel
This class contains a GUI component with a Scollbar and a TextField
containing the value of the Scollbar.
The PanelSlider and the interface is not
designed well but it works.
- Author:
- Klaus Kleber
- Since:
- 30.04.1999
- See Also:
- SliderPanelListener
-
valueScrollbar
- Contains the Scrollbar of the component
-
Viewer.GUI.PanelSlider(SliderPanelListener, String, int, int, int, int, int)
- Constructs a new object.
-
getValue()
- Returns the value of the Scrollbar.
-
setMinMax(int, int)
- Sets a minimum and maximum values for the Scrollbar
-
setNewValue(int)
- Sets a new value for the Scrollbar and insert the value in the
TextField
-
setNewValue(double)
- Sets a new value for the Scrollbar and insert the value in the
TextField
-
setNewValue100(double)
- Sets a new rounded value for the Scrollbar
and insert the value in the TextField
-
setScrollbarValue(int)
- Sets a new value for the Scrollbar
-
setText(String)
- Sets a new value for the TextField.
valueScrollbar
public java.awt.Scrollbar valueScrollbar
- Contains the Scrollbar of the component
- Since:
30.04.1999
PanelSlider
public PanelSlider(SliderPanelListener sliderPanelListener,
String name,
int columns,
int orientation,
int blockIncrement,
int min,
int max)
- Constructs a new object.
- Parameters:
- sliderPanelListener - Handles the Events.
- name - Text for the label.
- colums - Not used yet
- orientation - Orietation of the Scrollbar.
- blockIncrement - Block increment of the Scroolbar
- min - Minimum value of the Scrollbar.
- max - Maximum value of the Scrollbar.
- Since:
- 30.04.1999
getValue
public int getValue()
- Returns the value of the Scrollbar.
- Returns:
- The value of the Scrollbar
- Since:
- 30.04.1999
setMinMax
public void setMinMax(int min,
int max)
- Sets a minimum and maximum values for the Scrollbar
- Parameters:
- min - Minimum value of the Scrollbar.
- max - Maximum value of the Scrollbar.
- Since:
- 30.04.1999
setNewValue
public void setNewValue(int newValue)
- Sets a new value for the Scrollbar and insert the value in the
TextField
- Parameters:
- newValue - The new value for the Scrollbar and TextField.
- Since:
- 30.04.1999
setNewValue
public void setNewValue(double newValue)
- Sets a new value for the Scrollbar and insert the value in the
TextField
- Parameters:
- newValue - The new value for the Scrollbar and TextField.
- Since:
- 30.04.1999
setNewValue100
public void setNewValue100(double newValue)
- Sets a new rounded value for the Scrollbar
and insert the value in the TextField
- Parameters:
- newValue - The new value for the Scrollbar and TextField.
- Since:
- 30.04.1999
setScrollbarValue
public void setScrollbarValue(int newValue)
- Sets a new value for the Scrollbar
- Parameters:
- newValue - The new value for the Scrollbar.
- Since:
- 30.04.1999
setText
public void setText(String text)
- Sets a new value for the TextField.
- Parameters:
- text - The new value for the TextField.
- Since:
- 30.04.1999
All Packages Class Hierarchy This Package Previous Next Index