de.intarsys.tools.geometry
Class ApplyTransformationShape

java.lang.Object
  extended by de.intarsys.tools.geometry.TransformedShape
      extended by 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
protected ApplyTransformationShape(ApplyTransformationShape shape)
           
protected ApplyTransformationShape(java.awt.Shape shape, java.awt.geom.AffineTransform transform)
           
 
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
 

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 new Shape created from shape by applying transform

Parameters:
shape - The wrapped base shape
transform - 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