Package ucar.unidata.idv.control.drawing
Class TransectGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.LineGlyph
ucar.unidata.idv.control.drawing.ShapeGlyph
ucar.unidata.idv.control.drawing.TransectGlyph
Class TransectGlyph. Displays a shape.
- Version:
- $Revision: 1.23 $
- Author:
- IDV Development Team
-
Field Summary
Fields inherited from class ucar.unidata.idv.control.drawing.ShapeGlyph
ATTR_SHAPETYPE, SHAPE_DIAMOND, SHAPE_HARROW, SHAPE_LINE, SHAPE_NAMES, SHAPE_OVAL, SHAPE_RECTANGLE, SHAPE_VARROW, SHAPES
Fields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
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 Summary
ConstructorsConstructorDescriptionCtorTransectGlyph
(DrawingControl control, DisplayEvent event, boolean editable) The ctorTransectGlyph
(DrawingControl control, DisplayEvent event, boolean editable, boolean showText) The ctor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
applyProperties
(Hashtable compMap) Apply the propertiesvoid
Check if we need to show/hide the max data distance boxvoid
override this because we ignore timeGet the glyph descriptionGet the EndText property.Add on extra description.boolean
Get the ForDisplay property.Get the MaxDataDistance property.protected int
How many points do we interpolate along the lineprotected void
getPropertiesComponents
(List comps, Hashtable compMap) Add to the properties listGet the StartText property.Name to use for this glyphGet the ViewDescriptor property.Get the WaypointText property.handleKeyPressed
(DisplayEvent event) Handle event.handleMouseDragged
(DisplayEvent event) Handle eventprotected boolean
Init at the endboolean
Can the user select this glyphvoid
setEndText
(String value) Set the EndText property.void
setLineWidth
(float value) Set the LineWidth property.void
setMaxDataDistance
(Real value) Set the MaxDataDistance property.void
setStartText
(String value) Set the StartText property.void
setViewDescriptor
(ViewDescriptor value) Set the ViewDescriptor property.void
setVisible
(boolean visible) Toggle the visibilityvoid
setWaypointText
(String value) Set the WaypointText property.void
Handle glyph movedMethods inherited from class ucar.unidata.idv.control.drawing.ShapeGlyph
addAttributes, canShowArea, canShowDistance, constrainedTo2D, getShapeType, getTagName, handleMousePressed, initFromXml, interpolate, isValid, makeRectangle, makeRectangle2D, setShapeType
Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph
createDisplayable, getLineWidth, initFromUser
Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
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
-
Constructor Details
-
TransectGlyph
public TransectGlyph()Ctor -
TransectGlyph
public TransectGlyph(DrawingControl control, DisplayEvent event, boolean editable) throws VisADException, RemoteException The ctor- Parameters:
control
- The control I'm in.event
- The display event.editable
- Is this editable- Throws:
RemoteException
- When bad things happenVisADException
- When bad things happen
-
TransectGlyph
public TransectGlyph(DrawingControl control, DisplayEvent event, boolean editable, boolean showText) throws VisADException, RemoteException The ctor- Parameters:
control
- The control I'm in.event
- The display event.editable
- Is this glyph editableshowText
- Should we show the end point text- Throws:
RemoteException
- When bad things happenVisADException
- When bad things happen
-
-
Method Details
-
getNumInterpolationPoints
protected int getNumInterpolationPoints()How many points do we interpolate along the line- Overrides:
getNumInterpolationPoints
in classShapeGlyph
- Returns:
- 10
-
setVisible
Toggle the visibility- Overrides:
setVisible
in classDrawingGlyph
- Parameters:
visible
- is visible- Throws:
RemoteException
- On badnessVisADException
- On badness
-
checkTimeVisibility
override this because we ignore time- Overrides:
checkTimeVisibility
in classDrawingGlyph
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
checkBoxVisibility
Check if we need to show/hide the max data distance box- Throws:
RemoteException
- On badnessVisADException
- On badness
-
updateLocation
Handle glyph moved- Overrides:
updateLocation
in classShapeGlyph
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
setLineWidth
public void setLineWidth(float value) Set the LineWidth property.- Overrides:
setLineWidth
in classLineGlyph
- Parameters:
value
- The new value for LineWidth
-
getExtraDescription
Add on extra description. This shows up in the JTable- Overrides:
getExtraDescription
in classDrawingGlyph
- Returns:
- Extra description
-
initFinalInner
Init at the end- Overrides:
initFinalInner
in classLineGlyph
- Returns:
- Success
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
handleMouseDragged
Handle event- Overrides:
handleMouseDragged
in classShapeGlyph
- Parameters:
event
- The display event.- Returns:
- This or null
- Throws:
RemoteException
- When bad things happenVisADException
- When bad things happen
-
getPropertiesComponents
Add to the properties list- Overrides:
getPropertiesComponents
in classLineGlyph
- Parameters:
comps
- List of label/widgetscompMap
- Optional mapping to hold components for later access
-
applyProperties
Apply the properties- Overrides:
applyProperties
in classLineGlyph
- Parameters:
compMap
- Optional map that holds components- Returns:
- Success
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
getTypeName
Name to use for this glyph- Overrides:
getTypeName
in classShapeGlyph
- Returns:
- The glyph type name
-
setStartText
Set the StartText property.- Parameters:
value
- The new value for StartText
-
getStartText
Get the StartText property.- Returns:
- The StartText
-
setEndText
Set the EndText property.- Parameters:
value
- The new value for EndText
-
getEndText
Get the EndText property.- Returns:
- The EndText
-
setWaypointText
Set the WaypointText property.- Parameters:
value
- The new value for WaypointText
-
getWaypointText
Get the WaypointText property.- Returns:
- The WaypointText
-
getDescription
Get the glyph description- Overrides:
getDescription
in classShapeGlyph
- Returns:
- The description
-
isSelectable
public boolean isSelectable()Can the user select this glyph- Overrides:
isSelectable
in classDrawingGlyph
- Returns:
- Is this glyph selectable
-
getForDisplay
public boolean getForDisplay()Get the ForDisplay property.- Returns:
- The ForDisplay
-
setViewDescriptor
Set the ViewDescriptor property.- Parameters:
value
- The new value for ViewDescriptor
-
getViewDescriptor
Get the ViewDescriptor property.- Returns:
- The ViewDescriptor
-
setMaxDataDistance
Set the MaxDataDistance property.- Parameters:
value
- The new value for MaxDataDistance
-
getMaxDataDistance
Get the MaxDataDistance property.- Returns:
- The MaxDataDistance
-
handleKeyPressed
Handle event.- Overrides:
handleKeyPressed
in classDrawingGlyph
- Parameters:
event
- The display event.- Returns:
- This or null
- Throws:
RemoteException
- On badnessVisADException
- On badness
-