java.lang.Objectcom.pdfjet.RadioButton
public class RadioButton
Creates a RadioButton, which can be set selected or unselected.
| Constructor Summary | |
|---|---|
RadioButton(Font font,
java.lang.String label)
Creates a RadioButton that is not selected. |
|
| Method Summary | |
|---|---|
float[] |
drawOn(Page page)
Draws this RadioButton on the specified Page. |
RadioButton |
select(boolean selected)
Selects or deselects this radio button. |
RadioButton |
setActualText(java.lang.String actualText)
Sets the actual text for this radio button. |
RadioButton |
setAltDescription(java.lang.String altDescription)
Sets the alternate description of this radio button. |
RadioButton |
setFontSize(float fontSize)
Sets the font size to use for this text line. |
RadioButton |
setLocation(float x,
float y)
Set the x,y location on the Page. |
RadioButton |
setPosition(float x,
float y)
Set the x,y position on the Page. |
RadioButton |
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 RadioButton(Font font,
java.lang.String label)
| Method Detail |
|---|
public RadioButton setFontSize(float fontSize)
fontSize - the fontSize to use.
public RadioButton setPosition(float x,
float y)
x - the x coordinate on the Page.y - the y coordinate on the Page.
public RadioButton setLocation(float x,
float y)
x - the x coordinate on the Page.y - the y coordinate on the Page.
public RadioButton setURIAction(java.lang.String uri)
uri - the URI.
public RadioButton select(boolean selected)
selected - the selection flag.
public RadioButton setAltDescription(java.lang.String altDescription)
altDescription - the alternate description of the radio button.
public RadioButton setActualText(java.lang.String actualText)
actualText - the actual text for the radio button.
public float[] drawOn(Page page)
throws java.lang.Exception
drawOn in interface Drawablepage - the Page where the RadioButton is to be drawn.
java.lang.Exception