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.
Method Summary |
protected java.awt.Shape |
apply()
|
java.lang.Object |
clone()
Returns an exact copy of this Area object. |
static TransformedShape |
create(java.awt.Shape shape,
java.awt.geom.AffineTransform transform)
Create a new Shape created from shape by applying
transform |
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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplyTransformationShape
protected ApplyTransformationShape(ApplyTransformationShape shape)
ApplyTransformationShape
protected ApplyTransformationShape(java.awt.Shape shape,
java.awt.geom.AffineTransform transform)
create
public static TransformedShape create(java.awt.Shape shape,
java.awt.geom.AffineTransform transform)
- Create a new
Shape
created from shape
by applying
transform
- 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 class TransformedShape
clone
public java.lang.Object clone()
- Returns an exact copy of this
Area
object.
- Specified by:
clone
in class TransformedShape
- Returns:
- Created clone object
getTransform
public java.awt.geom.AffineTransform getTransform()
- Specified by:
getTransform
in class TransformedShape