|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
java.awt.Dimension
org.geotools.image.ImageDimension
public class ImageDimension
An image dimension, including the number of bands.
Field Summary | |
---|---|
int |
numBands
The number of bands in the image or raster. |
Fields inherited from class java.awt.Dimension |
---|
height, width |
Constructor Summary | |
---|---|
ImageDimension(java.awt.image.Raster raster)
Creates a new dimension initialized to the dimension of the given raster. |
|
ImageDimension(java.awt.image.RenderedImage image)
Creates a new dimension initialized to the dimension of the given image. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Checks whether two dimension objects have equal values. |
long |
getMemoryUsage()
Returns the number of bytes required in order to memorize all sample values. |
long |
getNumSampleValues()
Returns the number of sample values. |
int |
hashCode()
Returns the hash code for this dimension. |
java.lang.String |
toString()
Returns a string representation of this dimension. |
Methods inherited from class java.awt.Dimension |
---|
getHeight, getSize, getWidth, setSize, setSize, setSize |
Methods inherited from class java.awt.geom.Dimension2D |
---|
clone, setSize |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int numBands
Constructor Detail |
---|
public ImageDimension(java.awt.image.RenderedImage image)
public ImageDimension(java.awt.image.Raster raster)
Method Detail |
---|
public long getNumSampleValues()
width
, height
and numBands
.
public long getMemoryUsage()
public boolean equals(java.lang.Object object)
equals
in class java.awt.Dimension
public int hashCode()
hashCode
in class java.awt.Dimension
public java.lang.String toString()
toString
in class java.awt.Dimension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |