Package de.intarsys.tools.geometry
Class TransformedShape
java.lang.Object
de.intarsys.tools.geometry.TransformedShape
- All Implemented Interfaces:
IShapeWrapper
,Shape
,Cloneable
- Direct Known Subclasses:
ApplySpaceChangeShape
,ApplyTransformationShape
A shape that can be transformed with lazy access to the transformed shape.
baseShape -> transform -> shape
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TransformedShape
(TransformedShape shape) protected
TransformedShape
(Shape shape) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Shape
apply()
abstract Object
clone()
boolean
contains
(double x, double y) boolean
contains
(double x, double y, double w, double h) boolean
boolean
getPathIterator
(AffineTransform at, double flatness) getShape()
abstract AffineTransform
boolean
intersects
(double x, double y, double w, double h) boolean
void
-
Field Details
-
IDENTITY
-
-
Constructor Details
-
TransformedShape
-
TransformedShape
-
-
Method Details
-
apply
-
clone
-
contains
public boolean contains(double x, double y) -
contains
public boolean contains(double x, double y, double w, double h) -
contains
-
contains
-
getBaseShape
- Specified by:
getBaseShape
in interfaceIShapeWrapper
-
getBounds
-
getBounds2D
- Specified by:
getBounds2D
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
getPathIterator
- Specified by:
getPathIterator
in interfaceShape
-
getShape
-
getTransform
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersects
in interfaceShape
-
intersects
- Specified by:
intersects
in interfaceShape
-
invalidate
public void invalidate()
-