public class ApplySpaceChangeShape extends TransformedShape
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns an exact copy of this
Area object. |
static TransformedShape |
create(Shape shape,
AffineTransform transform)
Create a new
Shape whose coordinates are specified in the space
defined by "transform". |
static TransformedShape |
create(Shape shape,
AffineTransform sourceTransform,
AffineTransform targetTransform) |
AffineTransform |
getSourceTransform() |
AffineTransform |
getTargetTransform() |
AffineTransform |
getTransform() |
static TransformedShape |
setTransform(Shape shape,
AffineTransform targetTransform)
Create a new
Shape that behaves like the base shape with its
coordinates relative to the new space defined by "newTransform". |
contains, contains, contains, contains, getBaseShape, getBounds, getBounds2D, getPathIterator, getPathIterator, getShape, intersects, intersects, invalidatepublic static TransformedShape create(Shape shape, AffineTransform transform)
Shape whose coordinates are specified in the space
defined by "transform".shape - The wrapped base shapetransform - The coordinate space where "shape" is defined.TransformedShapepublic static TransformedShape create(Shape shape, AffineTransform sourceTransform, AffineTransform targetTransform)
public static TransformedShape setTransform(Shape shape, AffineTransform targetTransform)
Shape that behaves like the base shape with its
coordinates relative to the new space defined by "newTransform".
You can use this to "view" on an already existing shape from another coordinate system.
shape - The base shapetargetTransform - The new coordinate spacepublic Object clone()
Area object.clone in class TransformedShapepublic AffineTransform getSourceTransform()
public AffineTransform getTargetTransform()
public AffineTransform getTransform()
getTransform in class TransformedShapeCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.