|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.ShapeDisplayable
public class ShapeDisplayable
Displayable to encompass a manipulable point that can be moved around the display. If you want to limit the movement to one axis, then construct the RealTuple with one element whose RealType corresponds to that axis.
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
ShapeDisplayable(ShapeDisplayable that)
Construct a ShapeDisplayable from another instance |
|
ShapeDisplayable(String name,
RealTuple initialValue)
Construct a ShapeDisplayable for the pointType specified with the specified intial value. |
|
ShapeDisplayable(String name,
RealTupleType pointType)
Construct a ShapeDisplayable for the pointType specified. |
|
ShapeDisplayable(String name,
String markerText)
Construct a ShapeDisplayable. |
|
ShapeDisplayable(String name,
String markerText,
RealTuple initialValue)
Construct a ShapeDisplayable. |
|
ShapeDisplayable(String name,
VisADGeometryArray marker)
Construct a ShapeDisplayable for the pointType specified. |
|
ShapeDisplayable(String name,
VisADGeometryArray marker,
RealTuple initialValue)
Construct a ShapeDisplayable for the pointType specified with the |
|
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
protected void |
dataChange()
Called when the data changes. |
boolean |
getAutoSize()
Get whether the marker is automatically resized as the display is zoomed. |
VisADGeometryArray |
getMarker()
Get the marker for this selector point |
RealTuple |
getPoint()
Get the current point. |
float |
getScale()
Get the scale of the ShapeControl. |
RealType |
getShapeType()
Get the shape type |
static VisADGeometryArray |
reduce(VisADGeometryArray marker)
Reduce the size of the marker |
void |
setAutoSize(boolean yesorno)
Set whether the marker should automatically resize as the display is zoomed. |
void |
setMarker(String markerText)
Set the marker text for this selector point |
void |
setMarker(VisADGeometryArray marker)
Set the marker for this selector point |
void |
setMarker(VisADGeometryArray[] marker)
|
void |
setMarker(VisADGeometryArray marker,
double x,
double y,
double z)
Set the marker for this selector point |
void |
setPoint(double x,
double y,
double z)
Set the location |
void |
setPoint(RealTuple value)
Set the point. |
void |
setPointSize(float newSize)
Set the size (scale) of the ShapeControl. |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeDisplayable(String name,
VisADGeometryArray marker)
throws VisADException,
RemoteException
name - name of this ShapeDisplayablemarker - The marker to use
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(String name,
RealTupleType pointType)
throws VisADException,
RemoteException
name - name of this ShapeDisplayablepointType - RealType that the point should map to
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(String name,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this ShapeDisplayableinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(String name,
String markerText)
throws VisADException,
RemoteException
name - name of this ShapeDisplayablemarkerText - text for the marker
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(String name,
String markerText,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this ShapeDisplayablemarkerText - text for the markerinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(String name,
VisADGeometryArray marker,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this ShapeDisplayablemarker - Shape to use for makerinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public ShapeDisplayable(ShapeDisplayable that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - remote error| Method Detail |
|---|
public void setPoint(RealTuple value)
throws VisADException,
RemoteException
value - new value for this point
VisADException - VisAD error
RemoteException - remote error
public Displayable cloneForDisplay()
throws VisADException,
RemoteException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.public RealTuple getPoint()
public void setMarker(String markerText)
throws VisADException,
RemoteException
markerText - VisADGeometryArray for marker
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setMarker(VisADGeometryArray marker,
double x,
double y,
double z)
throws VisADException,
RemoteException
marker - VisADGeometryArray for markerx - X locationy - Y locationz - Z location
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setPoint(double x,
double y,
double z)
throws VisADException,
RemoteException
x - xy - yz - z
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setMarker(VisADGeometryArray marker)
throws VisADException,
RemoteException
marker - VisADGeometryArray for marker
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setMarker(VisADGeometryArray[] marker)
throws VisADException,
RemoteException
VisADException
RemoteException
public void setPointSize(float newSize)
throws VisADException,
RemoteException
setPointSize in class LineDrawingnewSize - size to use.
RemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic float getScale()
public VisADGeometryArray getMarker()
public void setAutoSize(boolean yesorno)
throws VisADException,
RemoteException
yesorno - true to automatically resize the marker.
RemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic boolean getAutoSize()
protected void dataChange()
throws VisADException,
RemoteException
dataChange in class DisplayableDataRemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic static VisADGeometryArray reduce(VisADGeometryArray marker)
marker - marker to reduce
public RealType getShapeType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||