Package ca.spatial.table
Class ShapeStore
java.lang.Object
javax.swing.table.AbstractTableModel
ca.spatial.table.AttributeStore
ca.spatial.table.ShapeStore
- All Implemented Interfaces:
PopupActivationListener
,SpatialStore
,Serializable
,Comparable
,EventListener
,ListSelectionListener
,TableModel
- Direct Known Subclasses:
CoverageStore
,HexagonStore
,ShapeFile
,ShapeRamCache
A prototype for spatial record retrieval
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class ca.spatial.table.AttributeStore
SELECT_ADD, SELECT_FROM, SELECT_NEW
Fields inherited from interface ca.spatial.table.SpatialStore
COLLECTION, CURVE, FLOAT_RASTER, INT_RASTER, MULTIPOINT, NULL, POINT, POLYGON, POLYLINE, SURFACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
area(int id)
Return the extent of the shapefilegetExtent2D(int id)
Get the enclosing rectangle of a featureObtain projection information.getRecord(double x, double y, double fuzz)
Find a record by its x,y locationgetShape(int id)
Get the shape object for a individual featurevoid
identifyRecords(double x, double y, double fuzz)
records()
Return an iterator for the entire setrecords(double x, double y, double width, double height)
Return an Iterator for the records that fall within the selection rectangleReturn an iterator for a partial setvoid
selectRecords(double x, double y, double fuzz)
Methods inherited from class ca.spatial.table.AttributeStore
absoluteFile, absoluteFile, absolutePath, absolutePath, addCellEditors, addMenuItems, addPopupActivationListener, addRelate, addRelate, addTableModelListener, addToGlobalStoreList, allowsEditing, booleanValue, booleanValue, buildIndex, calculate, calculateField, calculateField, canIndex, changeSelection, clearSelection, close, compareTo, decodeCharset, doubleValue, doubleValue, exportCSV, exportCSV, exportCSV, exportCSV, exportCSV, exportCSV, exportDBF, exportDBF, exportDBF, exportDBF, exportDBF, findColumn, findColumn, findSimilarColumnNames, getAttributeFormat, getCacheParent, getCachingLayer, getCachingLayer, getCanonicalName, getColumnClass, getColumnCount, getColumnName, getColumnNames, getContextPeriods, getCwd, getEditMode, getFullColumnName, getListSelectionModel, getMinMax, getMinMax, getMinMax, getMinMax, getMinMax, getOpenStore, getOpenStore, getOpenStore, getOpenStores, getPeriod, getPeriodCount, getPeriodWidth, getRowCount, getRowNodeRemap, getSelectedRowCount, getSelection, getSelection, getSelection, getShortName, getSnapshot, getSnapshot, getStoreByShortName, getStoreByTitle, getSynchronizer, getTableName, getTableSpec, getTitle, getValueAt, getValueAt, getYearForPeriod, hasIndex, identifyRecords, integerValue, integerValue, isCellEditable, isSelectedIndex, isSelectionEmpty, listify, listValue, listValue, lookupRow, makeLu, maybePopup, notifyPopupActivationListeners, openOrReuse, openOrReuse, queryTable, queryTable, quoteIfRequired, relativePath, removeFromGlobalStoreList, removePopupActivationListener, removeTableModelListener, select, select, selectAdd, selectFrom, selectNew, setCwd, setCwd, setEditMode, setListSelectionModel, setPeriod, setRowNodeRemap, setShortName, setTableSpec, setTitle, setValueAt, setValueAt, showCube, showTable, toString, uniqueValues, uniqueValues, uniqueValues, uniqueValues, uniqueValues, uniqueValues, uniqueValues, uniqueValues, valueChanged
Methods inherited from class javax.swing.table.AbstractTableModel
fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.spatial.table.SpatialStore
canBuildSpatialIndex, getCoordinates, getExtent2D, getRowCount, getSelection, getShape, getTitle, getType, hasSpatialIndex, makeSpatialIndex
-
Constructor Details
-
ShapeStore
public ShapeStore()
-
-
Method Details
-
getExtent2D
Description copied from interface:SpatialStore
Get the enclosing rectangle of a feature- Specified by:
getExtent2D
in interfaceSpatialStore
- Parameters:
id
- The record of interest- Returns:
- A rectangle
-
getShape
Description copied from interface:SpatialStore
Get the shape object for a individual feature- Specified by:
getShape
in interfaceSpatialStore
- Parameters:
id
- The record of interest- Returns:
- A shape object
-
area
public double area(int id) -
getExtent2D
Return the extent of the shapefile- Specified by:
getExtent2D
in interfaceSpatialStore
- Returns:
- A rectangle
-
getProjectionInfo
Description copied from interface:SpatialStore
Obtain projection information.- Specified by:
getProjectionInfo
in interfaceSpatialStore
-
records
Return an iterator for the entire set- Specified by:
records
in interfaceSpatialStore
-
records
Return an iterator for a partial set- Specified by:
records
in interfaceSpatialStore
-
records
Description copied from interface:SpatialStore
Return an Iterator for the records that fall within the selection rectangle- Specified by:
records
in interfaceSpatialStore
-
getRecord
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)
-