Package hec.map.vrt
Class VrtMapGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.vrt.VrtMapGlyph
- All Implemented Interfaces:
ElevationGlyph,Comparable<MapGlyph>
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.map.MapGlyph
MapGlyph.Selection -
Field Summary
Fields inherited from class hec.map.MapGlyph
_changeEvent, _glyphLevel, _listenerList, _map, _mapIdentifier, _mapPanel, _paintOk, _parentGlyph, maxPtArraySz, needsRepaint, xarray, XOR_COLOR, yarray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw this MapGlyph to graphics using the MapScale sclvoiddrawElevationStats(Graphics g, LocalRegion region) Compute and draw max min and average elevation for the given regionGets the DefaultDataRecord of the MapGlyph objectfloatgetElevationAt(int ix, int iy) get depth at a point.doubledoubledoublebooleanisShown()Gets whether this MapGlyph is currently drawn in the MapPanelvoidsetShown(boolean shown) Sets whether this MapGlyph will draw in the MapPanelMethods inherited from class hec.map.MapGlyph
addChangeListener, addGlyphSelectionListener, checkXYArraySize, clearSelection, clearSelection, close, compareTo, containsSelection, drawConformingString, drawConformingString2, drawLine, drawLine, drawLine, drawLine, drawLine2D, drawRegion, drawRegion, fillMap, findGlyphOfClass, findObject, fireGlyphSelectionChanged, fireStateChanged, getAttributeSet, getBounds, getDataRecord, getDescription, getGlyphLevel, getMap, getMapPanel, getMaximumScale, getMinimumScale, getName, getParentGlyph, getSelectedObject, getSelections, getToolTipText, glyphVector, hasChildGlyphs, hasMap, init, intersects, isAltDown, isAttributeAvailable, isControlDown, isMetaDown, isPaintOk, isRepaintNeeded, isShiftDown, isWriteLocked, objectDoubleClick, objectPopupMenu, objectSelect, reInit, removeChangeListener, removeGlyphSelectionListener, setDataRecord, setGlyphLevel, setMap, setMapPanel, setMaximumScale, setMinimumScale, setPaintOk, setParentGlyph, setRepaintNeeded, shouldReturn, showMapElement, toString, transformArrays, transformLocalToWorldArrays, transformLookup, transformPoint, transformPointToLocal, transformPointToWorld, transformRect, transformRect, transformRectToLocal, transformWorldToLocalArraysMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.map.ElevationGlyph
getDataRecord, getMap, getMaximumScale, getMinimumScale, getName, setDataRecord, setMaximumScale, setMinimumScale
-
Constructor Details
-
VrtMapGlyph
-
-
Method Details
-
isShown
public boolean isShown()Description copied from class:MapGlyphGets whether this MapGlyph is currently drawn in the MapPanel -
setShown
public void setShown(boolean shown) Description copied from class:MapGlyphSets whether this MapGlyph will draw in the MapPanel -
draw
Description copied from class:MapGlyphdraw this MapGlyph to graphics using the MapScale scl -
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevationin interfaceElevationGlyph
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevationin interfaceElevationGlyph
-
getElevationAt
public float getElevationAt(int ix, int iy) Description copied from interface:ElevationGlyphget depth at a point. assume nodes have already been scaled for this viewport- Specified by:
getElevationAtin interfaceElevationGlyph
-
getNoDataValue
public double getNoDataValue()- Specified by:
getNoDataValuein interfaceElevationGlyph
-
drawElevationStats
Description copied from interface:ElevationGlyphCompute and draw max min and average elevation for the given region- Specified by:
drawElevationStatsin interfaceElevationGlyph
-
getDefaultDataRecord
Gets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecordin classMapGlyph- Returns:
- null unless overridden to return something else
-