public abstract class AbstractText extends java.lang.Object implements Text
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.Rectangle2D.Float |
bounds |
protected boolean |
hasHighlight |
protected boolean |
hasSelected |
protected boolean |
highlight |
protected boolean |
selected |
protected java.awt.geom.Rectangle2D.Float |
textExtractionBounds |
| Constructor and Description |
|---|
AbstractText() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBounds() |
abstract java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object normalized to page
space.
|
java.awt.geom.Rectangle2D.Float |
getTextExtractionBounds()
Gets the original bounds of the text unit, this value is not normalized
to page space and represents the raw layout coordinates of the text as
defined in the Post Script notation.
|
boolean |
hasHighligh()
Indicates that at least this or one of the child instances of AbstractText
is highlighted.
|
boolean |
hasSelected()
Indicates that at least this or one of the child instances of AbstractText
is selected.
|
boolean |
intersects(java.awt.geom.Rectangle2D rect)
Creates a new instance of GeneralPath for this AbstractText object and
applies the current pageTransformation to it.
|
boolean |
isHighlighted()
Is the AbstarctText highlighted, all of its children must also be
highlighted.
|
boolean |
isSelected()
Is the AbstarctText selected, all of its children must also be selected.
|
void |
setHasHighlight(boolean hasHighlight)
Set the highlited state, meaning that this instance or one of the child
AbstractText objects has a highlighted state.
|
void |
setHasSelected(boolean hasSelected)
Set the selected state, meaning that this instance or one of the child
AbstractText objects has a selected state.
|
void |
setHighlighted(boolean highlight)
Sets the AbstractText as highlighted, if it child AbstractText object they
must also be highlighted.
|
void |
setSelected(boolean selected)
Sets the AbstractText as selected, if it child AbstractText object they
must also be selected.
|
protected java.awt.geom.Rectangle2D.Float bounds
protected java.awt.geom.Rectangle2D.Float textExtractionBounds
protected boolean selected
protected boolean highlight
protected boolean hasSelected
protected boolean hasHighlight
public abstract java.awt.geom.Rectangle2D.Float getBounds()
public void clearBounds()
public boolean intersects(java.awt.geom.Rectangle2D rect)
rect - rectangle to check intersection of in page.public boolean isSelected()
isSelected in interface Textpublic void setSelected(boolean selected)
setSelected in interface Textselected - selected state.public boolean isHighlighted()
isHighlighted in interface Textpublic void setHighlighted(boolean highlight)
setHighlighted in interface Texthighlight - selected state.public boolean hasHighligh()
hasHighligh in interface Textpublic boolean hasSelected()
hasSelected in interface Textpublic void setHasHighlight(boolean hasHighlight)
setHasHighlight in interface TexthasHighlight - true to indicates a highlighted states.public void setHasSelected(boolean hasSelected)
setHasSelected in interface TexthasSelected - true to indicates a selected states.public java.awt.geom.Rectangle2D.Float getTextExtractionBounds()