public class TransectGlyph extends ShapeGlyph
ATTR_SHAPETYPE, SHAPE_DIAMOND, SHAPE_HARROW, SHAPE_LINE, SHAPE_NAMES, SHAPE_OVAL, SHAPE_RECTANGLE, SHAPE_VARROW, SHAPES
actualPoints, ATTR_BGCOLOR, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMEFORMAT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, COORD_LONLAT, COORD_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, IDX_X, IDX_Y, IDX_Z, oldVisibility, parentDisplayable, points, propDialog, propertiesUp, PT_X, PT_Y, PT_Z, selectionDisplayable, stretchIndex, tabbedPane, TAG_ARROW, TAG_FRONT, TAG_HIGH, TAG_IMAGE, TAG_LOW, TAG_MOVIE, TAG_POLYGON, TAG_SHAPE, TAG_SYMBOL, TAG_TEXT, uniqueCnt, zPosition
Constructor and Description |
---|
TransectGlyph()
Ctor
|
TransectGlyph(DrawingControl control,
visad.DisplayEvent event,
boolean editable)
The ctor
|
TransectGlyph(DrawingControl control,
visad.DisplayEvent event,
boolean editable,
boolean showText)
The ctor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyProperties(java.util.Hashtable compMap)
Apply the properties
|
void |
checkBoxVisibility()
Check if we need to show/hide the max data distance box
|
void |
checkTimeVisibility()
override this because we ignore time
|
java.lang.String |
getDescription()
Get the glyph description
|
java.lang.String |
getEndText()
Get the EndText property.
|
java.lang.String |
getExtraDescription()
Add on extra description.
|
boolean |
getForDisplay()
Get the ForDisplay property.
|
visad.Real |
getMaxDataDistance()
Get the MaxDataDistance property.
|
protected int |
getNumInterpolationPoints()
How many points do we interpolate along the line
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Add to the properties list
|
java.lang.String |
getStartText()
Get the StartText property.
|
java.lang.String |
getTypeName()
Name to use for this glyph
|
ViewDescriptor |
getViewDescriptor()
Get the ViewDescriptor property.
|
java.lang.String |
getWaypointText()
Get the WaypointText property.
|
DrawingGlyph |
handleKeyPressed(visad.DisplayEvent event)
Handle event.
|
DrawingGlyph |
handleMouseDragged(visad.DisplayEvent event)
Handle event
|
protected boolean |
initFinalInner()
Init at the end
|
boolean |
isSelectable()
Can the user select this glyph
|
void |
setEndText(java.lang.String value)
Set the EndText property.
|
void |
setLineWidth(float value)
Set the LineWidth property.
|
void |
setMaxDataDistance(visad.Real value)
Set the MaxDataDistance property.
|
void |
setStartText(java.lang.String value)
Set the StartText property.
|
void |
setViewDescriptor(ViewDescriptor value)
Set the ViewDescriptor property.
|
void |
setVisible(boolean visible)
Toggle the visibility
|
void |
setWaypointText(java.lang.String value)
Set the WaypointText property.
|
void |
updateLocation()
Handle glyph moved
|
addAttributes, canShowArea, canShowDistance, constrainedTo2D, getShapeType, getTagName, handleMousePressed, initFromXml, interpolate, isValid, makeRectangle, makeRectangle2D, setShapeType
createDisplayable, getLineWidth, initFromUser
addDisplayable, addTime, checkVisibility, closestPoint, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doMove, doneBeingCreated, doStretch, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleMouseMoved, handleMouseReleased, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisibleFlag, setZPosition, shouldShowBgColorSelector, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged, writePoints
public TransectGlyph()
public TransectGlyph(DrawingControl control, visad.DisplayEvent event, boolean editable) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.editable
- Is this editablejava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic TransectGlyph(DrawingControl control, visad.DisplayEvent event, boolean editable, boolean showText) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.editable
- Is this glyph editableshowText
- Should we show the end point textjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected int getNumInterpolationPoints()
getNumInterpolationPoints
in class ShapeGlyph
public void setVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
setVisible
in class DrawingGlyph
visible
- is visiblejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void checkTimeVisibility() throws visad.VisADException, java.rmi.RemoteException
checkTimeVisibility
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void checkBoxVisibility() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class ShapeGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setLineWidth(float value)
setLineWidth
in class LineGlyph
value
- The new value for LineWidthpublic java.lang.String getExtraDescription()
getExtraDescription
in class DrawingGlyph
protected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class LineGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMouseDragged(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseDragged
in class ShapeGlyph
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class LineGlyph
comps
- List of label/widgetscompMap
- Optional mapping to hold components for later accessprotected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
applyProperties
in class LineGlyph
compMap
- Optional map that holds componentsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getTypeName()
getTypeName
in class ShapeGlyph
public void setStartText(java.lang.String value)
value
- The new value for StartTextpublic java.lang.String getStartText()
public void setEndText(java.lang.String value)
value
- The new value for EndTextpublic java.lang.String getEndText()
public void setWaypointText(java.lang.String value)
value
- The new value for WaypointTextpublic java.lang.String getWaypointText()
public java.lang.String getDescription()
getDescription
in class ShapeGlyph
public boolean isSelectable()
isSelectable
in class DrawingGlyph
public boolean getForDisplay()
public void setViewDescriptor(ViewDescriptor value)
value
- The new value for ViewDescriptorpublic ViewDescriptor getViewDescriptor()
public void setMaxDataDistance(visad.Real value)
value
- The new value for MaxDataDistancepublic visad.Real getMaxDataDistance()
public DrawingGlyph handleKeyPressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleKeyPressed
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badness