|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gc.GridRange
GeneralGridRange
.
Defines a range of grid coverage coordinates.
GC_GridRange
,
Serialized FormConstructor Summary | |
GridRange(int[] lower,
int[] upper)
Deprecated. Construct a new grid range. |
|
GridRange(int lower,
int upper)
Deprecated. Construct one-dimensional grid range. |
|
GridRange(java.awt.image.Raster raster)
Deprecated. Construct two-dimensional range defined by a Raster . |
|
GridRange(java.awt.Rectangle rect)
Deprecated. Construct two-dimensional range defined by a Rectangle . |
|
GridRange(java.awt.image.RenderedImage image)
Deprecated. Construct two-dimensional range defined by a RenderedImage . |
Method Summary | |
boolean |
equals(java.lang.Object object)
Deprecated. Compares the specified object with this grid range for equality. |
int |
getDimension()
Deprecated. Returns the number of dimensions. |
int |
getLength(int dimension)
Deprecated. Returns the number of integer grid coordinates along the specified dimension. |
int |
getLower(int dimension)
Deprecated. Returns the valid minimum inclusive grid coordinate along the specified dimension. |
int[] |
getLowers()
Deprecated. Returns the valid minimum inclusive grid coordinates along all dimensions. |
GridRange |
getSubGridRange(int lower,
int upper)
Deprecated. Returns a new grid range that encompass only some dimensions of this grid range. |
int |
getUpper(int dimension)
Deprecated. Returns the valid maximum exclusive grid coordinate along the specified dimension. |
int[] |
getUppers()
Deprecated. Returns the valid maximum exclusive grid coordinates along all dimensions. |
int |
hashCode()
Deprecated. Returns a hash value for this grid range. |
java.awt.Rectangle |
toRectangle()
Deprecated. Returns a Rectangle with the same bounds as this GridRange .
|
java.lang.String |
toString()
Deprecated. Returns a string repr?sentation of this grid range. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GridRange(int lower, int upper)
lower
- The minimal inclusive value.upper
- The maximal exclusive value.public GridRange(int[] lower, int[] upper)
lower
- The valid minimum inclusive grid coordinate.
The array contains a minimum value for each
dimension of the grid coverage. The lowest
valid grid coordinate is zero.upper
- The valid maximum exclusive grid coordinate.
The array contains a maximum value for each
dimension of the grid coverage.getLowers()
,
getUppers()
public GridRange(java.awt.Rectangle rect)
Rectangle
.
public GridRange(java.awt.image.Raster raster)
Raster
.
public GridRange(java.awt.image.RenderedImage image)
RenderedImage
.
Method Detail |
public int getDimension()
getDimension
in interface Dimensioned
public int getLower(int dimension)
GC_GridRange.getLo()
,
getLowers()
public int getUpper(int dimension)
GC_GridRange.getHi()
,
getUppers()
public int getLength(int dimension)
getUpper(dimension)-getLower(dimension)
.
public int[] getLowers()
public int[] getUppers()
public GridRange getSubGridRange(int lower, int upper)
lower
and extending to dimension upper-1
.
Thus the dimension of the subgrid range is upper-lower
.
lower
- The first dimension to copy, inclusive.upper
- The last dimension to copy, exclusive.
java.lang.IndexOutOfBoundsException
- if an index is out of bounds.public java.awt.Rectangle toRectangle() throws java.lang.IllegalStateException
Rectangle
with the same bounds as this GridRange
.
This is a convenience method for interoperability with Java2D.
java.lang.IllegalStateException
- if this grid range is not two-dimensional.public int hashCode()
public boolean equals(java.lang.Object object)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |