public class ApplySpaceChangeShape extends TransformedShape
IDENTITY
Modifier | Constructor and Description |
---|---|
protected |
ApplySpaceChangeShape(ApplySpaceChangeShape shape) |
protected |
ApplySpaceChangeShape(java.awt.Shape shape,
java.awt.geom.AffineTransform sourceTransform,
java.awt.geom.AffineTransform targetTransform) |
Modifier and Type | Method and Description |
---|---|
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 whose coordinates are specified in the space
defined by "transform". |
static TransformedShape |
create(java.awt.Shape shape,
java.awt.geom.AffineTransform sourceTransform,
java.awt.geom.AffineTransform targetTransform) |
java.awt.geom.AffineTransform |
getSourceTransform() |
java.awt.geom.AffineTransform |
getTargetTransform() |
java.awt.geom.AffineTransform |
getTransform() |
static TransformedShape |
setTransform(java.awt.Shape shape,
java.awt.geom.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, invalidate
protected ApplySpaceChangeShape(ApplySpaceChangeShape shape)
protected ApplySpaceChangeShape(java.awt.Shape shape, java.awt.geom.AffineTransform sourceTransform, java.awt.geom.AffineTransform targetTransform)
public static TransformedShape create(java.awt.Shape shape, java.awt.geom.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.TransformedShape
public static TransformedShape create(java.awt.Shape shape, java.awt.geom.AffineTransform sourceTransform, java.awt.geom.AffineTransform targetTransform)
public static TransformedShape setTransform(java.awt.Shape shape, java.awt.geom.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 spaceprotected java.awt.Shape apply()
apply
in class TransformedShape
public java.lang.Object clone()
Area
object.clone
in class TransformedShape
public java.awt.geom.AffineTransform getSourceTransform()
public java.awt.geom.AffineTransform getTargetTransform()
public java.awt.geom.AffineTransform getTransform()
getTransform
in class TransformedShape