Package ucar.unidata.idv.control.drawing
Class FrontGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.LineGlyph
ucar.unidata.idv.control.drawing.PolyGlyph
ucar.unidata.idv.control.drawing.FrontGlyph
- Direct Known Subclasses:
ArrowGlyph
Class FrontGlyph draws fronts
- Version:
- $Revision: 1.16 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringxml attribute for the flip state of the frontstatic final Stringxml attribute for the scale for the frontstatic final StringXml attribute nameFields inherited from class ucar.unidata.idv.control.drawing.PolyGlyph
ATTR_EXTRUDE, ATTR_SMOOTH, IDX_X, IDX_Y, IDX_ZFields 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, 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
ConstructorsConstructorDescriptionCtorFrontGlyph(DrawingControl control, DisplayEvent event) CtorFrontGlyph(DrawingControl control, DisplayEvent event, String type, boolean smooth) ctor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanapplyProperties(Hashtable compMap) apply propsbooleanCan we show calculated areaprotected voidcreate the displayableprotected FrontDrawermake the frontDrawervoiddoStretch(DisplayEvent event) Stretch this glyphprotected float[][]getCurve()get the curve dataprotected floatGet the default Z position for the glyph.get the extra description to show in guibooleanGet the FlipIt property.protected FrontDrawerget the frontDrawerdoubleGet the FrontScale property.Get the FrontType property.protected voidgetPropertiesComponents(List comps, Hashtable compMap) get the prop gui compsprotected ListGet points used to select this glyph.Get xml tag name to useName to use for this glyphhandleMousePressed(DisplayEvent event) Handle eventprotected booleanInit at the endvoidinitFromXml(DrawingControl control, Element node) Initialize from xmlvoidUpdate locationprotected voidsetBaseScale(DrawingControl control, FrontDrawer frontDrawer) UtilityvoidsetFlipIt(boolean value) Set the FlipIt property.voidsetFrontScale(double value) Set the FrontScale property.voidsetFrontType(String value) Set the FrontType property.protected booleanshould add properties for the frontprotected booleanshow the color selector in the properties dialogvoidGlyph moved.voidUpdate locationxxhandleMouseDragged(DisplayEvent event) Handle eventprotected voidxxxxsetColor(Displayable displayable, Color c) noopMethods inherited from class ucar.unidata.idv.control.drawing.PolyGlyph
canShowDistance, doDeletePoint, doFlythrough, doneBeingCreated, getClosed, getExtrude, getSmooth, getTimeField, handleKeyPressed, handleMouseDragged, handleMouseReleased, isValid, setAnimationSet, setClosed, setExtrude, setSmoothMethods inherited from class ucar.unidata.idv.control.drawing.LineGlyph
getLineWidth, initFromUser, setLineWidthMethods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleMouseMoved, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowBgColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, writePoints
-
Field Details
-
ATTR_FRONTTYPE
Xml attribute name- See Also:
-
ATTR_FRONTSCALE
xml attribute for the scale for the front- See Also:
-
ATTR_FRONTFLIP
xml attribute for the flip state of the front- See Also:
-
-
Constructor Details
-
FrontGlyph
public FrontGlyph()Ctor -
FrontGlyph
public FrontGlyph(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Ctor- Parameters:
control- The control I'm in.event- The display event.- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
FrontGlyph
public FrontGlyph(DrawingControl control, DisplayEvent event, String type, boolean smooth) throws VisADException, RemoteException ctor- Parameters:
control- The control I'm in.event- The display event.type- Front typesmooth- is the front smooth or segmented- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
-
Method Details
-
getFrontDrawer
get the frontDrawer- Returns:
- the frontDrawer
-
initFinalInner
Init at the end- Overrides:
initFinalInnerin classPolyGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
doMakeFrontDrawer
make the frontDrawer- Returns:
- the frontDrawer
- Throws:
RemoteException- on badnessVisADException- on badness
-
xxxxsetColor
protected void xxxxsetColor(Displayable displayable, Color c) throws VisADException, RemoteException noop- Parameters:
displayable- displayablec- color- Throws:
RemoteException- On badnessVisADException- On badness
-
doStretch
Stretch this glyph- Overrides:
doStretchin classPolyGlyph- Parameters:
event- The display event.- Throws:
RemoteException- On badnessVisADException- On badness
-
getExtraDescription
get the extra description to show in gui- Overrides:
getExtraDescriptionin classDrawingGlyph- Returns:
- description
-
getPropertiesComponents
get the prop gui comps- Overrides:
getPropertiesComponentsin classPolyGlyph- Parameters:
comps- List of compscompMap- comp map
-
createDisplayable
create the displayable- Overrides:
createDisplayablein classLineGlyph- Throws:
RemoteException- on badnessVisADException- on badness
-
shouldAddFrontProperties
protected boolean shouldAddFrontProperties()should add properties for the front- Returns:
- should add properties for the front
-
shouldShowColorSelector
protected boolean shouldShowColorSelector()show the color selector in the properties dialog- Overrides:
shouldShowColorSelectorin classDrawingGlyph- Returns:
- show the color selector in the properties dialog
-
applyProperties
apply props- Overrides:
applyPropertiesin classLineGlyph- Parameters:
compMap- holds comps- Returns:
- ok
- Throws:
RemoteException- On badnessVisADException- On badness
-
canShowArea
public boolean canShowArea()Can we show calculated area- Overrides:
canShowAreain classPolyGlyph- Returns:
- true
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Initialize from xml- Overrides:
initFromXmlin classPolyGlyph- Parameters:
control- The control I'm in.node- The xml node- Throws:
RemoteException- On badnessVisADException- On badness
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributesin classPolyGlyph- Parameters:
e- Xml node
-
viewpointChanged
Update location- Overrides:
viewpointChangedin classDrawingGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
projectionChanged
Update location- Overrides:
projectionChangedin classDrawingGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
setBaseScale
protected void setBaseScale(DrawingControl control, FrontDrawer frontDrawer) throws VisADException, RemoteException Utility- Parameters:
control- The control we're infrontDrawer- The drawer- Throws:
RemoteException- On badnessVisADException- On badness
-
getSelectionPoints
Get points used to select this glyph.- Overrides:
getSelectionPointsin classPolyGlyph- Returns:
- Selection points
-
getDefaultZPosition
protected float getDefaultZPosition()Get the default Z position for the glyph.- Overrides:
getDefaultZPositionin classDrawingGlyph- Returns:
- where to put this glyph in Z
-
updateLocation
Glyph moved. Update the Displayable location.- Overrides:
updateLocationin classPolyGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
getCurve
get the curve data- Returns:
- curve data
- Throws:
RemoteException- on badnessVisADException- on badness
-
handleMousePressed
Handle event- Overrides:
handleMousePressedin classPolyGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
xxhandleMouseDragged
Handle event- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- On badnessVisADException- On badness
-
getTagName
Get xml tag name to use- Overrides:
getTagNamein classPolyGlyph- Returns:
- Xml tag name
-
getTypeName
Name to use for this glyph- Overrides:
getTypeNamein classPolyGlyph- Returns:
- The glyph type name
-
setFrontType
Set the FrontType property.- Parameters:
value- The new value for FrontType
-
getFrontType
Get the FrontType property.- Returns:
- The FrontType
-
setFlipIt
public void setFlipIt(boolean value) Set the FlipIt property.- Parameters:
value- The new value for FlipIt
-
getFlipIt
public boolean getFlipIt()Get the FlipIt property.- Returns:
- The FlipIt
-
setFrontScale
public void setFrontScale(double value) Set the FrontScale property.- Parameters:
value- The new value for FrontScale
-
getFrontScale
public double getFrontScale()Get the FrontScale property.- Returns:
- The FrontScale
-