Package com.itextpdf.svg.utils
Class DrawUtils
- java.lang.Object
-
- com.itextpdf.svg.utils.DrawUtils
-
public class DrawUtils extends java.lang.Object
Utility class for drowing shapes onPdfCanvas
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DrawUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
arc(double x1, double y1, double x2, double y2, double startAng, double extent, PdfCanvas cv)
Draw an arc on the passed canvas, enclosed by the rectangle for which two opposite corners are specified.
-
-
-
Method Detail
-
arc
public static void arc(double x1, double y1, double x2, double y2, double startAng, double extent, PdfCanvas cv)
Draw an arc on the passed canvas, enclosed by the rectangle for which two opposite corners are specified. The arc starts at the passed starting angle and extends to the starting angle + extent- Parameters:
x1
- corner-coordinate of the enclosing rectangle, first cornery1
- corner-coordinate of the enclosing rectangle, first cornerx2
- corner-coordinate of the enclosing rectangle, second cornery2
- corner-coordinate of the enclosing rectangle, second cornerstartAng
- starting angle in degreesextent
- extent of the arccv
- canvas to paint on
-
-