visad
Class ToggleControl
- java.lang.Object
-
- visad.Control
-
- visad.ToggleControl
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ToggleControl extends Control
ToggleControl is the VisAD class for toggling other Control-s on and off.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ToggleControl(DisplayImpl d, Control p)
-
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 ObjectbooleangetOn()ControlgetParent()java.lang.StringgetSaveString()get a string that can be used to reconstruct this control latervoidsetOn(boolean o)voidsetSaveString(java.lang.String save)reconstruct this control using the specified save stringvoidsyncControl(Control rmt)copy the state of a remote control to this control-
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, toString
-
-
-
-
Constructor Detail
-
ToggleControl
public ToggleControl(DisplayImpl d, Control p)
-
-
Method Detail
-
getParent
public Control getParent()
-
getOn
public boolean getOn()
-
setOn
public void setOn(boolean o) throws VisADException, java.rmi.RemoteException- Throws:
VisADExceptionjava.rmi.RemoteException
-
getSaveString
public java.lang.String getSaveString()
get a string that can be used to reconstruct this control later- Specified by:
getSaveStringin classControl- Returns:
- String representation of this Control
-
setSaveString
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteExceptionreconstruct this control using the specified save string- 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
-
-
DMelt 3.0 © DataMelt by jWork.ORG