Package net.atthegate.server.service.pdf
Class RadioButton
java.lang.Object
net.atthegate.server.service.pdf.RadioButton
- All Implemented Interfaces:
Drawable
Creates a RadioButton, which can be set selected or unselected.
-
Constructor Summary
ConstructorsConstructorDescriptionRadioButton
(Font font, String label) Creates a RadioButton that is not selected. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
Draws this RadioButton on the specified Page.select
(boolean selected) Selects or deselects this radio button.setActualText
(String actualText) Sets the actual text for this radio button.setAltDescription
(String altDescription) Sets the alternate description of this radio button.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
-
RadioButton
Creates a RadioButton that is not selected.
-
-
Method Details
-
setFontSize
Sets the font size to use for this text line.- Parameters:
fontSize
- the fontSize to use.- Returns:
- this RadioButton.
-
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 RadioButton.
-
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 RadioButton.
-
setURIAction
Sets the URI for the "click text line" action.- Parameters:
uri
- the URI.- Returns:
- this RadioButton.
-
select
Selects or deselects this radio button.- Parameters:
selected
- the selection flag.- Returns:
- this RadioButton.
-
setAltDescription
Sets the alternate description of this radio button.- Parameters:
altDescription
- the alternate description of the radio button.- Returns:
- this RadioButton.
-
setActualText
Sets the actual text for this radio button.- Parameters:
actualText
- the actual text for the radio button.- Returns:
- this RadioButton.
-
drawOn
Draws this RadioButton on the specified Page.
-