Package net.atthegate.server.service.pdf
Class CheckBox
java.lang.Object
net.atthegate.server.service.pdf.CheckBox
- All Implemented Interfaces:
Drawable
Creates a CheckBox, which can be set checked or unchecked.
By default the check box is unchecked.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck
(int mark) Checks or unchecks this check box.float[]
Draws this CheckBox on the specified Page.float
Gets the height of the CheckBox.float
getWidth()
Gets the width of the CheckBox.setActualText
(String actualText) Sets the actual text for this check box.setAltDescription
(String altDescription) Sets the alternate description of this check box.setBoxColor
(int boxColor) Sets the color of the check box.setCheckmark
(int checkColor) Sets the color of the check mark.setFontSize
(float fontSize) Sets the font size to use for this text line.setLocation
(float x, float y) Set the x,y location on the Page.setPosition
(float x, float y) Set the x,y position on the Page.setURIAction
(String uri) Sets the URI for the "click text line" action.
-
Constructor Details
-
CheckBox
Creates a CheckBox with black check mark.
-
-
Method Details
-
setFontSize
Sets the font size to use for this text line.- Parameters:
fontSize
- the fontSize to use.- Returns:
- this CheckBox.
-
setBoxColor
Sets the color of the check box.- Parameters:
boxColor
- the check box color specified as an 0xRRGGBB integer.- Returns:
- this CheckBox.
-
setCheckmark
Sets the color of the check mark.- Parameters:
checkColor
- the check mark color specified as an 0xRRGGBB integer.- Returns:
- this CheckBox.
-
setPosition
Set the x,y position on the Page.- Parameters:
x
- the x coordinate on the Page.y
- the y coordinate on the Page.- Returns:
- this CheckBox.
-
setLocation
Set the x,y location on the Page.- Parameters:
x
- the x coordinate on the Page.y
- the y coordinate on the Page.- Returns:
- this CheckBox.
-
getHeight
public float getHeight()Gets the height of the CheckBox. -
getWidth
public float getWidth()Gets the width of the CheckBox. -
check
Checks or unchecks this check box. See the Mark class for available options.- Returns:
- this CheckBox.
-
setURIAction
Sets the URI for the "click text line" action.- Parameters:
uri
- the URI.- Returns:
- this CheckBox.
-
setAltDescription
Sets the alternate description of this check box.- Parameters:
altDescription
- the alternate description of the check box.- Returns:
- this Checkbox.
-
setActualText
Sets the actual text for this check box.- Parameters:
actualText
- the actual text for the check box.- Returns:
- this CheckBox.
-
drawOn
Draws this CheckBox on the specified Page.
-