Package ca.spatial.mapview
Class ImageTheme
java.lang.Object
javax.swing.table.AbstractTableModel
ca.spatial.mapview.Theme
ca.spatial.mapview.ImageTheme
- All Implemented Interfaces:
Visibility
,EditableTableModel
,Serializable
,TableModel
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a row to the table using default values.void
Add a row to the table.clone()
Return a deep copy of the object as appropriate for each theme typegetColumnClass(int column)
int
getColumnName(int columnIndex)
Return a ThemeEditor component appropriate for the theme type.int
AbstractTableModel and EditableTableModel interfacesGet the selected object symbol for this themegetSymbol(int row, int period)
Get a symbol for a given object id and period.Get a symbol for a specific key.Get a symbol for the key valuegetValueAt(int row, int column)
boolean
Ask if theme makes use of cached spatial queries to speed up operations.boolean
isCellEditable(int rowIndex, int columnIndex)
void
moveRow(int from, int to)
Move the specified row to a new locationvoid
removeRow(int row)
Remove the row specified by the row number.void
Selection contexts can cache results of time consuming selection operations involved in some spatial quary operators.void
setValueAt(Object aValue, int rowIndex, int columnIndex)
toString()
Methods inherited from class ca.spatial.mapview.Theme
getAlpha, getCaption, getChipHeight, getChipWidth, getIsScaled, getMaxScale, getMinScale, getReferenceScale, getSymbolType, getThemeName, isDynamic, setAlpha, setCaption, setChipSize, setIsScaled, setMaxScale, setMinScale, setReferenceScale
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
Constructor Details
-
ImageTheme
-
-
Method Details
-
getRowCount
public int getRowCount()Description copied from class:Theme
AbstractTableModel and EditableTableModel interfaces- Specified by:
getRowCount
in interfaceTableModel
- Specified by:
getRowCount
in classTheme
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
- Specified by:
getColumnCount
in classTheme
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Specified by:
getColumnName
in classTheme
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
- Specified by:
getValueAt
in classTheme
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Specified by:
getColumnClass
in classTheme
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditable
in interfaceTableModel
- Specified by:
isCellEditable
in classTheme
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Specified by:
setValueAt
in classTheme
-
removeRow
public void removeRow(int row)Description copied from interface:EditableTableModel
Remove the row specified by the row number. -
addRow
Description copied from interface:EditableTableModel
Add a row to the table using default values. Optionally provide a reference to the parent window in case a dialog needs to be shown. -
addRow
Description copied from interface:EditableTableModel
Add a row to the table. The number of items in the rowData array must match the number of columns in the table. -
moveRow
public void moveRow(int from, int to)Description copied from interface:EditableTableModel
Move the specified row to a new location -
getSymbol
Description copied from class:Theme
Get a symbol for a specific key. This method only gets the raw symbol type, and is usually called by other methods that will take unclassified values and visibility parameters in to account. -
getSymbol
Description copied from class:Theme
Get a symbol for a given object id and period. This method only gets the raw symbol type, and is usually called by other methods that will take unclassified values and visibility parameters in to account. -
getSymbol
Description copied from class:Theme
Get a symbol for the key value -
getEditor
Description copied from class:Theme
Return a ThemeEditor component appropriate for the theme type. -
getSelectedSymbol
Description copied from class:Theme
Get the selected object symbol for this theme- Specified by:
getSelectedSymbol
in classTheme
-
clone
Description copied from class:Theme
Return a deep copy of the object as appropriate for each theme type -
toString
-
resetSelectionContext
public void resetSelectionContext()Description copied from class:Theme
Selection contexts can cache results of time consuming selection operations involved in some spatial quary operators. This method will release the cached selection values so that the query will be recalculated.- Specified by:
resetSelectionContext
in classTheme
-
hasSelectionContext
public boolean hasSelectionContext()Description copied from class:Theme
Ask if theme makes use of cached spatial queries to speed up operations.- Specified by:
hasSelectionContext
in classTheme
-