|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.geotools.gui.swing.table.ImageTableModel
A table model for image sample values (or pixels). This model is serialiable if the
RenderedImage
is serializable. This model is serializable if the underlying
image is serializable too.
ImageSampleValues
,
Serialized FormNested Class Summary | |
class |
ImageTableModel.RowHeaders
A table model for row headers. |
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ImageTableModel()
Creates a new table model. |
|
ImageTableModel(java.awt.image.RenderedImage image)
Creates a new table model for the specified image. |
Method Summary | |
int |
findColumn(java.lang.String name)
Returns a column given its name. |
int |
getBand()
Returns the band to display. |
java.awt.Color |
getColorAt(int y,
int x)
Returns the color at the specified row and column. |
java.lang.Class |
getColumnClass(int column)
Returns the type of sample values regardless of column index. |
int |
getColumnCount()
Returns the number of columns in the model, which is the image width. |
java.lang.String |
getColumnName(int column)
Returns the column name. |
java.text.NumberFormat |
getNumberFormat()
Returns the format to use for formatting sample values. |
java.awt.image.RenderedImage |
getRenderedImage()
Returns the image to display, or if none. |
int |
getRowCount()
Returns the number of rows in the model, which is the image height. |
java.lang.String |
getRowName(int row)
Returns the row name. |
java.lang.Object |
getValueAt(int y,
int x)
Returns the sample value at the specified row and column. |
void |
setBand(int band)
Set the band to display. |
void |
setNumberFormat(java.text.NumberFormat format)
Sets the format to use for formatting sample values. |
void |
setRenderedImage(java.awt.image.RenderedImage image)
Sets the image to display. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageTableModel()
public ImageTableModel(java.awt.image.RenderedImage image)
Method Detail |
public java.awt.image.RenderedImage getRenderedImage()
public void setRenderedImage(java.awt.image.RenderedImage image)
public int getBand()
public void setBand(int band)
public java.text.NumberFormat getNumberFormat()
public void setNumberFormat(java.text.NumberFormat format)
public int getRowCount()
public int getColumnCount()
public java.lang.String getRowName(int row)
public java.lang.String getColumnName(int column)
public int findColumn(java.lang.String name)
public java.lang.Class getColumnClass(int column)
public java.lang.Object getValueAt(int y, int x)
public java.awt.Color getColorAt(int y, int x)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |