Package com.itextpdf.forms.util
Class DrawingUtil
java.lang.Object
com.itextpdf.forms.util.DrawingUtil
Utility class to draw form fields
PdfFormField.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawCircle(PdfCanvas canvas, float centerX, float centerY, float radius) Draws a circle with the specified radius.static voidDraws a cross with the specified width and height.static voiddrawPdfACheck(PdfCanvas canvas, float width, float height) Draws a PDF A compliant check mark in the specified rectangle.static voiddrawPdfACheck(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant check mark in the specified rectangle.static voiddrawPdfACircle(PdfCanvas canvas, float width, float height) Draws a PDF A compliant circle in the specified rectangle.static voiddrawPdfACircle(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant circle in the specified rectangle.static voiddrawPdfACross(PdfCanvas canvas, float width, float height) Draws a PDF A compliant cross in the specified rectangle.static voiddrawPdfACross(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant cross in the specified rectangle.static voiddrawPdfADiamond(PdfCanvas canvas, float width, float height) Draws a PDF A compliant diamond in the specified rectangle.static voiddrawPdfADiamond(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant diamond in the specified rectangle.static voiddrawPdfASquare(PdfCanvas canvas, float width, float height) Draws a PDF A compliant square in the specified rectangle.static voiddrawPdfASquare(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant square in the specified rectangle.static voiddrawPdfAStar(PdfCanvas canvas, float width, float height) Draws a PDF A compliant star in the specified rectangle.static voiddrawPdfAStar(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant star in the specified rectangle.
-
Field Details
-
check
- See Also:
-
circle
- See Also:
-
cross
- See Also:
-
diamond
- See Also:
-
square
- See Also:
-
star
- See Also:
-
-
Constructor Details
-
DrawingUtil
public DrawingUtil()
-
-
Method Details
-
drawPdfACheck
public static void drawPdfACheck(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant check mark in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACheck
Draws a PDF A compliant check mark in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawPdfACircle
public static void drawPdfACircle(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant circle in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACircle
Draws a PDF A compliant circle in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawPdfACross
public static void drawPdfACross(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant cross in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACross
Draws a PDF A compliant cross in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawPdfADiamond
public static void drawPdfADiamond(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant diamond in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfADiamond
Draws a PDF A compliant diamond in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawPdfASquare
public static void drawPdfASquare(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant square in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfASquare
Draws a PDF A compliant square in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawPdfAStar
public static void drawPdfAStar(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant star in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
moveX- the x coordinate of the bottom left corner of the rectangle -
moveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfAStar
Draws a PDF A compliant star in the specified rectangle.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle
-
drawCross
Draws a cross with the specified width and height.- Parameters:
-
canvas- the canvas to draw on -
width- the width of the rectangle -
height- the height of the rectangle -
borderWidth- the width of the border
-
drawCircle
Draws a circle with the specified radius.- Parameters:
-
canvas- the canvas to draw on -
centerX- the x coordinate of the center of the circle -
centerY- the y coordinate of the center of the circle -
radius- the radius of the circle
-