|
||||||||||
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 serialiable if the
underlying RenderedImage
is serializable.
ImageSampleValues
,
Serialized Form
Nested Class Summary | |
---|---|
class |
ImageTableModel.RowHeaders
A table model for row headers. |
Field Summary |
---|
Fields inherited from class AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ImageTableModel()
Creates a new table model. |
|
ImageTableModel(RenderedImage image)
Creates a new table model for the specified image. |
Method Summary | |
---|---|
int |
findColumn(String name)
Returns a column 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 |
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. |
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(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)
Method Detail |
---|
public RenderedImage getRenderedImage()
null
if none.
public void setRenderedImage(RenderedImage image)
public int getBand()
public void setBand(int band)
public NumberFormat getNumberFormat()
public void setNumberFormat(NumberFormat format)
public int getRowCount()
public int getColumnCount()
public String getRowName(int row)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int findColumn(String name)
findColumn
in class AbstractTableModel
public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int y, int x)
public Color getColorAt(int y, int x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |