public class LayerSelectorTool
extends javax.swing.table.AbstractTableModel
The information for OpenStreetMap Ways is displayed as a table with the following columns:
For OpenStreetMap Nodes (also called Points Of Interest or POI), whether any given type of POI is plotted is individually selectable, or in categories of types.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Indicate which columns of the table are editable.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Set the value for the specified cell.
|
static void |
showLayerSelectorTool(GeographicalMap frame)
Display a LayerSelectorTool in a JDialog for the specified GeographicalMap frame.
|
static void |
showLayerSelectorTool(javax.swing.JFrame frame,
GeoMapGuiIfc2 geoMapGuiIfc2)
Display a LayerSelectorTool in a JDialog for the specified GeographicalMap frame.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic static void showLayerSelectorTool(GeographicalMap frame)
frame - GeographicalMap to controlpublic static void showLayerSelectorTool(javax.swing.JFrame frame,
GeoMapGuiIfc2 geoMapGuiIfc2)
frame - JFrame containing the map to controlgeoMapGuiIfc2 - GeoMapGuiIfc2 callback to get access to the map's OSMLayerpublic int getColumnCount()
getRowCount()public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - int rowIndex of cell to testcolumnIndex - int columnIndex of cell to testpublic int getRowCount()
getColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelaValue - Object value to set into the cellrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried