Class RadioButton

java.lang.Object
net.atthegate.server.service.pdf.RadioButton
All Implemented Interfaces:
Drawable

public class RadioButton extends Object implements Drawable
Creates a RadioButton, which can be set selected or unselected.
  • Constructor Details

    • RadioButton

      public RadioButton(Font font, String label)
      Creates a RadioButton that is not selected.
  • Method Details

    • 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(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(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(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 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:
      Exception