|
||||||||||
| 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.SelectorPoint
public class SelectorPoint
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 | |
|---|---|
SelectorPoint(SelectorPoint that)
Construct a SelectorPoint from another instance |
|
SelectorPoint(String name,
RealTuple initialValue)
Construct a SelectorPoint for the pointType specified with the specified intial value. |
|
SelectorPoint(String name,
RealTupleType pointType)
Construct a SelectorPoint for the pointType specified. |
|
SelectorPoint(String name,
String markerText,
RealTuple initialValue)
Construct a SelectorPoint. |
|
SelectorPoint(String name,
VisADGeometryArray marker,
RealTuple initialValue)
Construct a SelectorPoint 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. |
Set |
getAnimationSet(RealType aniType)
Returns the set of values for the given aniType if
the contained Data object adapted by this DisplayableData have
any data of that type. |
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. |
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 |
setFixed(boolean x,
boolean y,
boolean z)
Set if any of the axis movements are fixed |
void |
setMarker(String markerText)
Set the marker text for this selector point |
void |
setMarker(VisADGeometryArray marker)
Set the marker for this selector point |
void |
setPoint(RealTuple value)
Set the point. |
void |
setPointSize(float newSize)
Set the size (scale) of the ShapeControl. |
void |
setPointWithTime(RealTuple value,
List times)
|
| 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, 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 SelectorPoint(String name,
RealTupleType pointType)
throws VisADException,
RemoteException
name - name of this SelectorPointpointType - RealType that the point should map to
VisADException - VisAD error
RemoteException - remote error
public SelectorPoint(String name,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this SelectorPointinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public SelectorPoint(String name,
String markerText,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this SelectorPointmarkerText - text for the markerinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public SelectorPoint(String name,
VisADGeometryArray marker,
RealTuple initialValue)
throws VisADException,
RemoteException
name - name of this SelectorPointmarker - Shape to use for makerinitialValue - RealTuple position for point
VisADException - VisAD error
RemoteException - remote error
public SelectorPoint(SelectorPoint that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - remote error| Method Detail |
|---|
public Set getAnimationSet(RealType aniType)
throws VisADException,
RemoteException
DisplayableDataReturns the set of values for the given aniType if
the contained Data object adapted by this DisplayableData have
any data of that type. null will be returned if
this instance adapts such an object but the object is unset, or if this
instance does not support this type.
getAnimationSet in class DisplayableDataaniType - The type used for animation
null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.DisplayableData.hasDataObject()
public void setFixed(boolean x,
boolean y,
boolean z)
x - x fixedy - y fixedz - z fixed
public void setPoint(RealTuple value)
throws VisADException,
RemoteException
value - new value for this point
VisADException - VisAD error
RemoteException - remote error
public void setPointWithTime(RealTuple value,
List times)
throws VisADException,
RemoteException
VisADException
RemoteException
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)
throws VisADException,
RemoteException
marker - VisADGeometryArray for marker
RemoteException - Java RMI error
VisADException - problem creating VisAD object
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||