public class WordText extends AbstractText implements TextSelect
| Modifier and Type | Field and Description |
|---|---|
static int |
spaceFraction |
bounds, hasHighlight, hasSelected, highlight, selected, textExtractionBounds| Constructor and Description |
|---|
WordText() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addText(GlyphText sprite) |
protected WordText |
buildSpaceWord(GlyphText sprite) |
void |
clearHighlighted() |
void |
clearSelected() |
protected static boolean |
detectPunctuation(GlyphText sprite,
WordText currentWord) |
protected boolean |
detectSpace(GlyphText sprite) |
protected static boolean |
detectWhiteSpace(GlyphText sprite) |
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object normalized to page
space.
|
java.util.ArrayList<GlyphText> |
getGlyphs() |
int |
getPreviousGlyphText() |
java.lang.StringBuilder |
getSelected() |
java.lang.String |
getText() |
static boolean |
isDigit(char c) |
static boolean |
isDigit(WordText currentWord) |
static boolean |
isPunctuation(int c) |
boolean |
isWhiteSpace() |
static boolean |
isWhiteSpace(int c) |
void |
selectAll() |
void |
setWhiteSpace(boolean whiteSpace) |
java.lang.String |
toString() |
clearBounds, getTextExtractionBounds, hasHighligh, hasSelected, intersects, isHighlighted, isSelected, setHasHighlight, setHasSelected, setHighlighted, setSelectedpublic boolean isWhiteSpace()
public void setWhiteSpace(boolean whiteSpace)
protected boolean detectSpace(GlyphText sprite)
protected static boolean detectPunctuation(GlyphText sprite, WordText currentWord)
protected static boolean detectWhiteSpace(GlyphText sprite)
public static boolean isPunctuation(int c)
public static boolean isWhiteSpace(int c)
public static boolean isDigit(WordText currentWord)
public static boolean isDigit(char c)
protected void addText(GlyphText sprite)
public java.awt.geom.Rectangle2D.Float getBounds()
AbstractTextgetBounds in interface TextgetBounds in class AbstractTextpublic java.util.ArrayList<GlyphText> getGlyphs()
public java.lang.StringBuilder getSelected()
getSelected in interface TextSelectpublic void clearHighlighted()
clearHighlighted in interface TextSelectpublic void clearSelected()
clearSelected in interface TextSelectpublic void selectAll()
selectAll in interface TextSelectpublic java.lang.String getText()
public int getPreviousGlyphText()
public java.lang.String toString()
toString in class java.lang.Object