visad
Class AnimationSetControl
- java.lang.Object
-
- visad.Control
-
- visad.AnimationSetControl
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- AnimationSetControlJ2D
public class AnimationSetControl extends Control
AnimationSetControl is the VisAD class for sampling Animation steps.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AnimationSetControl(DisplayImpl d, AnimationControl p)construct an AnimationSetControl for the given DisplayImpl and AnimationControl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intclipCurrent(int current)booleanequals(java.lang.Object o)Indicates whether or not this instance equals an ObjectintgetIndex(double value)java.lang.StringgetSaveString()SetgetSet()doublegetValue(int current)voidsetSaveString(java.lang.String save)reconstruct this AnimationSetControl using the specified save stringvoidsetSet(Set s)set Set of Animation valuevoidsetSet(Set s, boolean noChange)set Set of Animation valuevoidsyncControl(Control rmt)copy the state of a remote control to this control-
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, toString
-
-
-
-
Constructor Detail
-
AnimationSetControl
public AnimationSetControl(DisplayImpl d, AnimationControl p)
construct an AnimationSetControl for the given DisplayImpl and AnimationControl- Parameters:
d- - DisplayImpl this AnimationSetControl is associated withp- - parent AnimationControl of this AnimationSetControl
-
-
Method Detail
-
getSet
public Set getSet()
- Returns:
- Set of RealType values for animation steps, in RealType mapped to Animation
-
clipCurrent
public int clipCurrent(int current) throws VisADException- Parameters:
current- value to clip- Returns:
- value of current clipped to limits defined by this AnimationSetControl
- Throws:
VisADException- if a VisAD error occurs
-
getValue
public double getValue(int current) throws VisADException- Parameters:
current- index of current step- Returns:
- current step converted to value of RealType mapped to Animation
- Throws:
VisADException- if a VisAD error occurs
-
getIndex
public int getIndex(double value) throws VisADException- Parameters:
value- - RealType value- Returns:
- animation step ordinal corresponding to value of RealType mapped to Animation
- Throws:
VisADException- if a VisAD error occurs
-
setSet
public void setSet(Set s) throws VisADException, java.rmi.RemoteException
set Set of Animation value- Parameters:
s- - Set of RealType values for Animation steps- Throws:
VisADException- if a VisAD error occursjava.rmi.RemoteException- if an RMI error occurs
-
setSet
public void setSet(Set s, boolean noChange) throws VisADException, java.rmi.RemoteException
set Set of Animation value- Parameters:
s- - Set of RealType values for Animation stepsnoChange- = true to not trigger changeControl (used by ScalarMap.setRange())- Throws:
VisADException- if a VisAD error occursjava.rmi.RemoteException- if an RMI error occurs
-
getSaveString
public java.lang.String getSaveString()
- Specified by:
getSaveStringin classControl- Returns:
- String representation of this AnimationSetControl
-
setSaveString
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteExceptionreconstruct this AnimationSetControl 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
-
-
DMelt 3.0 © DataMelt by jWork.ORG