java.lang.Objectcom.pdfjet.CheckBox
public class CheckBox
Creates a CheckBox, which can be set checked or unchecked. By default the check box is unchecked.
Constructor Summary | |
---|---|
CheckBox(Font font,
java.lang.String label)
Creates a CheckBox with black check mark. |
Method Summary | |
---|---|
CheckBox |
check(int mark)
Checks or unchecks this check box. |
float[] |
drawOn(Page page)
Draws this CheckBox on the specified Page. |
float |
getHeight()
Gets the height of the CheckBox. |
float |
getWidth()
Gets the width of the CheckBox. |
CheckBox |
setActualText(java.lang.String actualText)
Sets the actual text for this check box. |
CheckBox |
setAltDescription(java.lang.String altDescription)
Sets the alternate description of this check box. |
CheckBox |
setBoxColor(int boxColor)
Sets the color of the check box. |
CheckBox |
setCheckmark(int checkColor)
Sets the color of the check mark. |
CheckBox |
setFontSize(float fontSize)
Sets the font size to use for this text line. |
CheckBox |
setLocation(float x,
float y)
Set the x,y location on the Page. |
CheckBox |
setPosition(float x,
float y)
Set the x,y position on the Page. |
CheckBox |
setURIAction(java.lang.String uri)
Sets the URI for the "click text line" action. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckBox(Font font, java.lang.String label)
Method Detail |
---|
public CheckBox setFontSize(float fontSize)
fontSize
- the fontSize to use.
public CheckBox setBoxColor(int boxColor)
boxColor
- the check box color specified as an 0xRRGGBB integer.
public CheckBox setCheckmark(int checkColor)
checkColor
- the check mark color specified as an 0xRRGGBB integer.
public CheckBox setPosition(float x, float y)
x
- the x coordinate on the Page.y
- the y coordinate on the Page.
public CheckBox setLocation(float x, float y)
x
- the x coordinate on the Page.y
- the y coordinate on the Page.
public float getHeight()
public float getWidth()
public CheckBox check(int mark)
public CheckBox setURIAction(java.lang.String uri)
uri
- the URI.
public CheckBox setAltDescription(java.lang.String altDescription)
altDescription
- the alternate description of the check box.
public CheckBox setActualText(java.lang.String actualText)
actualText
- the actual text for the check box.
public float[] drawOn(Page page) throws java.lang.Exception
drawOn
in interface Drawable
page
- the Page where the CheckBox is to be drawn.
java.lang.Exception