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
ConstructorsModifierConstructorDescriptionprotectedTransformedShape(TransformedShape shape) protectedTransformedShape(Shape shape) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Shapeapply()abstract Objectclone()booleancontains(double x, double y) booleancontains(double x, double y, double w, double h) booleanbooleangetPathIterator(AffineTransform at, double flatness) getShape()abstract AffineTransformbooleanintersects(double x, double y, double w, double h) booleanvoid
-
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:
getBaseShapein interfaceIShapeWrapper
-
getBounds
-
getBounds2D
- Specified by:
getBounds2Din interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
getShape
-
getTransform
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersectsin interfaceShape
-
intersects
- Specified by:
intersectsin interfaceShape
-
invalidate
public void invalidate()
-