visad
Class RangeControl
- java.lang.Object
-
- visad.Control
-
- 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
Constructors Constructor and Description RangeControl(DisplayImpl d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Indicates whether or not this instance equals an Objectdouble[]getDoubleRange()return the range of selected valuesfloat[]getRange()return the range of selected valuesjava.lang.StringgetSaveString()get a string that can be used to reconstruct this control latervoidinitializeRange(double[] range)initialize the range of selected values as (range[0], range[1])voidinitializeRange(float[] range)initialize the range of selected values as (range[0], range[1])voidsetRange(double[] range)set the range of selected values as (range[0], range[1])voidsetRange(float[] range)set the range of selected values as (range[0], range[1])voidsetSaveString(java.lang.String save)reconstruct this control using the specified save stringvoidsyncControl(Control rmt)copy the state of a remote control to this controljava.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
RangeControl
public RangeControl(DisplayImpl d)
-
-
Method Detail
-
initializeRange
public void initializeRange(float[] range) throws VisADException, java.rmi.RemoteExceptioninitialize the range of selected values as (range[0], range[1])- Throws:
VisADExceptionjava.rmi.RemoteException
-
initializeRange
public void initializeRange(double[] range) throws VisADException, java.rmi.RemoteExceptioninitialize the range of selected values as (range[0], range[1])- Throws:
VisADExceptionjava.rmi.RemoteException
-
setRange
public void setRange(float[] range) throws VisADException, java.rmi.RemoteExceptionset the range of selected values as (range[0], range[1])- Throws:
VisADExceptionjava.rmi.RemoteException
-
setRange
public void setRange(double[] range) throws VisADException, java.rmi.RemoteExceptionset the range of selected values as (range[0], range[1])- Throws:
VisADExceptionjava.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:
getSaveStringin classControl- Returns:
- String representation of this Control
-
setSaveString
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteExceptionreconstruct this control using the specified save string- Specified by:
setSaveStringin classControl- Parameters:
save- - String representation for reconstruction- Throws:
VisADException- if a VisAD error occursjava.rmi.RemoteException- if an RMI error occurs
-
syncControl
public void syncControl(Control rmt) throws VisADException
copy the state of a remote control to this control- Specified by:
syncControlin classControl- Parameters:
rmt- remote Control whose state is copied- Throws:
VisADException- if a VisAD error occurs
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:ControlIndicates whether or not this instance equals an Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG