Package com.itextpdf.kernel.geom
Class ShapeTransformUtil
- java.lang.Object
-
- com.itextpdf.kernel.geom.ShapeTransformUtil
-
public final class ShapeTransformUtil extends java.lang.Object
Public helper class for transforming segments and paths.
-
-
Constructor Summary
Constructors Constructor Description ShapeTransformUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BezierCurve
transformBezierCurve(BezierCurve bezierCurve, Matrix ctm)
Method for transforming a bezier curve.static Line
transformLine(Line line, Matrix ctm)
Method for transforming a line.static Path
transformPath(Path path, Matrix ctm)
Method for transforming a path.private static Point[]
transformPoints(Matrix ctm, Point... points)
private static IShape
transformSegment(IShape segment, Matrix ctm)
private static Subpath
transformSubpath(Subpath subpath, Matrix ctm)
-
-
-
Method Detail
-
transformBezierCurve
public static BezierCurve transformBezierCurve(BezierCurve bezierCurve, Matrix ctm)
Method for transforming a bezier curve. The method creates a new transformed bezier curve without changing the original curve.- Parameters:
bezierCurve
- the source bezier curve for transformationctm
- the transformation matrix- Returns:
- the new transformed bezier curve
-
transformLine
public static Line transformLine(Line line, Matrix ctm)
Method for transforming a line. The method creates a new transformed line without changing the original line.- Parameters:
line
- the source line for transformationctm
- the transformation matrix- Returns:
- the new transformed line
-
transformPath
public static Path transformPath(Path path, Matrix ctm)
Method for transforming a path. The method creates a new transformed path without changing the original path.- Parameters:
path
- the source path for transformationctm
- the transformation matrix- Returns:
- the new transformed path
-
-