public class ShapeDisplayable extends LineDrawing
DisplayableData.DragAdapter
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Constructor and Description |
---|
ShapeDisplayable(ShapeDisplayable that)
Construct a ShapeDisplayable from another instance
|
ShapeDisplayable(java.lang.String name,
visad.RealTuple initialValue)
Construct a ShapeDisplayable for the pointType specified with the
specified intial value.
|
ShapeDisplayable(java.lang.String name,
visad.RealTupleType pointType)
Construct a ShapeDisplayable for the pointType specified.
|
ShapeDisplayable(java.lang.String name,
java.lang.String markerText)
Construct a ShapeDisplayable.
|
ShapeDisplayable(java.lang.String name,
java.lang.String markerText,
visad.RealTuple initialValue)
Construct a ShapeDisplayable.
|
ShapeDisplayable(java.lang.String name,
visad.VisADGeometryArray marker)
Construct a ShapeDisplayable for the pointType specified.
|
ShapeDisplayable(java.lang.String name,
visad.VisADGeometryArray marker,
visad.RealTuple initialValue)
Construct a ShapeDisplayable for the pointType specified with the
|
Modifier and Type | Method and Description |
---|---|
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.
|
visad.VisADGeometryArray |
getMarker()
Get the marker for this selector point
|
visad.RealTuple |
getPoint()
Get the current point.
|
float |
getScale()
Get the scale of the ShapeControl.
|
visad.RealType |
getShapeType()
Get the shape type
|
static visad.VisADGeometryArray |
reduce(visad.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(java.lang.String markerText)
Set the marker text for this selector point
|
void |
setMarker(visad.VisADGeometryArray marker)
Set the marker for this selector point
|
void |
setMarker(visad.VisADGeometryArray[] marker)
Set the marker
|
void |
setMarker(visad.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(visad.RealTuple value)
Set the point.
|
void |
setPointSize(float newSize)
Set the size (scale) of the ShapeControl.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setRGB, setRGB, setRGBA, setRGBA
addAction, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
public ShapeDisplayable(java.lang.String name, visad.VisADGeometryArray marker) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayablemarker
- The marker to usevisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(java.lang.String name, visad.RealTupleType pointType) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayablepointType
- RealType that the point should map tovisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(java.lang.String name, visad.RealTuple initialValue) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayableinitialValue
- RealTuple position for pointvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(java.lang.String name, java.lang.String markerText) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayablemarkerText
- text for the markervisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(java.lang.String name, java.lang.String markerText, visad.RealTuple initialValue) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayablemarkerText
- text for the markerinitialValue
- RealTuple position for pointvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(java.lang.String name, visad.VisADGeometryArray marker, visad.RealTuple initialValue) throws visad.VisADException, java.rmi.RemoteException
name
- name of this ShapeDisplayablemarker
- Shape to use for makerinitialValue
- RealTuple position for pointvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic ShapeDisplayable(ShapeDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that
- other instancevisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic void setPoint(visad.RealTuple value) throws visad.VisADException, java.rmi.RemoteException
value
- new value for this pointvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- remote errorpublic Displayable cloneForDisplay() throws visad.VisADException, java.rmi.RemoteException
cloneForDisplay
in class DisplayableData
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.RealTuple getPoint()
public void setMarker(java.lang.String markerText) throws visad.VisADException, java.rmi.RemoteException
markerText
- VisADGeometryArray for markerjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setMarker(visad.VisADGeometryArray marker, double x, double y, double z) throws visad.VisADException, java.rmi.RemoteException
marker
- VisADGeometryArray for markerx
- X locationy
- Y locationz
- Z locationjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setPoint(double x, double y, double z) throws visad.VisADException, java.rmi.RemoteException
x
- xy
- yz
- zjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setMarker(visad.VisADGeometryArray marker) throws visad.VisADException, java.rmi.RemoteException
marker
- VisADGeometryArray for markerjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic void setMarker(visad.VisADGeometryArray[] marker) throws visad.VisADException, java.rmi.RemoteException
marker
- the marker as a geometry arrayjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic void setPointSize(float newSize) throws visad.VisADException, java.rmi.RemoteException
setPointSize
in class LineDrawing
newSize
- size to use.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic float getScale()
public visad.VisADGeometryArray getMarker()
public void setAutoSize(boolean yesorno) throws visad.VisADException, java.rmi.RemoteException
yesorno
- true to automatically resize the marker.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic boolean getAutoSize()
protected void dataChange() throws visad.VisADException, java.rmi.RemoteException
dataChange
in class DisplayableData
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- problem creating VisAD objectpublic static visad.VisADGeometryArray reduce(visad.VisADGeometryArray marker)
marker
- marker to reducepublic visad.RealType getShapeType()