ucar.unidata.idv.control
Class ValueSliderWidget

java.lang.Object
  extended by ucar.unidata.idv.ui.ValueSliderComponent
      extended by ucar.unidata.idv.control.ValueSliderWidget
All Implemented Interfaces:
Removable

public class ValueSliderWidget
extends ValueSliderComponent

A class for holding a text field and a slider for setting the some integer value

Version:
$Revision: 1.8 $
Author:
IDV Development Team

Field Summary
 
Fields inherited from class ucar.unidata.idv.ui.ValueSliderComponent
callingObject
 
Constructor Summary
ValueSliderWidget(DisplayControlImpl dc, int min, int max, String property, String label)
          Create a ValueSliderWidget
ValueSliderWidget(DisplayControlImpl dc, int min, int max, String property, String label, float scale)
          Create a ValueSliderWidget
ValueSliderWidget(DisplayControlImpl dc, int min, int max, String property, String label, float scale, boolean andSet, String tip)
          Create a ValueSliderWidget
 
Method Summary
 boolean getObjectHasInitialized()
          Has the calling object been initialized? Subclasses should override if necessary.
 
Methods inherited from class ucar.unidata.idv.ui.ValueSliderComponent
doRemove, getContents, getValue, logException, setEnabled, setPaintLabels, setPaintTicks, setSnapToTicks, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSliderWidget

public ValueSliderWidget(DisplayControlImpl dc,
                         int min,
                         int max,
                         String property,
                         String label)
Create a ValueSliderWidget

Parameters:
dc - the display control to use
min - minimum slider value
max - maximum slider value
property - DisplayControl property to set
label - label for the widget

ValueSliderWidget

public ValueSliderWidget(DisplayControlImpl dc,
                         int min,
                         int max,
                         String property,
                         String label,
                         float scale)
Create a ValueSliderWidget

Parameters:
dc - the display control to use
min - minimum slider value
max - maximum slider value
property - DisplayControl property to set
label - label for the widget
scale - scale factor for the values

ValueSliderWidget

public ValueSliderWidget(DisplayControlImpl dc,
                         int min,
                         int max,
                         String property,
                         String label,
                         float scale,
                         boolean andSet,
                         String tip)
Create a ValueSliderWidget

Parameters:
dc - the display control
min - minimum slider value
max - maximum slider value
property - DisplayControl property to set
label - label for the widget
scale - scale factor for the values
andSet - set the property on the calling object if true
tip - tool tip text for the widget
Method Detail

getObjectHasInitialized

public boolean getObjectHasInitialized()
Has the calling object been initialized? Subclasses should override if necessary.

Overrides:
getObjectHasInitialized in class ValueSliderComponent
Returns:
true