visad.java2d
Class ValueControlJ2D
- java.lang.Object
-
- visad.Control
-
- visad.java2d.AVControlJ2D
-
- visad.java2d.ValueControlJ2D
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, AVControl, ValueControl
public class ValueControlJ2D extends AVControlJ2D implements ValueControl
ValueControlJ2D is the VisAD class for controlling SelectValue display scalars under Java2D.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ValueControlJ2D(DisplayImplJ2D 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 controljava.lang.StringtoString()-
Methods inherited from class visad.java2d.AVControlJ2D
clearSwitches, selectSwitches
-
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
-
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
-
ValueControlJ2D
public ValueControlJ2D(DisplayImplJ2D 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- 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 classAVControlJ2D- Parameters:
o- an Object- Returns:
- true if and only if this instance is equal to o
-
-
DMelt 3.0 © DataMelt by jWork.ORG