|
||||||||||
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. Current implementations also implement Runnable
Method Summary | |
---|---|
boolean |
getComputeSet()
Get the flag to automatically compute the animation set if it is null |
int |
getCurrent()
|
boolean |
getDirection()
Get the animation direction. |
boolean |
getOn()
|
Set |
getSet()
|
long |
getStep()
|
long[] |
getSteps()
|
void |
init()
actually set Switches (Java3D) or VisADSwitches (Java2D) to child nodes corresponding to current ordinal step number |
void |
run()
a single invocation implements anmation behavior until stop() is called |
void |
setComputeSet(boolean compute)
Set the flag to automatically compute the animation set if it is null |
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 |
void |
setDirection(boolean dir)
Set the animation direction. |
void |
setOn(boolean o)
Set automatic stepping on or off. |
void |
setSet(Set s)
Sets the set of times in this animation control, in RealType mapped to Animation. |
void |
setSet(Set s,
boolean noChange)
Sets the set of times in this animation control, in RealType mapped to Animation. |
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()
stop activity in this AnimationControl |
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, RemoteException
c
- - value for current ordinal step number
VisADException
- - a VisAD error occurred
RemoteException
- - an RMI error occurredvoid setCurrent(double value) throws VisADException, RemoteException
value
- - RealType value that is converted to an
ordinal step number
VisADException
- - a VisAD error occurred
RemoteException
- - an RMI error occurredint getCurrent()
void setDirection(boolean dir) throws VisADException, RemoteException
dir
- true for forward, false for backward
VisADException
- Couldn't create necessary VisAD object. The
direction remains unchanged.
RemoteException
- Java RMI exceptionboolean getDirection()
long getStep()
long[] getSteps()
void setStep(int st) throws VisADException, RemoteException
st
- dwell time in milliseconds
VisADException
- Couldn't create necessary VisAD object. The
dwell time remains unchanged.
RemoteException
- Java RMI exceptionvoid setSteps(int[] steps) throws VisADException, RemoteException
steps
- an array of dwell times in milliseconds 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.
RemoteException
- Java RMI exceptionvoid takeStep() throws VisADException, RemoteException
VisADException
- Couldn't create necessary VisAD object. No
step is taken.
RemoteException
- Java RMI exceptionvoid init() throws VisADException
VisADException
- - a VisAD error occurred.Set getSet()
void setSet(Set s) throws VisADException, RemoteException
Sets the set of times in this animation control, in RealType mapped to Animation. If the argument set is equal to the current set, then nothing is done.
s
- The set of times.
VisADException
- if a VisAD failure occurs.
RemoteException
- if a Java RMI failure occurs.void setSet(Set s, boolean noChange) throws VisADException, RemoteException
Sets the set of times in this animation control, in RealType mapped to Animation. If the argument set is equal to the current set, then nothing is done.
s
- The set of times.noChange
- changeControl(!noChange) to not trigger
re-transform, used by ScalarMap.setRange
VisADException
- if a VisAD failure occurs.
RemoteException
- if a Java RMI failure occurs.boolean getOn()
void setOn(boolean o) throws VisADException, RemoteException
o
- true = turn stepping on, false = turn stepping off
VisADException
- Couldn't create necessary VisAD object. No
change in automatic stepping occurs.
RemoteException
- Java RMI exceptionvoid toggle() throws VisADException, RemoteException
VisADException
- Couldn't create necessary VisAD object. No
change in automatic stepping occurs.
RemoteException
- Java RMI exceptionvoid setComputeSet(boolean compute)
compute
- false to allow application to control set computation
if set is null.boolean getComputeSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |