Class PlainText.Line
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.layout.PlainText.Line
-
- Enclosing class:
- PlainText
static class PlainText.Line extends java.lang.ObjectAn individual line of text.
-
-
Field Summary
Fields Modifier and Type Field Description private floatlineWidthprivate java.util.List<PlainText.Word>words
-
Constructor Summary
Constructors Constructor Description Line()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddWord(PlainText.Word word)(package private) floatcalculateWidth(PDFont font, float fontSize)(package private) floatgetInterWordSpacing(float width)(package private) floatgetWidth()(package private) java.util.List<PlainText.Word>getWords()(package private) voidsetWidth(float width)
-
-
-
Field Detail
-
words
private final java.util.List<PlainText.Word> words
-
lineWidth
private float lineWidth
-
-
Method Detail
-
getWidth
float getWidth()
-
setWidth
void setWidth(float width)
-
calculateWidth
float calculateWidth(PDFont font, float fontSize) throws java.io.IOException
- Throws:
java.io.IOException
-
getWords
java.util.List<PlainText.Word> getWords()
-
getInterWordSpacing
float getInterWordSpacing(float width)
-
addWord
void addWord(PlainText.Word word)
-
-