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.Object
An individual line of text.
-
-
Field Summary
Fields Modifier and Type Field Description private float
lineWidth
private 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) void
addWord(PlainText.Word word)
(package private) float
calculateWidth(PDFont font, float fontSize)
(package private) float
getInterWordSpacing(float width)
(package private) float
getWidth()
(package private) java.util.List<PlainText.Word>
getWords()
(package private) void
setWidth(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)
-
-