|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnimationControl
AnimationControl is the VisAD interface for controlling Animation display scalars.
Method Summary | |
---|---|
int |
getCurrent()
get the current ordinal step number |
boolean |
getDirection()
Get the animation direction. |
boolean |
getOn()
return true if automatic stepping is on |
Set |
getSet()
get Set of RealType values for animation steps |
long |
getStep()
Return the dwell time for the current step |
long[] |
getSteps()
return an array of the dwell times for all the steps. |
void |
init()
|
void |
run()
|
void |
setCurrent(double value)
set the current step by the value of the RealType mapped to Display.Animation |
void |
setCurrent(int c)
set the current ordinal step number = c |
void |
setDirection(boolean dir)
Set the animation direction. |
void |
setOn(boolean o)
Set automatic stepping on or off. |
void |
setSet(Set s)
|
void |
setSet(Set s,
boolean noChange)
changeControl(!noChange) to not trigger re-transform, used by ScalarMap.setRange |
void |
setStep(int st)
Set the dwell rate between animation steps to a constant value |
void |
setSteps(int[] steps)
set the dwell time for individual steps. |
void |
stop()
|
void |
takeStep()
advance one step (forward or backward) |
void |
toggle()
toggle automatic stepping between off and on |
Methods inherited from interface visad.AVControl |
---|
addControlListener, clearSwitches, getSaveString, removeControlListener, setSaveString |
Method Detail |
---|
void stop()
void run()
void setCurrent(int c) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
void setCurrent(double value) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
int getCurrent()
void setDirection(boolean dir) throws VisADException, java.rmi.RemoteException
dir
- true for forward, false for backward
VisADException
- Couldn't create necessary VisAD object. The
direction remains unchanged.
java.rmi.RemoteException
- Java RMI exceptionboolean getDirection()
long getStep()
long[] getSteps()
void setStep(int st) throws VisADException, java.rmi.RemoteException
st
- dwell time in milliseconds
VisADException
- Couldn't create necessary VisAD object. The
dwell time remains unchanged.
java.rmi.RemoteException
- Java RMI exceptionvoid setSteps(int[] steps) throws VisADException, java.rmi.RemoteException
steps
- an array of dwell rates for each step in the animation
If the length of the array is less than the number of
frames in the animation, the subsequent step values will
be set to the value of the last step.
VisADException
- Couldn't create necessary VisAD object. The
dwell times remain unchanged.
java.rmi.RemoteException
- Java RMI exceptionvoid takeStep() throws VisADException, java.rmi.RemoteException
VisADException
- Couldn't create necessary VisAD object. No
step is taken.
java.rmi.RemoteException
- Java RMI exceptionvoid init() throws VisADException
VisADException
Set getSet()
void setSet(Set s) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
void setSet(Set s, boolean noChange) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
boolean getOn()
void setOn(boolean o) throws VisADException, java.rmi.RemoteException
o
- true = turn stepping on, false = turn stepping off
VisADException
- Couldn't create necessary VisAD object. No
change in automatic stepping occurs.
java.rmi.RemoteException
- Java RMI exceptionvoid toggle() throws VisADException, java.rmi.RemoteException
VisADException
- Couldn't create necessary VisAD object. No
change in automatic stepping occurs.
java.rmi.RemoteException
- Java RMI exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |