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, toString
public 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.VisADException
RemoteException
public void setShape(int index, VisADGeometryArray shape) throws VisADException, RemoteException
VisADException
RemoteException
public 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.VisADException
RemoteException
public VisADGeometryArray[] getShapes(float[] values) throws VisADException
VisADException
public void setScale(float s) throws VisADException, RemoteException
VisADException
RemoteException
public float getScale()
public String getSaveString()
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
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 void setAutoScale(boolean auto) throws VisADException
VisADException
public void nullControl()
Control
nullControl
in class Control
public boolean equals(Object o)
Control
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.