public class LineText extends AbstractText implements TextSelect
bounds, hasHighlight, hasSelected, highlight, selected, textExtractionBounds| Constructor and Description |
|---|
LineText() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(java.util.List<WordText> words) |
protected void |
addText(GlyphText sprite)
Add the sprite to the current word in this line/sentence.
|
void |
clearHighlighted()
Dehighlights all text in the line; all word and glyph children.
|
void |
clearSelected()
Deselects all text in this line; all word and glyph children.
|
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object normalized to page
space.
|
java.lang.StringBuilder |
getSelected()
Interates over child elements getting the selected text as defined by
the child glyphs unicode value.
|
java.util.List<WordText> |
getWords()
Gets the words that make up this line.
|
void |
selectAll()
Select all text in this line; all word and glyph children.
|
protected void |
setWords(java.util.List<WordText> words) |
java.lang.String |
toString() |
clearBounds, getTextExtractionBounds, hasHighligh, hasSelected, intersects, isHighlighted, isSelected, setHasHighlight, setHasSelected, setHighlighted, setSelectedpublic java.awt.geom.Rectangle2D.Float getBounds()
AbstractTextgetBounds in interface TextgetBounds in class AbstractTextprotected void addText(GlyphText sprite)
sprite - sprite to add to line.public void addAll(java.util.List<WordText> words)
protected void setWords(java.util.List<WordText> words)
public java.util.List<WordText> getWords()
public void selectAll()
selectAll in interface TextSelectpublic void clearSelected()
clearSelected in interface TextSelectpublic void clearHighlighted()
clearHighlighted in interface TextSelectpublic java.lang.StringBuilder getSelected()
getSelected in interface TextSelectpublic java.lang.String toString()
toString in class java.lang.Object