| java.awt.geom.Rectangle2D org.geotools.resources.geometry.InfiniteRectangle2D
Field Summary | |
final public static Rectangle2D | INFINITY A singleton instance of
InfiniteRectangle2D . |
Method Summary | |
public void | add(Rectangle2D rect) Do nothing, since we can't extends an infinite rectangle. | public void | add(Point2D point) Do nothing, since we can't extends an infinite rectangle. | public void | add(double x, double y) Do nothing, since we can't extends an infinite rectangle. | public boolean | contains(Point2D point) Returns
true since this rectangle contains all points. | public boolean | contains(Rectangle2D rect) Returns
true since this rectangle contains all points. | public boolean | contains(double x, double y) Returns
true since this rectangle contains all points. | public boolean | contains(double x, double y, double w, double h) Returns
true since this rectangle contains all points. | public Rectangle2D | createIntersection(Rectangle2D rect) Returns a clone of the specified rectangle. | public Rectangle2D | createUnion(Rectangle2D rect) Returns
this , since this rectangle can't be extended. | public Rectangle2D | getBounds2D() Returns
this . | public double | getCenterX() Returns the center, which is NaN since we can't compute a center from infinite bounds. | public double | getCenterY() Returns the center, which is NaN since we can't compute a center from infinite bounds. | public Rectangle2D | getFrame() Returns
this . | public double | getHeight() Returns the height, which is positive infinity. | public double | getMaxX() Returns the maximum value, which is positive infinity. | public double | getMaxY() Returns the maximum value, which is positive infinity. | public double | getMinX() Returns the minimum value, which is negative infinity. | public double | getMinY() Returns the minimum value, which is negative infinity. | public double | getWidth() Returns the width, which is positive infinity. | public double | getX() Returns the minimum value, which is negative infinity. | public double | getY() Returns the minimum value, which is negative infinity. | public boolean | intersects(Rectangle2D rect) Returns
true since this rectangle contains all points. | public boolean | intersects(double x, double y, double w, double h) Returns
true since this rectangle contains all points. | public boolean | intersectsLine(double x, double y, double u, double v) Returns
true since this rectangle contains all points. | public boolean | intersectsLine(Line2D line) Returns
true since this rectangle contains all points. | public boolean | isEmpty() Returns
false since an infinite rectangle is far from empty. | public int | outcode(double x, double y) Returns 0, since the specified point can't be outside this rectangle. | public int | outcode(Point2D point) Returns 0, since the specified point can't be outside this rectangle. | public void | setRect(double x, double y, double w, double h) Always throws an exception, since this rectangle is immutable. |
INFINITY | final public static Rectangle2D INFINITY(Code) | | A singleton instance of
InfiniteRectangle2D .
|
add | public void add(Rectangle2D rect)(Code) | | Do nothing, since we can't extends an infinite rectangle.
|
add | public void add(Point2D point)(Code) | | Do nothing, since we can't extends an infinite rectangle.
|
add | public void add(double x, double y)(Code) | | Do nothing, since we can't extends an infinite rectangle.
|
contains | public boolean contains(Point2D point)(Code) | | Returns
true since this rectangle contains all points.
|
contains | public boolean contains(Rectangle2D rect)(Code) | | Returns
true since this rectangle contains all points.
|
contains | public boolean contains(double x, double y)(Code) | | Returns
true since this rectangle contains all points.
|
contains | public boolean contains(double x, double y, double w, double h)(Code) | | Returns
true since this rectangle contains all points.
|
createUnion | public Rectangle2D createUnion(Rectangle2D rect)(Code) | | Returns
this , since this rectangle can't be extended.
No need to returns a clone, since this rectangle is immutable.
|
getBounds2D | public Rectangle2D getBounds2D()(Code) | | Returns
this .
No need to returns a clone, since this rectangle is immutable.
|
getCenterX | public double getCenterX()(Code) | | Returns the center, which is NaN since we can't compute a center from infinite bounds.
|
getCenterY | public double getCenterY()(Code) | | Returns the center, which is NaN since we can't compute a center from infinite bounds.
|
getFrame | public Rectangle2D getFrame()(Code) | | Returns
this .
No need to returns a clone, since this rectangle is immutable.
|
getHeight | public double getHeight()(Code) | | Returns the height, which is positive infinity.
|
getMaxX | public double getMaxX()(Code) | | Returns the maximum value, which is positive infinity.
|
getMaxY | public double getMaxY()(Code) | | Returns the maximum value, which is positive infinity.
|
getMinX | public double getMinX()(Code) | | Returns the minimum value, which is negative infinity.
|
getMinY | public double getMinY()(Code) | | Returns the minimum value, which is negative infinity.
|
getWidth | public double getWidth()(Code) | | Returns the width, which is positive infinity.
|
getX | public double getX()(Code) | | Returns the minimum value, which is negative infinity.
|
getY | public double getY()(Code) | | Returns the minimum value, which is negative infinity.
|
intersects | public boolean intersects(Rectangle2D rect)(Code) | | Returns
true since this rectangle contains all points.
|
intersects | public boolean intersects(double x, double y, double w, double h)(Code) | | Returns
true since this rectangle contains all points.
|
intersectsLine | public boolean intersectsLine(double x, double y, double u, double v)(Code) | | Returns
true since this rectangle contains all points.
|
intersectsLine | public boolean intersectsLine(Line2D line)(Code) | | Returns
true since this rectangle contains all points.
|
isEmpty | public boolean isEmpty()(Code) | | Returns
false since an infinite rectangle is far from empty.
|
outcode | public int outcode(double x, double y)(Code) | | Returns 0, since the specified point can't be outside this rectangle.
|
outcode | public int outcode(Point2D point)(Code) | | Returns 0, since the specified point can't be outside this rectangle.
|
setRect | public void setRect(double x, double y, double w, double h)(Code) | | Always throws an exception, since this rectangle is immutable.
|
Methods inherited from java.awt.geom.Rectangle2D | public void add(double newx, double newy)(Code)(Java Doc) public void add(Point2D pt)(Code)(Java Doc) public void add(Rectangle2D r)(Code)(Java Doc) public boolean contains(double x, double y)(Code)(Java Doc) public boolean contains(double x, double y, double w, double h)(Code)(Java Doc) abstract public Rectangle2D createIntersection(Rectangle2D r)(Code)(Java Doc) abstract public Rectangle2D createUnion(Rectangle2D r)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Rectangle2D getBounds2D()(Code)(Java Doc) public PathIterator getPathIterator(AffineTransform at)(Code)(Java Doc) public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public static void intersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)(Code)(Java Doc) public boolean intersects(double x, double y, double w, double h)(Code)(Java Doc) public boolean intersectsLine(double x1, double y1, double x2, double y2)(Code)(Java Doc) public boolean intersectsLine(Line2D l)(Code)(Java Doc) abstract public int outcode(double x, double y)(Code)(Java Doc) public int outcode(Point2D p)(Code)(Java Doc) public void setFrame(double x, double y, double w, double h)(Code)(Java Doc) abstract public void setRect(double x, double y, double w, double h)(Code)(Java Doc) public void setRect(Rectangle2D r)(Code)(Java Doc) public static void union(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)(Code)(Java Doc)
|
|
|