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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static void showLayerSelectorTool(GeographicalMap frame)
frame
- GeographicalMap to controlpublic int getColumnCount()
getRowCount()
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queriedcolumn
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- 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.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- Object value to set into the cellrowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried