Package hec.map.aishape
Class AiShapeGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.aishape.AiShapeGlyph
- All Implemented Interfaces:
ModifiableListener,AiShapeConst,ShapeSource,TracksRepaint,Comparable<MapGlyph>,EventListener
public class AiShapeGlyph
extends MapGlyph
implements AiShapeConst, ShapeSource, ModifiableListener, TracksRepaint
-
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 hec.map.aishape.AiShapeConst
DEBUG, FILE_CODE, HIGHLIGHT_MODIFIER, QUERY_FLASH_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTI_POINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINT_M, SHAPE_TYPE_POINT_Z, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGON_M, SHAPE_TYPE_POLYGON_Z, SHAPE_TYPE_POLYLINE_M, SHAPE_TYPE_POLYLINE_Z, VERSION, XY_QUERY_TOLERANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidclose()called when the Glyph is no longer held by the MapPanelvoiddraw this MapGlyph to graphics using the MapScale sclvoidfillMap(boolean load) have the _map load or unload its data.Returns the Well Known Text Representation of the projection.Gets the DataRecord of the MapGlyph's MapIdentifier objectGets the DefaultDataRecord of the MapGlyph objectGet list of AiShapeFieldDescriptorsintgetShapeObjects(double containmentBuffer, WorldPt pt) getShapeObjects(int x, int y) Returns a list of "Import" Shape Objects from this source.voidhighlightRecords(List shapes, int centerPointGraphic) protected voidinit()called when the MapGlyph is made active.voidmodifiedStateChanged(Modifiable obj, boolean modified) voidselectPoints(List<WorldPt> worldPts) voidSets the DataRecord of the MapGlyph's MapIdentifierdouble[][]simplify(double[] xpts, double[] ypts, double range, int startIdx, int endIdx) protected AiShapeArctransformArcLine(Transform txform, AiShapeArc arcLine) protected booleantransformArcShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS) protected AiShapePolygontransformPolygon(Transform txform, AiShapePolygon arcPoly) protected booleantransformPolyShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS) protected WorldLinetransformWorldLine(Transform txform, WorldLine worldLine) protected WorldPttransformWorldPt(Transform txform, WorldPt wpt) Transform WorldPt to display coordinate system.protected WorldRegiontransformWorldRegion(Transform txform, WorldRegion worldRegion) Return a Coordinate transformed copy of the WorldRegionMethods inherited from class hec.map.MapGlyph
addChangeListener, addGlyphSelectionListener, checkXYArraySize, clearSelection, clearSelection, compareTo, containsSelection, drawConformingString, drawConformingString2, drawLine, drawLine, drawLine, drawLine, drawLine2D, drawRegion, drawRegion, findGlyphOfClass, findObject, fireGlyphSelectionChanged, fireStateChanged, getAttributeSet, getBounds, 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, 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.importer.ShapeSource
getNameMethods inherited from interface hec.map.renderer.TracksRepaint
isRepaintNeeded, setRepaintNeeded
-
Field Details
-
DEFAULT_NUM_POINTS
public static final int DEFAULT_NUM_POINTS- See Also:
-
-
Constructor Details
-
AiShapeGlyph
-
-
Method Details
-
close
public void close()Description copied from class:MapGlyphcalled when the Glyph is no longer held by the MapPanel -
init
protected void init()Description copied from class:MapGlyphcalled when the MapGlyph is made active. Any initialization should be performed here. -
getDefaultDataRecord
Description copied from class:MapGlyphGets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecordin classMapGlyph- Returns:
- null unless overridden to return something else
-
getDataRecord
Description copied from class:MapGlyphGets the DataRecord of the MapGlyph's MapIdentifier object- Overrides:
getDataRecordin classMapGlyph- Returns:
- The DataRecord value
-
setDataRecord
Description copied from class:MapGlyphSets the DataRecord of the MapGlyph's MapIdentifier- Overrides:
setDataRecordin classMapGlyph- Parameters:
rec- The new DataRecord value
-
getMapType
public int getMapType() -
getShapeObjects
-
getShapeObjects
-
getShapeObjects
-
getAttributeVector
-
fillMap
public void fillMap(boolean load) Description copied from class:MapGlyphhave the _map load or unload its data. -
getFieldDescriptors
Get list of AiShapeFieldDescriptors- Specified by:
getFieldDescriptorsin interfaceShapeSource- Returns:
-
draw
Description copied from class:MapGlyphdraw this MapGlyph to graphics using the MapScale scl -
modifiedStateChanged
- Specified by:
modifiedStateChangedin interfaceModifiableListener
-
simplify
public double[][] simplify(double[] xpts, double[] ypts, double range, int startIdx, int endIdx) -
selectPoints
- Parameters:
worldPts-
-
clearSelections
public void clearSelections() -
highlightRecords
- Specified by:
highlightRecordsin interfaceShapeSource
-
clearHighlights
public void clearHighlights()- Specified by:
clearHighlightsin interfaceShapeSource
-
addShapeHighlight
-
getShapes
Description copied from interface:ShapeSourceReturns a list of "Import" Shape Objects from this source.- Specified by:
getShapesin interfaceShapeSource- Returns:
-
getCoordinateReferenceSystem
Description copied from interface:ShapeSourceReturns the Well Known Text Representation of the projection.- Specified by:
getCoordinateReferenceSystemin interfaceShapeSource- Returns:
- the WKT or NULL if there is no projection.
-
transformArcShapes
protected boolean transformArcShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS) -
transformArcLine
-
transformWorldLine
-
transformPolyShapes
protected boolean transformPolyShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS) -
transformPolygon
-
transformWorldRegion
Return a Coordinate transformed copy of the WorldRegion -
transformWorldPt
Transform WorldPt to display coordinate system. wpt has the result of the transform.
-