|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.graphics.text.AbstractText
org.icepdf.core.pobjects.graphics.text.LineText
public class LineText
Line text is make up WordText objects. This structure is to aid the the identification of words for text extraction, searching and selecting.
| Field Summary |
|---|
| Fields inherited from class org.icepdf.core.pobjects.graphics.text.AbstractText |
|---|
bounds, hasHighlight, hasSelected, highlight, selected |
| Constructor Summary | |
|---|---|
LineText()
|
|
| Method Summary | |
|---|---|
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. |
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()
|
| Methods inherited from class org.icepdf.core.pobjects.graphics.text.AbstractText |
|---|
clearBounds, hasHighligh, hasSelected, intersects, isHighlighted, isSelected, setHasHighlight, setHasSelected, setHighlighted, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LineText()
| Method Detail |
|---|
public java.awt.geom.Rectangle2D.Float getBounds()
AbstractText
getBounds 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||