org.geotools.coverage.grid
Class GridRange2D

Object
  extended by RectangularShape
      extended by Rectangle2D
          extended by Rectangle
              extended by GridEnvelope2D
                  extended by GridRange2D
All Implemented Interfaces:
Shape, Serializable, Cloneable, GridEnvelope, GridRange

Deprecated. Replaced by GridEnvelope2D. Be aware that in the later, high coordinate values are inclusive rather than exclusive.

@Deprecated
public class GridRange2D
extends GridEnvelope2D
implements GridRange

Defines a range of two-dimensional grid coverage coordinates. This implementation extends Rectangle for interoperability with Java2D. Note that at the opposite of GeneralGridRange, this class is mutable.

Since:
2.5
Author:
Martin Desruisseaux
See Also:
GeneralGridRange, Serialized Form
Module:

Nested Class Summary
 
Nested classes/interfaces inherited from class Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
Field Summary
 
Fields inherited from class Rectangle
height, width, x, y
 
Fields inherited from class Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
GridRange2D()
          Deprecated. Creates an initially empty grid range.
GridRange2D(int x, int y, int width, int height)
          Deprecated. Creates a grid range initialized to the specified rectangle.
GridRange2D(Rectangle rectangle)
          Deprecated. Creates a grid range initialized to the specified rectangle.
 
Method Summary
 GridRange2D clone()
          Deprecated. Returns a clone of this grid range.
 int getLength(int dimension)
          Deprecated. Returns the number of integer grid coordinates along the specified dimension.
 GridCoordinates2D getLower()
          Deprecated. Returns the valid minimum inclusive grid coordinate.
 int getLower(int dimension)
          Deprecated. Returns the valid minimum inclusive grid coordinate along the specified dimension.
 GridCoordinates2D getUpper()
          Deprecated. Returns the valid maximum exclusive grid coordinate.
 int getUpper(int dimension)
          Deprecated. Returns the valid maximum exclusive grid coordinate along the specified dimension.
 
Methods inherited from class GridEnvelope2D
getDimension, getHigh, getHigh, getLow, getLow, getSpan, toString
 
Methods inherited from class Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union
 
Methods inherited from class Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class RectangularShape
contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface GridEnvelope
getDimension, getHigh, getHigh, getLow, getLow, getSpan
 
Methods inherited from interface Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

GridRange2D

public GridRange2D()
Deprecated. 
Creates an initially empty grid range.


GridRange2D

public GridRange2D(Rectangle rectangle)
Deprecated. 
Creates a grid range initialized to the specified rectangle.


GridRange2D

public GridRange2D(int x,
                   int y,
                   int width,
                   int height)
Deprecated. 
Creates a grid range initialized to the specified rectangle.

Method Detail

getLower

public int getLower(int dimension)
Deprecated. 
Returns the valid minimum inclusive grid coordinate along the specified dimension.

Specified by:
getLower in interface GridRange

getUpper

public int getUpper(int dimension)
Deprecated. 
Returns the valid maximum exclusive grid coordinate along the specified dimension.

Specified by:
getUpper in interface GridRange

getLength

public int getLength(int dimension)
Deprecated. 
Returns the number of integer grid coordinates along the specified dimension. This is equals to getUpper(dimension)-getLower(dimension).

Specified by:
getLength in interface GridRange

getLower

public GridCoordinates2D getLower()
Deprecated. 
Returns the valid minimum inclusive grid coordinate.

Specified by:
getLower in interface GridRange

getUpper

public GridCoordinates2D getUpper()
Deprecated. 
Returns the valid maximum exclusive grid coordinate.

Specified by:
getUpper in interface GridRange

clone

public GridRange2D clone()
Deprecated. 
Returns a clone of this grid range.

Overrides:
clone in class GridEnvelope2D
Returns:
A clone of this grid envelope.


Copyright © 1996-2009 Geotools. All Rights Reserved.