Package hec.map.aidem
Class AiDemGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.aidem.AiDemGlyph
- All Implemented Interfaces:
ElevationGlyph
,ImageObserver
,Serializable
,Comparable<MapGlyph>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.map.MapGlyph
MapGlyph.Selection
-
Field Summary
FieldsFields inherited from class hec.map.MapGlyph
_changeEvent, _glyphLevel, _listenerList, _map, _mapIdentifier, _mapPanel, _paintOk, _parentGlyph, maxPtArraySz, needsRepaint, xarray, XOR_COLOR, yarray
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
draw this MapGlyph to graphics using the MapScale sclvoid
drawElevationStats
(Graphics g, LocalRegion region) Compute and draw max min and average elevation for the given regionvoid
fillMap
(boolean load) Creates the image is the map is being loaded.Gets the DefaultDataRecord of the MapGlyph objectdouble
getElevation
(WorldPt pt) float
getElevationAt
(int ix, int iy) get depth at a point.double
double
double
getToolTipText
(WorldPt wpt, MouseEvent e) Gets the ToolTipText of the MapGlyph objectboolean
imageUpdate
(Image img, int infoflags, int x, int y, int width, int height) protected void
init()
called when the MapGlyph is made active.void
setMap
(MapObjectInterface map) Sets the MapObjectInterface of the MapGlyph objectMethods inherited from class hec.map.MapGlyph
addChangeListener, addGlyphSelectionListener, checkXYArraySize, clearSelection, clearSelection, close, compareTo, containsSelection, drawConformingString, drawConformingString2, drawLine, drawLine, drawLine, drawLine, drawLine2D, drawRegion, drawRegion, findGlyphOfClass, findObject, fireGlyphSelectionChanged, fireStateChanged, getAttributeSet, getBounds, getDataRecord, getDescription, getGlyphLevel, getMap, getMapPanel, getMaximumScale, getMinimumScale, getName, getParentGlyph, getSelectedObject, getSelections, glyphVector, hasChildGlyphs, hasMap, intersects, isAltDown, isAttributeAvailable, isControlDown, isMetaDown, isPaintOk, isRepaintNeeded, isShiftDown, isShown, isWriteLocked, objectDoubleClick, objectPopupMenu, objectSelect, reInit, removeChangeListener, removeGlyphSelectionListener, setDataRecord, setGlyphLevel, setMapPanel, setMaximumScale, setMinimumScale, setPaintOk, setParentGlyph, setRepaintNeeded, setShown, shouldReturn, showMapElement, toString, transformArrays, transformLocalToWorldArrays, transformLookup, transformPoint, transformPointToLocal, transformPointToWorld, transformRect, transformRect, transformRectToLocal, transformWorldToLocalArrays
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.map.ElevationGlyph
getDataRecord, getMap, getMaximumScale, getMinimumScale, getName, setDataRecord, setMaximumScale, setMinimumScale
-
Field Details
-
_img
-
_areaWidth
protected int _areaWidth -
_areaHeight
protected int _areaHeight
-
-
Constructor Details
-
AiDemGlyph
public AiDemGlyph() -
AiDemGlyph
-
-
Method Details
-
init
protected void init()Description copied from class:MapGlyph
called when the MapGlyph is made active. Any initialization should be performed here. -
setMap
Sets the MapObjectInterface of the MapGlyph object -
getDefaultDataRecord
Description copied from class:MapGlyph
Gets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecord
in classMapGlyph
- Returns:
- null unless overridden to return something else
-
fillMap
public void fillMap(boolean load) Creates the image is the map is being loaded. -
getNoDataValue
public double getNoDataValue()- Specified by:
getNoDataValue
in interfaceElevationGlyph
-
getElevation
-
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevation
in interfaceElevationGlyph
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevation
in interfaceElevationGlyph
-
createImage
protected void createImage() -
draw
Description copied from class:MapGlyph
draw this MapGlyph to graphics using the MapScale scl -
imageUpdate
- Specified by:
imageUpdate
in interfaceImageObserver
-
getElevationAt
public float getElevationAt(int ix, int iy) get depth at a point. assume nodes have already been scaled for this viewport- Specified by:
getElevationAt
in interfaceElevationGlyph
-
drawElevationStats
Compute and draw max min and average elevation for the given region- Specified by:
drawElevationStats
in interfaceElevationGlyph
-
getToolTipText
Description copied from class:MapGlyph
Gets the ToolTipText of the MapGlyph object- Overrides:
getToolTipText
in classMapGlyph
- Parameters:
wpt
- the WorldPt location of the mouse cursore
- the MouseEvent- Returns:
- The ToolTipText at wpt
-