|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.image.ImageBase
public abstract class ImageBase
Common methods for implementors of Image.
| Field Summary | |
|---|---|
protected Metadata |
metadata
|
| Constructor Summary | |
|---|---|
ImageBase()
|
|
| Method Summary | |
|---|---|
static Image |
createImage(int width,
int height,
int nBands,
int nBits)
Utility for constructing an uninitialised image of suitable type for the number of bits. |
static Image |
createImage(int width,
int height,
int nBands,
int nBits,
boolean fillWithZeroes,
boolean compatibleWithDisplay)
Utility for constructing an image of suitable type for the number of bits, optionally filled with zeroes. |
Calibration |
getCalibration()
Get a reference to the Calibration object for this image. |
java.lang.String |
getFilePath()
Get the path of the file from which this image was loaded or to which it was last saved. |
static java.awt.GraphicsConfiguration |
getGraphicsConfiguration()
Get a reference to the GraphicsConfiguration object, which is the default one for the display system. |
Metadata |
getMetadata()
Get metadata associated with the image. |
static Image |
recombine(Image... images)
Make a multi-band image from an array of monochrome ones. |
static boolean |
sameBitsAndBands(Image... images)
Check whether all the images have the same bit depth and number of channels. |
static boolean |
sameSizeBitsAndBands(Image... images)
Check whether all the images have the same width, height, bit depth and number of channels. |
void |
setCalibration(Calibration aCalib)
Associate a Calibration object with this image. |
void |
setFilePath(java.lang.String filePath)
Record the path to the file in which the image was last saved. |
void |
setMetadata(Metadata theData)
Associate metadata with the image. |
protected void |
showInfo(Image image)
Display information about the given image in a dialogue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Metadata metadata
| Constructor Detail |
|---|
public ImageBase()
| Method Detail |
|---|
public Calibration getCalibration()
public void setCalibration(Calibration aCalib)
public java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
public static java.awt.GraphicsConfiguration getGraphicsConfiguration()
public Metadata getMetadata()
public void setMetadata(Metadata theData)
public static Image createImage(int width,
int height,
int nBands,
int nBits)
public static Image createImage(int width,
int height,
int nBands,
int nBits,
boolean fillWithZeroes,
boolean compatibleWithDisplay)
public static Image recombine(Image... images)
public static boolean sameBitsAndBands(Image... images)
public static boolean sameSizeBitsAndBands(Image... images)
protected void showInfo(Image image)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||