Package be.quodlibet.boxable
Class Paragraph
java.lang.Object
be.quodlibet.boxable.Paragraph
-
Constructor Summary
ConstructorsConstructorDescriptionParagraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align) Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, WrappingFunction wrappingFunction) Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, Color color, TextType textType, WrappingFunction wrappingFunction) Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, Color color, TextType textType, WrappingFunction wrappingFunction, float lineSpacing) -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()intgetColor()Deprecated.org.apache.pdfbox.pdmodel.font.PDFontgetFont()org.apache.pdfbox.pdmodel.font.PDFontgetFont(boolean isBold, boolean isItalic) floatfloatfloatDeprecated.This method will be removed in a future releasefloatgetLines()floatfloatgetLineWidth(int key) floatgetText()floatgetWidth()booleanvoidsetAlign(HorizontalAlignment align) voidsetDrawDebug(boolean drawDebug) voidsetLineSpacing(float lineSpacing) withColor(int color) Deprecated.This method will be removed in a future releasewithFont(org.apache.pdfbox.pdmodel.font.PDFont font, int fontSize) Deprecated.This method will be removed in a future releasewithWidth(int width) Deprecated.This method will be removed in a future releasefloatwrite(PageContentStreamOptimized stream, float cursorX, float cursorY)
-
Constructor Details
-
Paragraph
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align) -
Paragraph
-
Paragraph
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, WrappingFunction wrappingFunction) -
Paragraph
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, Color color, TextType textType, WrappingFunction wrappingFunction) -
Paragraph
public Paragraph(String text, org.apache.pdfbox.pdmodel.font.PDFont font, float fontSize, float width, HorizontalAlignment align, Color color, TextType textType, WrappingFunction wrappingFunction, float lineSpacing)
-
-
Method Details
-
getLines
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont(boolean isBold, boolean isItalic) -
write
-
getHeight
public float getHeight() -
getFontHeight
public float getFontHeight() -
getFontWidth
Deprecated.This method will be removed in a future release- Returns:
- current font width
-
withWidth
Deprecated.This method will be removed in a future release- Parameters:
width- Paragraph's width- Returns:
Paragraphwith designated width
-
withFont
Deprecated.This method will be removed in a future release -
withColor
Deprecated.This method will be removed in a future release/**- Parameters:
color-intrgb value for color- Returns:
- Paragraph's
Color
-
getColor
Deprecated.This method will be replaced bypublic Color getColor()in a future release- Returns:
- Paragraph's
Color
-
getWidth
public float getWidth() -
getText
-
getFontSize
public float getFontSize() -
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont() -
getAlign
-
setAlign
-
isDrawDebug
public boolean isDrawDebug() -
setDrawDebug
public void setDrawDebug(boolean drawDebug) -
getWrappingFunction
-
getMaxLineWidth
public float getMaxLineWidth() -
getLineWidth
public float getLineWidth(int key) -
getMapLineTokens
-
getLineSpacing
public float getLineSpacing() -
setLineSpacing
public void setLineSpacing(float lineSpacing)
-
public Color getColor()in a future release