visad
Class RangeControl

java.lang.Object
  extended by visad.Control
      extended by visad.RangeControl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RangeControl
extends Control

RangeControl is the VisAD class for controlling SelectRange display scalars.

See Also:
Serialized Form

Constructor Summary
RangeControl(DisplayImpl d)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 double[] getDoubleRange()
          return the range of selected values
 float[] getRange()
          return the range of selected values
 java.lang.String getSaveString()
          get a string that can be used to reconstruct this control later
 void initializeRange(double[] range)
          initialize the range of selected values as (range[0], range[1])
 void initializeRange(float[] range)
          initialize the range of selected values as (range[0], range[1])
 void setRange(double[] range)
          set the range of selected values as (range[0], range[1])
 void setRange(float[] range)
          set the range of selected values as (range[0], range[1])
 void setSaveString(java.lang.String save)
          reconstruct this control using the specified save string
 void syncControl(Control rmt)
          copy the state of a remote control to this control
 java.lang.String toString()
           
 
Methods inherited from class visad.Control
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeControl

public RangeControl(DisplayImpl d)
Method Detail

initializeRange

public void initializeRange(float[] range)
                     throws VisADException,
                            java.rmi.RemoteException
initialize the range of selected values as (range[0], range[1])

Throws:
VisADException
java.rmi.RemoteException

initializeRange

public void initializeRange(double[] range)
                     throws VisADException,
                            java.rmi.RemoteException
initialize the range of selected values as (range[0], range[1])

Throws:
VisADException
java.rmi.RemoteException

setRange

public void setRange(float[] range)
              throws VisADException,
                     java.rmi.RemoteException
set the range of selected values as (range[0], range[1])

Throws:
VisADException
java.rmi.RemoteException

setRange

public void setRange(double[] range)
              throws VisADException,
                     java.rmi.RemoteException
set the range of selected values as (range[0], range[1])

Throws:
VisADException
java.rmi.RemoteException

getRange

public float[] getRange()
return the range of selected values


getDoubleRange

public double[] getDoubleRange()
return the range of selected values


getSaveString

public java.lang.String getSaveString()
get a string that can be used to reconstruct this control later

Specified by:
getSaveString in class Control

setSaveString

public void setSaveString(java.lang.String save)
                   throws VisADException,
                          java.rmi.RemoteException
reconstruct this control using the specified save string

Specified by:
setSaveString in class Control
Throws:
VisADException
java.rmi.RemoteException

syncControl

public void syncControl(Control rmt)
                 throws VisADException
copy the state of a remote control to this control

Specified by:
syncControl in class Control
Throws:
VisADException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Control

toString

public java.lang.String toString()
Overrides:
toString in class Control