public class ShapeControl extends Control
| Constructor and Description |
|---|
ShapeControl(DisplayImpl d) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
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 control later
|
float |
getScale() |
VisADGeometryArray[] |
getShapes(float[] values) |
void |
nullControl()
end this control (called by ScalarMap.nullDisplay())
|
void |
setAutoScale(boolean auto) |
void |
setSaveString(String save)
reconstruct this control using the specified save string
|
void |
setScale(float s) |
void |
setShape(int index,
VisADGeometryArray shape)
set the shape associated with index;
the VisADGeometryArray class hierarchy defines various
kinds of shapes
|
void |
setShapes(VisADGeometryArray[] shs)
Sets the array of shapes.
|
void |
setShapeSet(SimpleSet set)
Sets the SimpleSet that defines the mapping from RealType values to indices
into an array of shapes.
|
void |
syncControl(Control rmt)
copy the state of a remote control to this control
|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toStringpublic ShapeControl(DisplayImpl d)
public void setShapeSet(SimpleSet set) throws VisADException, RemoteException
set - 1-D set of values that defines the mapping from
RealType values to indices into the array of
shapes. The domain dimension shall be 1.VisADExceptionRemoteExceptionpublic void setShape(int index,
VisADGeometryArray shape)
throws VisADException,
RemoteException
VisADExceptionRemoteExceptionpublic void setShapes(VisADGeometryArray[] shs) throws VisADException, RemoteException
setShapeSet()
method. The VisADGeometryArray class hierarchy defines various kinds of
shapes. This method must be called after the setShapeSet()
method to avoid a subsequent NullPointerException in the running of the
display.shs - The array of shapes.VisADExceptionRemoteExceptionpublic VisADGeometryArray[] getShapes(float[] values) throws VisADException
VisADExceptionpublic void setScale(float s)
throws VisADException,
RemoteException
VisADExceptionRemoteExceptionpublic float getScale()
public String getSaveString()
getSaveString in class Controlpublic void setSaveString(String save) throws VisADException, RemoteException
setSaveString in class Controlsave - - String representation for reconstructionVisADException - if a VisAD error occursRemoteException - if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl in class Controlrmt - remote Control whose state is copiedVisADException - if a VisAD error occurspublic void setAutoScale(boolean auto)
throws VisADException
VisADExceptionpublic void nullControl()
ControlnullControl in class Controlpublic boolean equals(Object o)
ControlCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.