public class ValueControlJ2D extends AVControlJ2D implements ValueControl
Constructor and Description |
---|
ValueControlJ2D(DisplayImplJ2D d) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether or not this instance equals an Object
|
String |
getSaveString()
get a String that can be used to reconstruct this ValueControl later
|
double |
getValue()
return the selected value
|
void |
init() |
void |
setSaveString(String save)
reconstruct this ValueControl using the specified save string
|
void |
setValue(double value)
set the selected value
|
void |
syncControl(Control rmt)
copy the state of a remote control to this control
|
String |
toString() |
clearSwitches, selectSwitches
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addControlListener, clearSwitches, removeControlListener
public ValueControlJ2D(DisplayImplJ2D d)
public void setValue(double value) throws VisADException, RemoteException
ValueControl
setValue
in interface ValueControl
VisADException
RemoteException
public void init() throws VisADException
init
in interface ValueControl
VisADException
public double getValue()
ValueControl
getValue
in interface ValueControl
public String getSaveString()
getSaveString
in interface AVControl
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
setSaveString
in interface AVControl
setSaveString
in class Control
save
- - String representation for reconstructionVisADException
- if a VisAD error occursRemoteException
- if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copiedVisADException
- if a VisAD error occurspublic boolean equals(Object o)
Control
equals
in class AVControlJ2D
o
- an ObjectCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.