|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.rastermap.RasterMapCatalog
public class RasterMapCatalog
This class maintains a catalog of registered raster map images that can be superimposed over the MapBean. Each image has its RasterMapEntry describing the image.
RasterMapEntry
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
HTTP_RADAR_WEATHER_GOV_CONUS_RADAR_IMG_LATEST_RADARONLY_GIF
The URL where the United States National Weather Service provides radar weather map overlay images, |
java.util.ArrayList<RasterMapEntry> |
imageList
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Method Summary | |
---|---|
int |
add(RasterMapEntry rme)
Add the specified RasterMapEntry to the persisted list of raster map overlays. |
void |
deleteRow(int rowIndex)
Delete an entire RasterMapEntry from the catalog. |
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. |
static RasterMapCatalog |
getInstance()
Get the singleton instance of the RasterMapCatalog. |
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 can be edited. |
static java.util.Date |
loadReloadableWebMap(RasterMapEntry rme,
long now)
Load a fresh raster image and its associated world file from a web source. |
void |
remove(int index)
Remove the indexed record from the persisted RasterMapCatalog. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Store a new value for an editable table cell. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HTTP_RADAR_WEATHER_GOV_CONUS_RADAR_IMG_LATEST_RADARONLY_GIF
public java.util.ArrayList<RasterMapEntry> imageList
Method Detail |
---|
public static RasterMapCatalog getInstance()
public static java.util.Date loadReloadableWebMap(RasterMapEntry rme, long now) throws java.io.IOException
rme
- RasterMapEntry for the web-sourced overlay layernow
- current time in milliseconds since Jan 1970 UTC
java.io.IOException
- if image or world file cannot be downloadedpublic int add(RasterMapEntry rme)
rme
- RasterMapEntry to add
public void remove(int index)
index
- zero-based int index of the record to removepublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queried
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queried
column
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queried
public 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
- value to assign to cellrowIndex
- row of cellcolumnIndex
- column of cellpublic int getColumnCount()
getRowCount()
public int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.
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 queried
public void deleteRow(int rowIndex)
rowIndex
- zero-based row index into the catalog table model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |