visad
Class AnimationSetControl

java.lang.Object
  extended by visad.Control
      extended by 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
AnimationSetControl(DisplayImpl d, AnimationControl p)
           
 
Method Summary
 int clipCurrent(int current)
           
 boolean equals(java.lang.Object o)
           
 int getIndex(double value)
           
 java.lang.String getSaveString()
          get a string that can be used to reconstruct this control later
 Set getSet()
           
 double getValue(int current)
           
 void setSaveString(java.lang.String save)
          reconstruct this control using the specified save string
 void setSet(Set s)
           
 void setSet(Set s, boolean noChange)
          noChange = true to not trigger changeControl, used by ScalarMap.setRange
 void syncControl(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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnimationSetControl

public AnimationSetControl(DisplayImpl d,
                           AnimationControl p)
Method Detail

getSet

public Set getSet()

clipCurrent

public int clipCurrent(int current)
                throws VisADException
Throws:
VisADException

getValue

public double getValue(int current)
                throws VisADException
Throws:
VisADException

getIndex

public int getIndex(double value)
             throws VisADException
Throws:
VisADException

setSet

public void setSet(Set s)
            throws VisADException,
                   java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException

setSet

public void setSet(Set s,
                   boolean noChange)
            throws VisADException,
                   java.rmi.RemoteException
noChange = true to not trigger changeControl, used by ScalarMap.setRange

Throws:
VisADException
java.rmi.RemoteException

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