| java.lang.Object javax.swing.table.AbstractTableModel org.geotools.gui.swing.image.ImageTableModel
ImageTableModel | public class ImageTableModel extends AbstractTableModel (Code) | | A table model for image sample values (or pixels). This model is serialiable if the
underlying
RenderedImage is serializable.
since: 2.3 version: $Id: ImageTableModel.java 20883 2006-08-07 13:48:09Z jgarnett $ author: Martin Desruisseaux null See Also: ImageSampleValues |
Constructor Summary | |
public | ImageTableModel() Creates a new table model. | public | ImageTableModel(RenderedImage image) Creates a new table model for the specified image. |
ImageTableModel | public ImageTableModel()(Code) | | Creates a new table model.
|
ImageTableModel | public ImageTableModel(RenderedImage image)(Code) | | Creates a new table model for the specified image.
|
findColumn | public int findColumn(String name)(Code) | | Returns a column given its name.
|
getBand | public int getBand()(Code) | | Returns the band to display.
|
getColorAt | public Color getColorAt(int y, int x)(Code) | | Returns the color at the specified row and column.
|
getColumnClass | public Class getColumnClass(int column)(Code) | | Returns the type of sample values regardless of column index.
|
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns in the model, which is
the
.
|
getColumnName | public String getColumnName(int column)(Code) | | Returns the column name. The names are the pixel column number, starting at
the
value.
|
getNumberFormat | public NumberFormat getNumberFormat()(Code) | | Returns the format to use for formatting sample values.
|
getRenderedImage | public RenderedImage getRenderedImage()(Code) | | Returns the image to display, or
null if none.
|
getRowCount | public int getRowCount()(Code) | | Returns the number of rows in the model, which is
the
.
|
getRowName | public String getRowName(int row)(Code) | | Returns the row name. The names are the pixel row number, starting at
the
value.
|
getValueAt | public Object getValueAt(int y, int x)(Code) | | Returns the sample value at the specified row and column.
|
setBand | public void setBand(int band)(Code) | | Set the band to display.
|
setNumberFormat | public void setNumberFormat(NumberFormat format)(Code) | | Sets the format to use for formatting sample values.
|
setRenderedImage | public void setRenderedImage(RenderedImage image)(Code) | | Sets the image to display.
|
|
|