Class Paragraph

java.lang.Object
be.quodlibet.boxable.Paragraph

public class Paragraph extends Object
  • Constructor Details

  • Method Details

    • getLines

      public List<String> getLines()
    • getFont

      public org.apache.pdfbox.pdmodel.font.PDFont getFont(boolean isBold, boolean isItalic)
    • write

      public float write(PageContentStreamOptimized stream, float cursorX, float cursorY)
    • getHeight

      public float getHeight()
    • getFontHeight

      public float getFontHeight()
    • getFontWidth

      @Deprecated public float getFontWidth()
      Deprecated.
      This method will be removed in a future release
      Returns:
      current font width
    • withWidth

      @Deprecated public Paragraph withWidth(int width)
      Deprecated.
      This method will be removed in a future release
      Parameters:
      width - Paragraph's width
      Returns:
      Paragraph with designated width
    • withFont

      @Deprecated public Paragraph withFont(org.apache.pdfbox.pdmodel.font.PDFont font, int fontSize)
      Deprecated.
      This method will be removed in a future release
      Parameters:
      font - PDFont for Paragraph
      fontSize - font size for Paragraph
      Returns:
      Paragraph with designated font and font size
    • withColor

      @Deprecated public Paragraph withColor(int color)
      Deprecated.
      This method will be removed in a future release
      /**
      Parameters:
      color - int rgb value for color
      Returns:
      Paragraph's Color
    • getColor

      @Deprecated public int getColor()
      Deprecated.
      This method will be replaced by public Color getColor() in a future release
      Returns:
      Paragraph's Color
    • getWidth

      public float getWidth()
    • getText

      public String getText()
    • getFontSize

      public float getFontSize()
    • getFont

      public org.apache.pdfbox.pdmodel.font.PDFont getFont()
    • getAlign

      public HorizontalAlignment getAlign()
    • setAlign

      public void setAlign(HorizontalAlignment align)
    • isDrawDebug

      public boolean isDrawDebug()
    • setDrawDebug

      public void setDrawDebug(boolean drawDebug)
    • getWrappingFunction

      public WrappingFunction getWrappingFunction()
    • getMaxLineWidth

      public float getMaxLineWidth()
    • getLineWidth

      public float getLineWidth(int key)
    • getMapLineTokens

      public Map<Integer,List<Token>> getMapLineTokens()
    • getLineSpacing

      public float getLineSpacing()
    • setLineSpacing

      public void setLineSpacing(float lineSpacing)