Package com.itextpdf.forms.util
Class DrawingUtil
- java.lang.Object
-
- com.itextpdf.forms.util.DrawingUtil
-
public class DrawingUtil extends java.lang.ObjectUtility class to draw form fieldsPdfFormField.
-
-
Constructor Summary
Constructors Constructor Description DrawingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddrawCircle(PdfCanvas canvas, float centerX, float centerY, float radius)Draws a circle with the specified radius.static voiddrawCross(PdfCanvas canvas, float width, float height, float borderWidth)Draws a cross with the specified width and height.private static voiddrawPdfAAppearanceString(PdfCanvas canvas, float width, float height, float moveX, float moveY, java.lang.String appearanceString)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 Detail
-
check
protected static final java.lang.String check
- See Also:
- Constant Field Values
-
circle
protected static final java.lang.String circle
- See Also:
- Constant Field Values
-
cross
protected static final java.lang.String cross
- See Also:
- Constant Field Values
-
diamond
protected static final java.lang.String diamond
- See Also:
- Constant Field Values
-
square
protected static final java.lang.String square
- See Also:
- Constant Field Values
-
star
protected static final java.lang.String star
- See Also:
- Constant Field Values
-
-
Method Detail
-
drawPdfAAppearanceString
private static void drawPdfAAppearanceString(PdfCanvas canvas, float width, float height, float moveX, float moveY, java.lang.String appearanceString)
-
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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACheck
public static void drawPdfACheck(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant check mark in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- 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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACircle
public static void drawPdfACircle(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant circle in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- 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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACross
public static void drawPdfACross(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant cross in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- 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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfADiamond
public static void drawPdfADiamond(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant diamond in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- 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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfASquare
public static void drawPdfASquare(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant square in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- 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 onwidth- the width of the rectangleheight- the height of the rectanglemoveX- the x coordinate of the bottom left corner of the rectanglemoveY- the y coordinate of the bottom left corner of the rectangle
-
drawPdfAStar
public static void drawPdfAStar(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant star in the specified rectangle.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- the height of the rectangle
-
drawCross
public static void drawCross(PdfCanvas canvas, float width, float height, float borderWidth)
Draws a cross with the specified width and height.- Parameters:
canvas- the canvas to draw onwidth- the width of the rectangleheight- the height of the rectangleborderWidth- the width of the border
-
drawCircle
public static void drawCircle(PdfCanvas canvas, float centerX, float centerY, float radius)
Draws a circle with the specified radius.- Parameters:
canvas- the canvas to draw oncenterX- the x coordinate of the center of the circlecenterY- the y coordinate of the center of the circleradius- the radius of the circle
-
-