Package hec.map.image
Class ImageGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.image.ImageGlyph
- All Implemented Interfaces:
IImageGlyph,ImageObserver,Comparable<MapGlyph>
- Direct Known Subclasses:
ImageGlyphProxy,MrSidMapGlyph
-
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, yarrayFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is called when a series of adjustments are finished.voidadjustImage(DragPoint dragPoint, Point PT0, Point PT1) voiddraw this MapGlyph to graphics using the MapScale sclprotected voiddrawBorder(Graphics2D g2, LocalRect rect) protected voiddrawDragPoints(Graphics2D g2, LocalRect rect) protected voiddrawFileName(Graphics g2, LocalRect rect) voidfillMap(boolean load) have the _map load or unload its data.Gets the DefaultDataRecord of the MapGlyph objectprotected ImageGlyphDataRecordbooleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height) booleanvoidprotected voidscaleTransform(AffineTransform af, MapScale scl) voidsetAdjustmentEnabled(boolean b) 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, init, 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.image.IImageGlyph
getBounds, getMap, getMapPanel, getMaximumScale, getMinimumScale, setMaximumScale, setMinimumScale
-
Field Details
-
_image
-
_adjustmentEnabled
protected boolean _adjustmentEnabled
-
-
Constructor Details
-
ImageGlyph
public ImageGlyph() -
ImageGlyph
-
-
Method Details
-
getDragPoints
- Specified by:
getDragPointsin interfaceIImageGlyph
-
setAdjustmentEnabled
public void setAdjustmentEnabled(boolean b) - Specified by:
setAdjustmentEnabledin interfaceIImageGlyph
-
isAdjustmentEnabled
public boolean isAdjustmentEnabled()- Specified by:
isAdjustmentEnabledin interfaceIImageGlyph
-
fillMap
public void fillMap(boolean load) Description copied from class:MapGlyphhave the _map load or unload its data. -
getDefaultDataRecord
Description copied from class:MapGlyphGets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecordin classMapGlyph- Returns:
- null unless overridden to return something else
-
getImageGlyphDataRecord
-
scaleTransform
-
draw
Description copied from class:MapGlyphdraw this MapGlyph to graphics using the MapScale scl -
drawFileName
-
drawBorder
-
drawDragPoints
-
adjustImage
- Specified by:
adjustImagein interfaceIImageGlyph
-
imageUpdate
- Specified by:
imageUpdatein interfaceImageObserver
-
saveImageCoordinates
public void saveImageCoordinates()- Specified by:
saveImageCoordinatesin interfaceIImageGlyph
-
adjustFinished
public void adjustFinished()This is called when a series of adjustments are finished. This allows the glyph to hold off on the expensive paints until elements that are calling "adjustImage()" are done with their work.- Specified by:
adjustFinishedin interfaceIImageGlyph
-