Class PlainText

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

public class PlainText extends Object implements Drawable
Please see Example_45
  • Constructor Details

    • PlainText

      public PlainText(Font font, String[] textLines)
  • Method Details

    • setFontSize

      public PlainText setFontSize(float fontSize)
    • setLocation

      public PlainText setLocation(float x, float y)
    • setWidth

      public PlainText setWidth(float w)
    • setLeading

      public PlainText setLeading(float leading)
    • setBackgroundColor

      public PlainText setBackgroundColor(int backgroundColor)
    • setBorderColor

      public PlainText setBorderColor(int borderColor)
    • setTextColor

      public PlainText setTextColor(int textColor)
    • getEndOfLinePoints

      public List<float[]> getEndOfLinePoints()
    • drawOn

      public float[] drawOn(Page page) throws Exception
      Draws this PlainText on the specified page.
      Specified by:
      drawOn in interface Drawable
      Parameters:
      page - the page to draw this PlainText on.
      Returns:
      x and y coordinates of the bottom right corner of this component.
      Throws:
      Exception