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 String
xml attribute for the flip state of the frontstatic final String
xml attribute for the scale for the frontstatic final String
Xml attribute nameFields inherited from class ucar.unidata.idv.control.drawing.PolyGlyph
ATTR_EXTRUDE, ATTR_SMOOTH, IDX_X, IDX_Y, IDX_Z
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, 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 void
Populate the xml node with attrsprotected boolean
applyProperties
(Hashtable compMap) apply propsboolean
Can we show calculated areaprotected void
create the displayableprotected FrontDrawer
make the frontDrawervoid
doStretch
(DisplayEvent event) Stretch this glyphprotected float[][]
getCurve()
get the curve dataprotected float
Get the default Z position for the glyph.get the extra description to show in guiboolean
Get the FlipIt property.protected FrontDrawer
get the frontDrawerdouble
Get the FrontScale property.Get the FrontType property.protected void
getPropertiesComponents
(List comps, Hashtable compMap) get the prop gui compsprotected List
Get points used to select this glyph.Get xml tag name to useName to use for this glyphhandleMousePressed
(DisplayEvent event) Handle eventprotected boolean
Init at the endvoid
initFromXml
(DrawingControl control, Element node) Initialize from xmlvoid
Update locationprotected void
setBaseScale
(DrawingControl control, FrontDrawer frontDrawer) Utilityvoid
setFlipIt
(boolean value) Set the FlipIt property.void
setFrontScale
(double value) Set the FrontScale property.void
setFrontType
(String value) Set the FrontType property.protected boolean
should add properties for the frontprotected boolean
show the color selector in the properties dialogvoid
Glyph moved.void
Update locationxxhandleMouseDragged
(DisplayEvent event) Handle eventprotected void
xxxxsetColor
(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, setSmooth
Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph
getLineWidth, initFromUser, setLineWidth
Methods 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:
initFinalInner
in 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:
doStretch
in classPolyGlyph
- Parameters:
event
- The display event.- Throws:
RemoteException
- On badnessVisADException
- On badness
-
getExtraDescription
get the extra description to show in gui- Overrides:
getExtraDescription
in classDrawingGlyph
- Returns:
- description
-
getPropertiesComponents
get the prop gui comps- Overrides:
getPropertiesComponents
in classPolyGlyph
- Parameters:
comps
- List of compscompMap
- comp map
-
createDisplayable
create the displayable- Overrides:
createDisplayable
in 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:
shouldShowColorSelector
in classDrawingGlyph
- Returns:
- show the color selector in the properties dialog
-
applyProperties
apply props- Overrides:
applyProperties
in classLineGlyph
- Parameters:
compMap
- holds comps- Returns:
- ok
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
canShowArea
public boolean canShowArea()Can we show calculated area- Overrides:
canShowArea
in classPolyGlyph
- Returns:
- true
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Initialize from xml- Overrides:
initFromXml
in 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:
addAttributes
in classPolyGlyph
- Parameters:
e
- Xml node
-
viewpointChanged
Update location- Overrides:
viewpointChanged
in classDrawingGlyph
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
projectionChanged
Update location- Overrides:
projectionChanged
in 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:
getSelectionPoints
in classPolyGlyph
- Returns:
- Selection points
-
getDefaultZPosition
protected float getDefaultZPosition()Get the default Z position for the glyph.- Overrides:
getDefaultZPosition
in classDrawingGlyph
- Returns:
- where to put this glyph in Z
-
updateLocation
Glyph moved. Update the Displayable location.- Overrides:
updateLocation
in 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:
handleMousePressed
in 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:
getTagName
in classPolyGlyph
- Returns:
- Xml tag name
-
getTypeName
Name to use for this glyph- Overrides:
getTypeName
in 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
-