|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRectangularShape
Rectangle2D
Rectangle
GridEnvelope2D
GridRange2D
GridEnvelope2D
. Be aware that in the later, high
coordinate values are inclusive rather than exclusive.
@Deprecated public class GridRange2D
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.
GeneralGridRange
,
Serialized Form
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 |
---|
public GridRange2D()
public GridRange2D(Rectangle rectangle)
public GridRange2D(int x, int y, int width, int height)
Method Detail |
---|
public int getLower(int dimension)
getLower
in interface GridRange
public int getUpper(int dimension)
getUpper
in interface GridRange
public int getLength(int dimension)
getUpper(dimension)-getLower(dimension)
.
getLength
in interface GridRange
public GridCoordinates2D getLower()
getLower
in interface GridRange
public GridCoordinates2D getUpper()
getUpper
in interface GridRange
public GridRange2D clone()
clone
in class GridEnvelope2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |