Package org.esa.snap.ui.product
Class AbstractPlacemarkTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- org.esa.snap.ui.product.AbstractPlacemarkTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
GcpTableModel
,PinTableModel
public abstract class AbstractPlacemarkTableModel extends DefaultTableModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPlacemarkTableModel(PlacemarkDescriptor placemarkDescriptor, Product product, Band[] selectedBands, TiePointGrid[] selectedGrids)
-
Method Summary
-
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
AbstractPlacemarkTableModel
protected AbstractPlacemarkTableModel(PlacemarkDescriptor placemarkDescriptor, Product product, Band[] selectedBands, TiePointGrid[] selectedGrids)
-
-
Method Detail
-
getPlacemarks
public Placemark[] getPlacemarks()
-
getPlacemarkAt
public Placemark getPlacemarkAt(int modelRow)
-
getPlacemarkDescriptor
public PlacemarkDescriptor getPlacemarkDescriptor()
-
getProduct
public Product getProduct()
-
setProduct
public void setProduct(Product product)
-
getSelectedBands
public Band[] getSelectedBands()
-
setSelectedBands
public void setSelectedBands(Band[] selectedBands)
-
getSelectedGrids
public TiePointGrid[] getSelectedGrids()
-
setSelectedGrids
public void setSelectedGrids(TiePointGrid[] selectedGrids)
-
addPlacemark
public boolean addPlacemark(Placemark placemark)
-
removePlacemark
public boolean removePlacemark(Placemark placemark)
-
removePlacemarkAt
public void removePlacemarkAt(int index)
-
getStandardColumnNames
public abstract String[] getStandardColumnNames()
-
getAdditionalColumnNames
public String[] getAdditionalColumnNames()
-
isCellEditable
public abstract boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classDefaultTableModel
-
getStandardColumnValueAt
protected abstract Object getStandardColumnValueAt(int rowIndex, int columnIndex)
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceTableModel
- Overrides:
getRowCount
in classDefaultTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
- Overrides:
getColumnCount
in classDefaultTableModel
-
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classDefaultTableModel
-
getColumnIndex
public int getColumnIndex(String columnName)
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classDefaultTableModel
-
setValueAt
public void setValueAt(Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classDefaultTableModel
-
dispose
public void dispose()
-
-