Class ShapeStore

All Implemented Interfaces:
PopupActivationListener, SpatialStore, Serializable, Comparable, EventListener, ListSelectionListener, TableModel
Direct Known Subclasses:
CoverageStore, HexagonStore, ShapeFile, ShapeRamCache

public abstract class ShapeStore extends AttributeStore implements SpatialStore
A prototype for spatial record retrieval
See Also:
Serialized Form
  • Constructor Details

    • ShapeStore

      public ShapeStore()
  • Method Details

    • getExtent2D

      public Extent2D getExtent2D(int id)
      Description copied from interface: SpatialStore
      Get the enclosing rectangle of a feature
      Specified by:
      getExtent2D in interface SpatialStore
      Parameters:
      id - The record of interest
      Returns:
      A rectangle
    • getShape

      public GeoShape getShape(int id)
      Description copied from interface: SpatialStore
      Get the shape object for a individual feature
      Specified by:
      getShape in interface SpatialStore
      Parameters:
      id - The record of interest
      Returns:
      A shape object
    • area

      public double area(int id)
    • getExtent2D

      public Extent2D getExtent2D()
      Return the extent of the shapefile
      Specified by:
      getExtent2D in interface SpatialStore
      Returns:
      A rectangle
    • getProjectionInfo

      public String getProjectionInfo()
      Description copied from interface: SpatialStore
      Obtain projection information.
      Specified by:
      getProjectionInfo in interface SpatialStore
    • records

      public Iterator<Integer> records()
      Return an iterator for the entire set
      Specified by:
      records in interface SpatialStore
    • records

      public Iterator<Integer> records(Extent2D extent)
      Return an iterator for a partial set
      Specified by:
      records in interface SpatialStore
    • records

      public Iterator<Integer> records(double x, double y, double width, double height)
      Description copied from interface: SpatialStore
      Return an Iterator for the records that fall within the selection rectangle
      Specified by:
      records in interface SpatialStore
    • getRecord

      public GeoShape getRecord(double x, double y, double fuzz)
      Find a record by its x,y location
    • selectRecords

      public void selectRecords(double x, double y, double fuzz)
    • identifyRecords

      public void identifyRecords(double x, double y, double fuzz)