|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.Control
visad.java3d.AVControlJ3D
visad.java3d.AnimationControlJ3D
public class AnimationControlJ3D
AnimationControlJ3D is the VisAD class for controlling Animation display scalars under Java3D.
WLH - manipulate a list of Switch nodes in scene graph.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class visad.java3d.AVControlJ3D |
|---|
AVControlJ3D.SwitchSet |
| Field Summary | |
|---|---|
protected int |
current
|
| Constructor Summary | |
|---|---|
AnimationControlJ3D(DisplayImplJ3D d,
RealType r)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCurrent()
get the current ordinal step number |
boolean |
getDirection()
Get the animation direction. |
boolean |
getOn()
return true if automatic stepping is on |
RealType |
getRealType()
|
java.lang.String |
getSaveString()
get a String that can be used to reconstruct this AnimationControl later |
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 |
nullControl()
end this control |
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 |
setSaveString(java.lang.String save)
reconstruct this AnimationControl using the specified save string |
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 time for all steps |
void |
setSteps(int[] steps)
set the dwell time for individual steps. |
void |
stop()
|
boolean |
subCheckTicks(DataRenderer r,
DataDisplayLink link)
run checkTicks on any sub-Controls; this default for no sub-Controls |
boolean |
subPeekTicks(DataRenderer r,
DataDisplayLink link)
run peekTicks on any sub-Controls; this default for no sub-Controls |
void |
subResetTicks()
run resetTicks on any sub-Controls; this default for no sub-Controls |
void |
subSetTicks()
run setTicks on any sub-Controls; this default for no sub-Controls |
void |
syncControl(Control rmt)
copy the state of a remote control to this control |
void |
takeStep()
advance one step (forward or backward) |
void |
toggle()
toggle automatic stepping between off and on |
| Methods inherited from class visad.java3d.AVControlJ3D |
|---|
addPair, clearSwitches, getSwitches, selectSwitches |
| Methods inherited from class visad.Control |
|---|
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface visad.AVControl |
|---|
addControlListener, clearSwitches, removeControlListener |
| Field Detail |
|---|
protected int current
| Constructor Detail |
|---|
public AnimationControlJ3D(DisplayImplJ3D d,
RealType r)
| Method Detail |
|---|
public void nullControl()
Control
nullControl in class Controlpublic void stop()
stop in interface AnimationControlpublic void run()
run in interface java.lang.Runnablerun in interface AnimationControlpublic int getCurrent()
AnimationControl
getCurrent in interface AnimationControl
public void setCurrent(int c)
throws VisADException,
java.rmi.RemoteException
setCurrent in interface AnimationControlVisADException
java.rmi.RemoteException
public void setCurrent(double value)
throws VisADException,
java.rmi.RemoteException
setCurrent in interface AnimationControlVisADException
java.rmi.RemoteException
public void setDirection(boolean dir)
throws VisADException,
java.rmi.RemoteException
setDirection in interface AnimationControldir - true for forward, false for backward
VisADException - Couldn't create necessary VisAD object. The
direction remains unchanged.
java.rmi.RemoteException - Java RMI exceptionpublic boolean getDirection()
getDirection in interface AnimationControlpublic long getStep()
getStep in interface AnimationControlpublic long[] getSteps()
getSteps in interface AnimationControl
public void setStep(int st)
throws VisADException,
java.rmi.RemoteException
setStep in interface AnimationControlst - dwell time in milliseconds
VisADException - Couldn't create necessary VisAD object. The
dwell time remains unchanged.
java.rmi.RemoteException - Java RMI exception
public void setSteps(int[] steps)
throws VisADException,
java.rmi.RemoteException
setSteps in interface AnimationControlsteps - 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 exception
public void takeStep()
throws VisADException,
java.rmi.RemoteException
takeStep in interface AnimationControlVisADException - Couldn't create necessary VisAD object. No
step is taken.
java.rmi.RemoteException - Java RMI exception
public void init()
throws VisADException
init in interface AnimationControlinit in class AVControlJ3DVisADExceptionpublic Set getSet()
AnimationControl
getSet in interface AnimationControl
public void setSet(Set s)
throws VisADException,
java.rmi.RemoteException
setSet in interface AnimationControlVisADException
java.rmi.RemoteException
public void setSet(Set s,
boolean noChange)
throws VisADException,
java.rmi.RemoteException
setSet in interface AnimationControlVisADException
java.rmi.RemoteExceptionpublic boolean getOn()
getOn in interface AnimationControl
public void setOn(boolean o)
throws VisADException,
java.rmi.RemoteException
setOn in interface AnimationControlo - 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 exception
public void toggle()
throws VisADException,
java.rmi.RemoteException
toggle in interface AnimationControlVisADException - Couldn't create necessary VisAD object. No
change in automatic stepping occurs.
java.rmi.RemoteException - Java RMI exceptionpublic RealType getRealType()
public void subSetTicks()
Control
subSetTicks in class Control
public boolean subCheckTicks(DataRenderer r,
DataDisplayLink link)
Control
subCheckTicks in class Control
public boolean subPeekTicks(DataRenderer r,
DataDisplayLink link)
Control
subPeekTicks in class Controlpublic void subResetTicks()
Control
subResetTicks in class Controlpublic java.lang.String getSaveString()
getSaveString in interface AVControlgetSaveString in class Control
public void setSaveString(java.lang.String save)
throws VisADException,
java.rmi.RemoteException
setSaveString in interface AVControlsetSaveString in class ControlVisADException
java.rmi.RemoteException
public void syncControl(Control rmt)
throws VisADException
syncControl in class ControlVisADExceptionpublic boolean equals(java.lang.Object o)
equals in class AVControlJ3D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||