Package hec.map.raster
Class RasterGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.raster.RasterGlyph
- All Implemented Interfaces:
ElevationGlyph,ImageObserver,Serializable,Comparable<MapGlyph>,Observer
public class RasterGlyph
extends MapGlyph
implements Serializable, ImageObserver, ElevationGlyph, Observer
- See Also:
-
Nested Class Summary
Nested ClassesNested 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, yarrayFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
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 regionvoidfillMap(boolean load) Creates the image is the map is being loaded.Gets the DefaultDataRecord of the MapGlyph objectdoublegetElevation(WorldPt pt) floatgetElevationAt(int ix, int iy) get depth at a point.doubledoubledoublebooleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height) protected voidinit()called when the MapGlyph is made active.voidsetInterpolate(boolean b) voidupdate(Observable o, Object arg) Methods 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, getToolTipText, glyphVector, hasChildGlyphs, hasMap, intersects, isAltDown, isAttributeAvailable, isControlDown, isMetaDown, isPaintOk, isRepaintNeeded, isShiftDown, isShown, isWriteLocked, objectDoubleClick, objectPopupMenu, objectSelect, reInit, removeChangeListener, removeGlyphSelectionListener, setDataRecord, setGlyphLevel, setMap, setMapPanel, setMaximumScale, setMinimumScale, setPaintOk, setParentGlyph, setRepaintNeeded, setShown, 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
-
Field Details
-
_viewableImageHash
-
_segImageList
-
-
Constructor Details
-
RasterGlyph
public RasterGlyph() -
RasterGlyph
-
-
Method Details
-
init
protected void init()Description copied from class:MapGlyphcalled when the MapGlyph is made active. Any initialization should be performed here. -
setInterpolate
public void setInterpolate(boolean b) -
getDefaultDataRecord
Description copied from class:MapGlyphGets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecordin 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:
getNoDataValuein interfaceElevationGlyph
-
getElevation
-
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevationin interfaceElevationGlyph
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevationin interfaceElevationGlyph
-
update
-
draw
Description copied from class:MapGlyphdraw this MapGlyph to graphics using the MapScale scl -
imageUpdate
- Specified by:
imageUpdatein 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:
getElevationAtin interfaceElevationGlyph
-
drawElevationStats
Compute and draw max min and average elevation for the given region- Specified by:
drawElevationStatsin interfaceElevationGlyph
-