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

Variable Index

 o valueScrollbar
Contains the Scrollbar of the component

Constructor Index

 o Viewer.GUI.PanelSlider(SliderPanelListener, String, int, int, int, int, int)
Constructs a new object.

Method Index

 o getValue()
Returns the value of the Scrollbar.
 o setMinMax(int, int)
Sets a minimum and maximum values for the Scrollbar
 o setNewValue(int)
Sets a new value for the Scrollbar and insert the value in the TextField
 o setNewValue(double)
Sets a new value for the Scrollbar and insert the value in the TextField
 o setNewValue100(double)
Sets a new rounded value for the Scrollbar and insert the value in the TextField
 o setScrollbarValue(int)
Sets a new value for the Scrollbar
 o setText(String)
Sets a new value for the TextField.

Variables

 o valueScrollbar
public java.awt.Scrollbar valueScrollbar
Contains the Scrollbar of the component

Since: 30.04.1999

Constructors

 o 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

Methods

 o getValue
public int getValue()
Returns the value of the Scrollbar.

Returns:
The value of the Scrollbar
Since:
30.04.1999
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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