Package ca.spatial.table
Class ShapeRamCache
java.lang.Object
javax.swing.table.AbstractTableModel
ca.spatial.table.AttributeStore
ca.spatial.table.ShapeStore
ca.spatial.table.ShapeRamCache
- All Implemented Interfaces:
PopupActivationListener
,SpatialStore
,Serializable
,Comparable
,EventListener
,ListSelectionListener
,TableModel
- 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 TypeMethodDescriptionboolean
Query if this SpatialStore is capable of building a spatial indexdouble[][]
getCoordinates(int id)
Get a list of raw coordinates for the points in this shape.Return the extent of the shapefilegetExtent2D(int id, int period)
Get the enclosing rectangle of a featureint
Get the total number of periods that this store supportsint
Get the number of rows in this storegetSelection(Extent2D e)
Return a selection bitmapgetShape(int id, int period)
Get the shape object for a individual featureint
getType()
Get the type of this table.getValueAt(int row, int column, int period)
Implementation of data accessorint
getYearForPeriod(int period)
Get the ending year for a given period.boolean
Query if this SpatialStore has a spatial indexvoid
Request that this SpatialStore create a spatial indexMethods inherited from class ca.spatial.table.ShapeStore
area, getExtent2D, getProjectionInfo, getRecord, getShape, identifyRecords, records, records, records, selectRecords
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, getPeriodWidth, getRowNodeRemap, getSelectedRowCount, getSelection, getSelection, getSelection, getShortName, getSnapshot, getSnapshot, getStoreByShortName, getStoreByTitle, getSynchronizer, getTableName, getTableSpec, getTitle, getValueAt, 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
getTitle
-
Constructor Details
-
ShapeRamCache
-
-
Method Details
-
getValueAt
Implementation of data accessor- Specified by:
getValueAt
in classAttributeStore
- Parameters:
row
- The row containing the cellcolumn
- The column containing the cellperiod
- The period of interest- Returns:
- An object containing the cell value.
-
getSelection
Return a selection bitmap- Parameters:
e
- The selection rectangle of interest- Returns:
- A set of selected records
-
getExtent2D
Description copied from class:ShapeStore
Return the extent of the shapefile- Specified by:
getExtent2D
in interfaceSpatialStore
- Overrides:
getExtent2D
in classShapeStore
- Returns:
- A rectangle
-
getRowCount
public int getRowCount()Description copied from class:AttributeStore
Get the number of rows in this store- Specified by:
getRowCount
in interfaceSpatialStore
- Specified by:
getRowCount
in interfaceTableModel
- Specified by:
getRowCount
in classAttributeStore
- Returns:
- the number of rows in this store
-
getPeriodCount
public int getPeriodCount()Description copied from class:AttributeStore
Get the total number of periods that this store supports- Specified by:
getPeriodCount
in classAttributeStore
- Returns:
- The number of periods in this store
-
getYearForPeriod
public int getYearForPeriod(int period)Description copied from class:AttributeStore
Get the ending year for a given period.- Specified by:
getYearForPeriod
in classAttributeStore
- Parameters:
period
- The period of interest- Returns:
- the year for a given period
-
getShape
Description copied from interface:SpatialStore
Get the shape object for a individual feature- Parameters:
id
- The record of interestperiod
- The period of interest- Returns:
- A shape object
-
getCoordinates
public double[][] getCoordinates(int id)Description copied from interface:SpatialStore
Get a list of raw coordinates for the points in this shape.- Parameters:
id
- The row of interest- Returns:
- An array of arrays of coordinate points. Each element in the outer array contains a 'part' of the underlying shape (for example, and island or a multi-part polygon). The inner array index holds the coordinate points of that part.
-
getType
public int getType()Description copied from interface:SpatialStore
Get the type of this table. Types may be one ofSpatialStore.POINT
,SpatialStore.CURVE
,SpatialStore.POLYLINE
,SpatialStore.SURFACE
,SpatialStore.POLYGON
, orSpatialStore.MULTIPOINT
. -
getExtent2D
Description copied from interface:SpatialStore
Get the enclosing rectangle of a feature- Parameters:
id
- The record of interestperiod
- The period of interest- Returns:
- A rectangle
-
hasSpatialIndex
public boolean hasSpatialIndex()Description copied from interface:SpatialStore
Query if this SpatialStore has a spatial index -
canBuildSpatialIndex
public boolean canBuildSpatialIndex()Description copied from interface:SpatialStore
Query if this SpatialStore is capable of building a spatial index -
makeSpatialIndex
public void makeSpatialIndex()Description copied from interface:SpatialStore
Request that this SpatialStore create a spatial index
-