public class ExplicitBoundsShape extends Object implements Shape
Shape
. It extends the Shape interface to include a method
'setBounds' for explicitly defining a bounding box (which is not necessarily associated with the
actual shape's bounds).Constructor and Description |
---|
ExplicitBoundsShape(Shape shape)
The Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
boolean |
equals(Object obj) |
Rectangle |
getBounds()
Returns the explicitly defined bounds for this shape.
|
Rectangle2D |
getBounds2D()
Returns the explicitly defined bounds for this shape.
|
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
int |
hashCode() |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
void |
setBounds(Rectangle2D bounds)
Sets the explicitly defined bounds for this shape.
|
public ExplicitBoundsShape(Shape shape)
shape
- The actual shape on top of which this decorator will stand.public void setBounds(Rectangle2D bounds)
public boolean contains(double x, double y, double w, double h)
public boolean contains(Rectangle2D r)
public Rectangle getBounds()
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform at)
getPathIterator
in interface Shape
public boolean intersects(double x, double y, double w, double h)
intersects
in interface Shape
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
Copyright © 1996–2023 Geotools. All rights reserved.