Package com.itextpdf.forms.util
Class DrawingUtil
java.lang.Object
com.itextpdf.forms.util.DrawingUtil
Utility class to draw form fields
PdfFormField
.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawCircle
(PdfCanvas canvas, float centerX, float centerY, float radius) Draws a circle with the specified radius.static void
Draws a cross with the specified width and height.static void
drawPdfACheck
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant check mark in the specified rectangle.static void
drawPdfACheck
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant check mark in the specified rectangle.static void
drawPdfACircle
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant circle in the specified rectangle.static void
drawPdfACircle
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant circle in the specified rectangle.static void
drawPdfACross
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant cross in the specified rectangle.static void
drawPdfACross
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant cross in the specified rectangle.static void
drawPdfADiamond
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant diamond in the specified rectangle.static void
drawPdfADiamond
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant diamond in the specified rectangle.static void
drawPdfASquare
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant square in the specified rectangle.static void
drawPdfASquare
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant square in the specified rectangle.static void
drawPdfAStar
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant star in the specified rectangle.static void
drawPdfAStar
(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
-