|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.Control visad.ShapeControl
public class ShapeControl
ShapeControl is the VisAD class for controlling Shape display scalars.
Constructor Summary | |
---|---|
ShapeControl(DisplayImpl d)
|
Method Summary | |
---|---|
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 |
Methods inherited from class visad.Control |
---|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShapeControl(DisplayImpl d)
Method Detail |
---|
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 reconstruction
VisADException
- if a VisAD error occurs
RemoteException
- if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copied
VisADException
- 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
equals
in class Control
o
- an Object
public Object clone()
clone
in class Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |