|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Client.ImageData
public class ImageData
This class wraps several image types.
| Field Summary | |
|---|---|
static int |
BUFFERED
Image is represented as a BufferedImage. |
private java.awt.image.BufferedImage |
bufImage
Image is represented as a BufferedImage. |
private int[] |
components
Is an one-dimensional array with the indexes of the decompressed image components. |
private int |
dataType
Indicates which is the image data type. |
private int[] |
fsiz
Definition in ViewWindowField.fsiz. |
private float[][][] |
imageSamplesFloat
Image is represented as a thre-dimensional array of floats. |
private int |
layers
Definition in ViewWindowField.layers. |
private int |
maxComponents
Is the maximum number of image components |
private int |
maxLayers
|
private int |
maxResolutionLevels
Indicates the maximum resolution level of the image. |
private int[] |
precision
Is the precision, in bits per sample, for each image component. |
private int |
quality
Definition in DataLimitField.quality. |
static int |
RASTER
Image is represented as a Raster image. |
private java.awt.image.Raster |
rasterImage
Image is represented as a Raster. |
private int |
resolutionLevel
Is the resolution level of the decompressed image. |
private int[] |
roff
Definition in ViewWindowField.roff. |
private int[] |
rsiz
Definition in ViewWindowField.rsiz. |
static int |
SAMPLES_FLOAT
The image is represented as a thre-dimensional array of floats. |
static int |
UNDEFINED
Indicates the data type has not defined yet. |
| Constructor Summary | |
|---|---|
ImageData(int dataType)
Constructor. |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
getBufferedImage()
Get the buffered image ( bufImage attribute). |
int[] |
getComponents()
Returns the components attribute. |
int[] |
getFrameSize()
Returns the fsiz attribute. |
int |
getFrameSizeHeight()
Returns the height of the frame size. |
int |
getFrameSizeWidth()
Returns the width of the frame size. |
int |
getLayers()
Gets the layers attribute. |
int |
getMaxComponents()
Returns the maxComponents attribute. |
int |
getMaxLayers()
Gets the maxLayers attribute. |
int |
getMaxResolutionLevels()
Gets the maxResolutionLevels attribute. |
int[] |
getPrecision()
Returns the precision attribute. |
int |
getQuality()
Gets the quality attribute. |
java.awt.image.Raster |
getRasterImage()
Get the rasterimage ( rasterImage attribute). |
int[] |
getRegionOffset()
Gets the roff attribute. |
int[] |
getRegionSize()
Gets the rsiz attribute. |
int |
getResolutionLevel()
Returns the resolutionLevel attribute. |
float[][][] |
getSamplesFloat()
Get the image samples float ( imageSamplesFloat attribute). |
int |
getType()
Returns the type of the image. |
void |
list(java.io.PrintStream out)
Prints this Image data fields out to the specified output stream. |
void |
setComponents(int[] components)
Sets the components attribute. |
void |
setData(java.awt.image.BufferedImage bufImage)
Sets the bufImage attribute. |
void |
setData(float[][][] imageSamples)
Sets the imageSamplesFloat attribute. |
void |
setData(java.awt.image.Raster rasterImage)
Sets the rasterImage attribute. |
void |
setFrameSize(int[] fsiz)
Sets the fsiz attribute. |
void |
setFrameSize(int width,
int height)
Sets the fsiz atribute. |
void |
setLayers(int layers)
Sets the layers attribute. |
void |
setMaxComponents(int maxComponents)
Sets the maxComponents attribute. |
void |
setMaxLayers(int maxLayers)
Sets the maxLayers attribute. |
void |
setMaxResolutionLevel(int maxResolutionLevels)
Sets the maxResolutionLevels attribute. |
void |
setPrecision(int[] precision)
Sets the precision attribute. |
void |
setQuality(int quality)
Sets the quality attribute. |
void |
setRegionOffset(int[] roff)
Sets the roff parameter. |
void |
setRegionOffset(int x,
int y)
Sets the top-left coordinates of the region. |
void |
setRegionSize(int[] rsiz)
Sets the rsiz attribute. |
void |
setRegionSize(int width,
int height)
Sets the with and height of the region. |
void |
setResolutionLevel(int resolutionLevel)
Sets the resolutionLevel attribute. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int dataType
UNDEFINED
SAMPLES_FLOAT
BUFFERED
RASTER
public static final int UNDEFINED
public static final int SAMPLES_FLOAT
imageSamplesFloat.
public static final int BUFFERED
BufferedImage. See
bufImage.
public static final int RASTER
Raster image. See
rasterImage.
private float[][][] imageSamplesFloat
private java.awt.image.BufferedImage bufImage
BufferedImage. See
BufferedImage.
private java.awt.image.Raster rasterImage
Raster. See
Raster.
private int maxComponents
private int[] components
private int[] fsiz
ViewWindowField.fsiz.
private int[] roff
ViewWindowField.roff.
private int[] rsiz
ViewWindowField.rsiz.
private int maxResolutionLevels
private int resolutionLevel
private int maxLayers
private int layers
ViewWindowField.layers.
private int quality
DataLimitField.quality.
private int[] precision
| Constructor Detail |
|---|
public ImageData(int dataType)
dataType - definition in dataType.| Method Detail |
|---|
public int getType()
dataType attribute.
public void setMaxComponents(int maxComponents)
maxComponents attribute.
maxComponents - definition in maxComponents.public int getMaxComponents()
maxComponents attribute.
maxComponents.public void setComponents(int[] components)
components attribute.
components - definition in components.public int[] getComponents()
components attribute.
components.
public void setFrameSize(int width,
int height)
fsiz atribute.
width - is the width of the frame size.height - is the height of the frame size.public void setFrameSize(int[] fsiz)
fsiz attribute.
fsiz - definition in fsiz.public int getFrameSizeWidth()
public int getFrameSizeHeight()
public int[] getFrameSize()
fsiz attribute.
fsiz.
public void setRegionOffset(int x,
int y)
roff
attribute.
x - left coordinate.y - top coordinate.public void setRegionOffset(int[] roff)
roff parameter.
roff - definition in roffpublic int[] getRegionOffset()
roff attribute.
roff.
public void setRegionSize(int width,
int height)
rsiz.
width - width of the region.height - height of the region.public void setRegionSize(int[] rsiz)
rsiz attribute.
rsiz - definition in rsiz.public int[] getRegionSize()
rsiz attribute.
rsiz.public void setMaxResolutionLevel(int maxResolutionLevels)
maxResolutionLevels attribute.
maxResolutionLevels - definition in maxResolutionLevels.public int getMaxResolutionLevels()
maxResolutionLevels attribute.
maxResolutionLevelspublic void setResolutionLevel(int resolutionLevel)
resolutionLevel attribute.
resolutionLevel - definition in resolutionLevel.public int getResolutionLevel()
resolutionLevel attribute.
resolutionLevel.public void setMaxLayers(int maxLayers)
maxLayers attribute.
maxLayers - definition in maxLayers.public int getMaxLayers()
maxLayers attribute.
maxLayers.public void setLayers(int layers)
layers attribute.
layers - definition in layers.public int getLayers()
layers attribute.
layers attribute.public void setQuality(int quality)
quality attribute.
quality - definition in quality.public int getQuality()
quality attribute.
quality attribute.public void setPrecision(int[] precision)
precision attribute.
precision - definition in precision.public int[] getPrecision()
precision attribute.
precision attribute.public void setData(float[][][] imageSamples)
imageSamplesFloat attribute.
imageSamples - definition in imageSamplesFloat.public void setData(java.awt.image.BufferedImage bufImage)
bufImage attribute.
bufImage - definition in bufImage.public void setData(java.awt.image.Raster rasterImage)
rasterImage attribute.
rasterImage - definition in rasterImage.
public float[][][] getSamplesFloat()
throws java.lang.IllegalAccessException
imageSamplesFloat attribute).
java.lang.IllegalAccessException - if the method is called but the data type
is not a image of sample floats. See getType()
method.
public java.awt.image.BufferedImage getBufferedImage()
throws java.lang.IllegalAccessException
bufImage attribute).
java.lang.IllegalAccessException - if the method is called but the data type
is not a buffered image. See getType() method.
public java.awt.image.Raster getRasterImage()
throws java.lang.IllegalAccessException
rasterImage attribute).
java.lang.IllegalAccessException - if the method is called but the data type
is not a raster image. See getType() method.public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||