com.pdfjet
Class RadioButton

java.lang.Object
  extended by com.pdfjet.RadioButton
All Implemented Interfaces:
Drawable

public class RadioButton
extends java.lang.Object
implements Drawable

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

RadioButton

public RadioButton(Font font,
                   java.lang.String label)
Creates a RadioButton that is not selected.

Method Detail

setFontSize

public RadioButton setFontSize(float fontSize)
Sets the font size to use for this text line.

Parameters:
fontSize - the fontSize to use.
Returns:
this RadioButton.

setPosition

public RadioButton setPosition(float x,
                               float y)
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

public RadioButton setLocation(float x,
                               float y)
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

public RadioButton setURIAction(java.lang.String uri)
Sets the URI for the "click text line" action.

Parameters:
uri - the URI.
Returns:
this RadioButton.

select

public RadioButton select(boolean selected)
Selects or deselects this radio button.

Parameters:
selected - the selection flag.
Returns:
this RadioButton.

setAltDescription

public RadioButton setAltDescription(java.lang.String altDescription)
Sets the alternate description of this radio button.

Parameters:
altDescription - the alternate description of the radio button.
Returns:
this RadioButton.

setActualText

public RadioButton setActualText(java.lang.String actualText)
Sets the actual text for this radio button.

Parameters:
actualText - the actual text for the radio button.
Returns:
this RadioButton.

drawOn

public float[] drawOn(Page page)
               throws java.lang.Exception
Draws this RadioButton on the specified Page.

Specified by:
drawOn in interface Drawable
Parameters:
page - the Page where the RadioButton is to be drawn.
Returns:
x and y coordinates of the bottom right corner of this component.
Throws:
java.lang.Exception