| java.lang.Object java.awt.geom.AffineTransform org.geotools.geometry.jts.TransformedShape
TransformedShape | final public class TransformedShape extends AffineTransform implements Shape(Code) | | Apply an arbitrary
AffineTransform on a
Shape . This class is
used internally by
RenderedMarks . It is designed for reuse with many
different affine transforms and shapes. This class is not
thread-safe.
version: $Id: TransformedShape.java 27862 2007-11-12 19:51:19Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
public Shape | shape The wrapped shape. |
Constructor Summary | |
public | TransformedShape() Construct a transformed shape initialized to the identity transform. |
Method Summary | |
public boolean | contains(double x, double y) Tests if the specified coordinates are inside the boundary of the
Shape . | public boolean | contains(Point2D p) Tests if a specified
Point2D is inside the boundary of the
Shape . | public boolean | contains(double x, double y, double width, double height) Tests if the interior of the Shape entirely contains the
specified rectangular area. | public boolean | contains(Rectangle2D r) Tests if the interior of the Shape entirely contains the
specified Rectangle2D . | public Rectangle | getBounds() Returns an integer
Rectangle that completely encloses the
Shape . | public Rectangle2D | getBounds2D() Returns a high precision and more accurate bounding box of the
Shape than the getBounds method. | public void | getMatrix(float[] matrix, int offset) Returns the 6 coefficients values. | public PathIterator | getPathIterator(AffineTransform at) Returns an iterator object that iterates along the Shape
boundary and provides access to the geometry of the Shape
outline. | public PathIterator | getPathIterator(AffineTransform at, double flatness) Returns an iterator object that iterates along the Shape
boundary and provides access to a flattened view of the
Shape outline geometry. | public boolean | intersects(double x, double y, double width, double height) Tests if the interior of the Shape intersects the interior
of a specified rectangular area. | public boolean | intersects(Rectangle2D r) Tests if the interior of the Shape intersects the interior
of a specified Rectangle2D . | public void | scale(double s) Apply a uniform scale. | public void | setTransform(float[] matrix, int offset) Set the transform from a flat matrix. | public void | setTransform(double[] matrix) Set the transform from a flat matrix. |
TransformedShape | public TransformedShape()(Code) | | Construct a transformed shape initialized to the identity transform.
|
contains | public boolean contains(double x, double y)(Code) | | Tests if the specified coordinates are inside the boundary of the
Shape .
|
contains | public boolean contains(Point2D p)(Code) | | Tests if a specified
Point2D is inside the boundary of the
Shape .
|
contains | public boolean contains(double x, double y, double width, double height)(Code) | | Tests if the interior of the Shape entirely contains the
specified rectangular area.
|
contains | public boolean contains(Rectangle2D r)(Code) | | Tests if the interior of the Shape entirely contains the
specified Rectangle2D . This method might conservatively
return false .
|
getBounds2D | public Rectangle2D getBounds2D()(Code) | | Returns a high precision and more accurate bounding box of the
Shape than the getBounds method.
|
getMatrix | public void getMatrix(float[] matrix, int offset)(Code) | | Returns the 6 coefficients values.
|
getPathIterator | public PathIterator getPathIterator(AffineTransform at)(Code) | | Returns an iterator object that iterates along the Shape
boundary and provides access to the geometry of the Shape
outline.
|
getPathIterator | public PathIterator getPathIterator(AffineTransform at, double flatness)(Code) | | Returns an iterator object that iterates along the Shape
boundary and provides access to a flattened view of the
Shape outline geometry.
|
intersects | public boolean intersects(double x, double y, double width, double height)(Code) | | Tests if the interior of the Shape intersects the interior
of a specified rectangular area.
|
intersects | public boolean intersects(Rectangle2D r)(Code) | | Tests if the interior of the Shape intersects the interior
of a specified Rectangle2D . This method might
conservatively return true .
|
scale | public void scale(double s)(Code) | | Apply a uniform scale.
|
setTransform | public void setTransform(float[] matrix, int offset)(Code) | | Set the transform from a flat matrix.
Parameters: matrix - The flat matrix. Parameters: offset - The index of the first element to use in matrix . |
setTransform | public void setTransform(double[] matrix)(Code) | | Set the transform from a flat matrix.
Parameters: matrix - The flat matrix. |
Methods inherited from java.awt.geom.AffineTransform | public Object clone()(Code)(Java Doc) public void concatenate(AffineTransform Tx)(Code)(Java Doc) public AffineTransform createInverse() throws NoninvertibleTransformException(Code)(Java Doc) public Shape createTransformedShape(Shape pSrc)(Code)(Java Doc) public Point2D deltaTransform(Point2D ptSrc, Point2D ptDst)(Code)(Java Doc) public void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public double getDeterminant()(Code)(Java Doc) public void getMatrix(double[] flatmatrix)(Code)(Java Doc) public static AffineTransform getQuadrantRotateInstance(int numquadrants)(Code)(Java Doc) public static AffineTransform getQuadrantRotateInstance(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getRotateInstance(double theta)(Code)(Java Doc) public static AffineTransform getRotateInstance(double theta, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getRotateInstance(double vecx, double vecy)(Code)(Java Doc) public static AffineTransform getRotateInstance(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public static AffineTransform getScaleInstance(double sx, double sy)(Code)(Java Doc) public double getScaleX()(Code)(Java Doc) public double getScaleY()(Code)(Java Doc) public static AffineTransform getShearInstance(double shx, double shy)(Code)(Java Doc) public double getShearX()(Code)(Java Doc) public double getShearY()(Code)(Java Doc) public static AffineTransform getTranslateInstance(double tx, double ty)(Code)(Java Doc) public double getTranslateX()(Code)(Java Doc) public double getTranslateY()(Code)(Java Doc) public int getType()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public Point2D inverseTransform(Point2D ptSrc, Point2D ptDst) throws NoninvertibleTransformException(Code)(Java Doc) public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException(Code)(Java Doc) public void invert() throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) public void preConcatenate(AffineTransform Tx)(Code)(Java Doc) public void quadrantRotate(int numquadrants)(Code)(Java Doc) public void quadrantRotate(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public void rotate(double theta)(Code)(Java Doc) public void rotate(double theta, double anchorx, double anchory)(Code)(Java Doc) public void rotate(double vecx, double vecy)(Code)(Java Doc) public void rotate(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public void scale(double sx, double sy)(Code)(Java Doc) public void setToIdentity()(Code)(Java Doc) public void setToQuadrantRotation(int numquadrants)(Code)(Java Doc) public void setToQuadrantRotation(int numquadrants, double anchorx, double anchory)(Code)(Java Doc) public void setToRotation(double theta)(Code)(Java Doc) public void setToRotation(double theta, double anchorx, double anchory)(Code)(Java Doc) public void setToRotation(double vecx, double vecy)(Code)(Java Doc) public void setToRotation(double vecx, double vecy, double anchorx, double anchory)(Code)(Java Doc) public void setToScale(double sx, double sy)(Code)(Java Doc) public void setToShear(double shx, double shy)(Code)(Java Doc) public void setToTranslation(double tx, double ty)(Code)(Java Doc) public void setTransform(AffineTransform Tx)(Code)(Java Doc) public void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)(Code)(Java Doc) public void shear(double shx, double shy)(Code)(Java Doc) public String toString()(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst)(Code)(Java Doc) public void transform(Point2D[] ptSrc, int srcOff, Point2D[] ptDst, int dstOff, int numPts)(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)(Code)(Java Doc) public void translate(double tx, double ty)(Code)(Java Doc)
|
|
|