Package de.intarsys.tools.geometry
Class ApplyTransformationShape
- java.lang.Object
-
- de.intarsys.tools.geometry.TransformedShape
-
- de.intarsys.tools.geometry.ApplyTransformationShape
-
- All Implemented Interfaces:
IShapeWrapper,java.awt.Shape,java.lang.Cloneable
public class ApplyTransformationShape extends TransformedShape
The transformation is defined explicitly.
-
-
Field Summary
-
Fields inherited from class de.intarsys.tools.geometry.TransformedShape
IDENTITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplyTransformationShape(ApplyTransformationShape shape)protectedApplyTransformationShape(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Shapeapply()java.lang.Objectclone()Returns an exact copy of thisAreaobject.static TransformedShapecreate(java.awt.Shape shape, java.awt.geom.AffineTransform transform)Create a newShapecreated fromshapeby applyingtransformjava.awt.geom.AffineTransformgetTransform()-
Methods inherited from class de.intarsys.tools.geometry.TransformedShape
contains, contains, contains, contains, getBaseShape, getBounds, getBounds2D, getPathIterator, getPathIterator, getShape, intersects, intersects, invalidate
-
-
-
-
Constructor Detail
-
ApplyTransformationShape
protected ApplyTransformationShape(ApplyTransformationShape shape)
-
ApplyTransformationShape
protected ApplyTransformationShape(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
-
-
Method Detail
-
create
public static TransformedShape create(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
Create a newShapecreated fromshapeby applyingtransform- Parameters:
shape- The wrapped base shapetransform- The coordinate space where "shape" is defined.- Returns:
- The new
TransformedShape
-
apply
protected java.awt.Shape apply()
- Specified by:
applyin classTransformedShape
-
clone
public java.lang.Object clone()
Returns an exact copy of thisAreaobject.- Specified by:
clonein classTransformedShape- Returns:
- Created clone object
-
getTransform
public java.awt.geom.AffineTransform getTransform()
- Specified by:
getTransformin classTransformedShape
-
-