|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.geometry.TransformedShape
de.intarsys.tools.geometry.ApplySpaceChangeShape
public class ApplySpaceChangeShape
The transformation is defined by two matrices, each defining a coordinate system. The source transformation is the space the shape is defined in, the target transformation is the space for the resulting shape.
Method Summary | |
---|---|
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". |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public 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.
TransformedShape
public 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 space
public Object clone()
Area
object.
clone
in class TransformedShape
public AffineTransform getSourceTransform()
public AffineTransform getTargetTransform()
public AffineTransform getTransform()
getTransform
in class TransformedShape
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |