Package org.geotools.renderer.util
Class ExplicitBoundsShape
Object
ExplicitBoundsShape
- All Implemented Interfaces:
Shape
Decorator on top of the
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).- Author:
- fmoura
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double x, double y) boolean
contains
(double x, double y, double w, double h) boolean
boolean
boolean
Returns the explicitly defined bounds for this shape.Returns the explicitly defined bounds for this shape.getPathIterator
(AffineTransform at, double flatness) int
hashCode()
boolean
intersects
(double x, double y, double w, double h) boolean
void
setBounds
(Rectangle2D bounds) Sets the explicitly defined bounds for this shape.
-
Constructor Details
-
ExplicitBoundsShape
The Constructor- Parameters:
shape
- The actual shape on top of which this decorator will stand.
-
-
Method Details
-
setBounds
Sets the explicitly defined bounds for this shape. -
contains
public boolean contains(double x, double y, double w, double h) -
contains
public boolean contains(double x, double y) -
contains
-
contains
-
getBounds
Returns the explicitly defined bounds for this shape. If no bounds were explicitly set, it delegates the call to the actual shape. -
getBounds2D
Returns the explicitly defined bounds for this shape. If no bounds were explicitly set, it delegates the call to the actual shape.- Specified by:
getBounds2D
in interfaceShape
- Returns:
- the Rectangle2D representing the Shape's bounding box.
- See Also:
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersects
in interfaceShape
-
intersects
- Specified by:
intersects
in interfaceShape
-
equals
-
hashCode
public int hashCode()
-