|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractTableModel
ImageTableModel
public class ImageTableModel
A table model for image sample values (or pixels). This model is serializable if the
underlying RenderedImage is serializable.
ImageSampleValues,
Serialized Form
| display/geotk-widgets-swing (download) | View source code for this class |
null at this time and send a "data changed" event later when the
tile is finally available.| Field Summary |
|---|
| Fields inherited from class AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ImageTableModel()
Creates a new table model with no image. |
|
ImageTableModel(RenderedImage image)
Creates a new table model for the specified image. |
|
| Method Summary | |
|---|---|
int |
findColumn(String name)
Returns a column index given its name. |
int |
getBand()
Returns the band to display. |
Color |
getColorAt(int y,
int x)
Returns the color at the specified row and column. |
Class<? extends Number> |
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. |
String |
getColumnName(int column)
Returns the column name. |
NumberFormat |
getNumberFormat()
Returns the format to use for formatting sample values. |
RenderedImage |
getRenderedImage()
Returns the image to display, or null if none. |
int |
getRowCount()
Returns the number of rows in the model, which is the image height. |
String |
getRowName(int row)
Returns the row name. |
Number |
getValueAt(int y,
int x)
Returns the sample value at the specified row and column. |
void |
setBand(int band)
Sets the band to display. |
void |
setNumberFormat(NumberFormat format)
Sets the format to use for formatting sample values. |
void |
setRenderedImage(RenderedImage image)
Sets the image to display. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageTableModel()
public ImageTableModel(RenderedImage image)
image - The image for which to create a table model, or null if none.| Method Detail |
|---|
public void setRenderedImage(RenderedImage image)
image - The new image for this table model, or null if none.public RenderedImage getRenderedImage()
null if none.
null if none.public int getBand()
public void setBand(int band)
band - The band where this table model should take its values.public NumberFormat getNumberFormat()
public void setNumberFormat(NumberFormat format)
format - The new format for formatting cell values.public int getRowCount()
public int getColumnCount()
public String getRowName(int row)
throws IndexOutOfBoundsException
row - The row for which to get the name.
IndexOutOfBoundsException - If the given index is not a positive number smaller
than getRowCount().
public String getColumnName(int column)
throws IndexOutOfBoundsException
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - The column for which to get the name.
IndexOutOfBoundsException - If the given index is not a positive number smaller
than getColumnCount().public int findColumn(String name)
findColumn in class AbstractTableModelname - The column name.
public Class<? extends Number> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - The index for which to get the sample value type.
public Number getValueAt(int y,
int x)
y - The row index.x - The column index.
public Color getColorAt(int y,
int x)
y - The row index.x - The column index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||