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, SHAPESFields 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 booleanapplyProperties(Hashtable compMap) Apply the propertiesvoidCheck if we need to show/hide the max data distance boxvoidoverride this because we ignore timeGet the glyph descriptionGet the EndText property.Add on extra description.booleanGet the ForDisplay property.Get the MaxDataDistance property.protected intHow many points do we interpolate along the lineprotected voidgetPropertiesComponents(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 booleanInit at the endbooleanCan the user select this glyphvoidsetEndText(String value) Set the EndText property.voidsetLineWidth(float value) Set the LineWidth property.voidsetMaxDataDistance(Real value) Set the MaxDataDistance property.voidsetStartText(String value) Set the StartText property.voidsetViewDescriptor(ViewDescriptor value) Set the ViewDescriptor property.voidsetVisible(boolean visible) Toggle the visibilityvoidsetWaypointText(String value) Set the WaypointText property.voidHandle glyph movedMethods inherited from class ucar.unidata.idv.control.drawing.ShapeGlyph
addAttributes, canShowArea, canShowDistance, constrainedTo2D, getShapeType, getTagName, handleMousePressed, initFromXml, interpolate, isValid, makeRectangle, makeRectangle2D, setShapeTypeMethods inherited from class ucar.unidata.idv.control.drawing.LineGlyph
createDisplayable, getLineWidth, initFromUserMethods 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:
getNumInterpolationPointsin classShapeGlyph- Returns:
- 10
-
setVisible
Toggle the visibility- Overrides:
setVisiblein classDrawingGlyph- Parameters:
visible- is visible- Throws:
RemoteException- On badnessVisADException- On badness
-
checkTimeVisibility
override this because we ignore time- Overrides:
checkTimeVisibilityin 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:
updateLocationin classShapeGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
setLineWidth
public void setLineWidth(float value) Set the LineWidth property.- Overrides:
setLineWidthin classLineGlyph- Parameters:
value- The new value for LineWidth
-
getExtraDescription
Add on extra description. This shows up in the JTable- Overrides:
getExtraDescriptionin classDrawingGlyph- Returns:
- Extra description
-
initFinalInner
Init at the end- Overrides:
initFinalInnerin classLineGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
handleMouseDragged
Handle event- Overrides:
handleMouseDraggedin 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:
getPropertiesComponentsin classLineGlyph- Parameters:
comps- List of label/widgetscompMap- Optional mapping to hold components for later access
-
applyProperties
Apply the properties- Overrides:
applyPropertiesin classLineGlyph- Parameters:
compMap- Optional map that holds components- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
getTypeName
Name to use for this glyph- Overrides:
getTypeNamein 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:
getDescriptionin classShapeGlyph- Returns:
- The description
-
isSelectable
public boolean isSelectable()Can the user select this glyph- Overrides:
isSelectablein 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:
handleKeyPressedin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- On badnessVisADException- On badness
-