visad.java3d
Class ValueControlJ3D
- java.lang.Object
-
- visad.Control
-
- visad.java3d.AVControlJ3D
-
- visad.java3d.ValueControlJ3D
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, AVControl, ValueControl
public class ValueControlJ3D extends AVControlJ3D implements ValueControl
ValueControlJ3D is the VisAD class for controlling SelectValue display scalars under Java3D.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ValueControlJ3D(DisplayImplJ3D d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Indicates whether or not this instance equals an Objectjava.lang.StringgetSaveString()get a String that can be used to reconstruct this ValueControl laterdoublegetValue()return the selected valuevoidinit()voidsetSaveString(java.lang.String save)reconstruct this ValueControl using the specified save stringvoidsetValue(double value)set the selected valuevoidsyncControl(Control rmt)copy the state of a remote control to this control-
Methods inherited from class visad.java3d.AVControlJ3D
addPair, addPair, clearSwitches, getSwitches, nullControl, selectSwitches, setInterval
-
Methods inherited from class visad.Control
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface visad.AVControl
addControlListener, clearSwitches, removeControlListener
-
-
-
-
Constructor Detail
-
ValueControlJ3D
public ValueControlJ3D(DisplayImplJ3D d)
-
-
Method Detail
-
setValue
public void setValue(double value) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:ValueControlset the selected value- Specified by:
setValuein interfaceValueControl- Throws:
VisADExceptionjava.rmi.RemoteException
-
init
public void init() throws VisADException- Specified by:
initin interfaceValueControl- Specified by:
initin classAVControlJ3D- Throws:
VisADException
-
getValue
public double getValue()
Description copied from interface:ValueControlreturn the selected value- Specified by:
getValuein interfaceValueControl
-
getSaveString
public java.lang.String getSaveString()
get a String that can be used to reconstruct this ValueControl later- Specified by:
getSaveStringin interfaceAVControl- Specified by:
getSaveStringin classControl- Returns:
- String representation of this Control
-
setSaveString
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteExceptionreconstruct this ValueControl using the specified save string- Specified by:
setSaveStringin interfaceAVControl- 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
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:ControlIndicates whether or not this instance equals an Object- Overrides:
equalsin classAVControlJ3D- Parameters:
o- an Object- Returns:
- true if and only if this instance is equal to o
-
-
DMelt 3.0 © DataMelt by jWork.ORG