|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Transforms two-dimensional coordinate points. CoordinateTransformation.getMathTransform()
may returns instance of this interface when source and destination coordinate systems are both two
dimensional. MathTransform2D
extends MathTransform
by adding some methods
for easier interoperability with Java2D.
If the transformation is affine, then MathTransform
shall be an immutable instance of
AffineTransform
.
Method Summary | |
java.awt.Shape |
createTransformedShape(java.awt.Shape shape)
Transform the specified shape. |
Matrix |
derivative(java.awt.geom.Point2D point)
Gets the derivative of this transform at a point. |
java.awt.geom.Point2D |
transform(java.awt.geom.Point2D ptSrc,
java.awt.geom.Point2D ptDst)
Transforms the specified ptSrc and stores the result in ptDst .
|
Methods inherited from interface org.deegree_impl.model.ct.MathTransform |
derivative, getDimSource, getDimTarget, inverse, isIdentity, transform, transform, transform |
Method Detail |
public java.awt.geom.Point2D transform(java.awt.geom.Point2D ptSrc, java.awt.geom.Point2D ptDst) throws TransformException
ptSrc
and stores the result in ptDst
.
If ptDst
is null
, a new Point2D
object is allocated
and then the result of the transformation is stored in this object. In either case,
ptDst
, which contains the transformed point, is returned for convenience.
If ptSrc
and ptDst
are the same object, the input point is
correctly overwritten with the transformed point.
ptSrc
- the specified coordinate point to be transformed.ptDst
- the specified coordinate point that stores the
result of transforming ptSrc
, or
null
.
ptSrc
and stroring the result in ptDst
.
TransformException
- if the point can't be transformed.public java.awt.Shape createTransformedShape(java.awt.Shape shape) throws TransformException
shape
- Shape to transform.
shape
if
this transform is the identity transform.
TransformException
- if a transform failed.public Matrix derivative(java.awt.geom.Point2D point) throws TransformException
point
- The coordinate point where to evaluate the derivative. Null value is
accepted only if the derivative is the same everywhere. For example affine
transform accept null value since they produces identical derivative no
matter the coordinate value. But most map projection will requires a non-null
value.
java.lang.NullPointerException
- if the derivative dependents on coordinate and point
is null
.
TransformException
- if the derivative can't be evaluated at the specified point.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |