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
  • Field Details

  • Constructor Details

  • Method Details

    • close

      public void close()
      Description copied from class: MapGlyph
      called when the Glyph is no longer held by the MapPanel
      Overrides:
      close in class MapGlyph
    • init

      protected void init()
      Description copied from class: MapGlyph
      called when the MapGlyph is made active. Any initialization should be performed here.
      Overrides:
      init in class MapGlyph
    • getDefaultDataRecord

      public GlyphDataRecord getDefaultDataRecord()
      Description copied from class: MapGlyph
      Gets the DefaultDataRecord of the MapGlyph object

      Overrides:
      getDefaultDataRecord in class MapGlyph
      Returns:
      null unless overridden to return something else
    • getDataRecord

      public GlyphDataRecord getDataRecord()
      Description copied from class: MapGlyph
      Gets the DataRecord of the MapGlyph's MapIdentifier object

      Overrides:
      getDataRecord in class MapGlyph
      Returns:
      The DataRecord value
    • setDataRecord

      public void setDataRecord(GlyphDataRecord rec)
      Description copied from class: MapGlyph
      Sets the DataRecord of the MapGlyph's MapIdentifier

      Overrides:
      setDataRecord in class MapGlyph
      Parameters:
      rec - The new DataRecord value
    • getMapType

      public int getMapType()
    • getShapeObjects

      public List getShapeObjects(int x, int y)
    • getShapeObjects

      public List getShapeObjects(double containmentBuffer, WorldPt pt)
    • getShapeObjects

      public List getShapeObjects()
    • getAttributeVector

      public Vector getAttributeVector()
    • fillMap

      public void fillMap(boolean load)
      Description copied from class: MapGlyph
      have the _map load or unload its data.

      Overrides:
      fillMap in class MapGlyph
      Parameters:
      load - true if _map is load it's data
    • getFieldDescriptors

      public Vector getFieldDescriptors()
      Get list of AiShapeFieldDescriptors
      Specified by:
      getFieldDescriptors in interface ShapeSource
      Returns:
    • draw

      public void draw(Graphics g, MapScale scl)
      Description copied from class: MapGlyph
      draw this MapGlyph to graphics using the MapScale scl

      Specified by:
      draw in class MapGlyph
      Parameters:
      g - the Graphics to draw to
      scl - The current MapScale
    • modifiedStateChanged

      public void modifiedStateChanged(Modifiable obj, boolean modified)
      Specified by:
      modifiedStateChanged in interface ModifiableListener
    • simplify

      public double[][] simplify(double[] xpts, double[] ypts, double range, int startIdx, int endIdx)
    • selectPoints

      public void selectPoints(List<WorldPt> worldPts)
      Parameters:
      worldPts -
    • clearSelections

      public void clearSelections()
    • highlightRecords

      public void highlightRecords(List shapes, int centerPointGraphic)
      Specified by:
      highlightRecords in interface ShapeSource
    • clearHighlights

      public void clearHighlights()
      Specified by:
      clearHighlights in interface ShapeSource
    • addShapeHighlight

      public void addShapeHighlight(ShapeHighlight sh)
    • getShapes

      public List getShapes()
      Description copied from interface: ShapeSource
      Returns a list of "Import" Shape Objects from this source.
      Specified by:
      getShapes in interface ShapeSource
      Returns:
    • getCoordinateReferenceSystem

      public CoordinateReferenceSystem getCoordinateReferenceSystem()
      Description copied from interface: ShapeSource
      Returns the Well Known Text Representation of the projection.
      Specified by:
      getCoordinateReferenceSystem in interface ShapeSource
      Returns:
      the WKT or NULL if there is no projection.
    • transformArcShapes

      protected boolean transformArcShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS)
    • transformArcLine

      protected AiShapeArc transformArcLine(Transform txform, AiShapeArc arcLine)
    • transformWorldLine

      protected WorldLine transformWorldLine(Transform txform, WorldLine worldLine)
    • transformPolyShapes

      protected boolean transformPolyShapes(CoordinateReferenceSystem dataCRS, CoordinateReferenceSystem toCRS)
    • transformPolygon

      protected AiShapePolygon transformPolygon(Transform txform, AiShapePolygon arcPoly)
    • transformWorldRegion

      protected WorldRegion transformWorldRegion(Transform txform, WorldRegion worldRegion)
      Return a Coordinate transformed copy of the WorldRegion
    • transformWorldPt

      protected WorldPt transformWorldPt(Transform txform, WorldPt wpt)
      Transform WorldPt to display coordinate system. wpt has the result of the transform.