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 protected
ApplyTransformationShape(ApplyTransformationShape shape)
protected
ApplyTransformationShape(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.Shape
apply()
java.lang.Object
clone()
Returns an exact copy of thisArea
object.static TransformedShape
create(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
Create a newShape
created fromshape
by applyingtransform
java.awt.geom.AffineTransform
getTransform()
-
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 newShape
created fromshape
by 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:
apply
in classTransformedShape
-
clone
public java.lang.Object clone()
Returns an exact copy of thisArea
object.- Specified by:
clone
in classTransformedShape
- Returns:
- Created clone object
-
getTransform
public java.awt.geom.AffineTransform getTransform()
- Specified by:
getTransform
in classTransformedShape
-
-