|
|||||||||
| 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
public abstract class AbstractText
Abstarct text is the base class for all Text extraction data. Its main purpose to is hold common data for GeneralPath and Bounds and commong contains and intersect calculations.
Some paintable properties are also defined here, such as selected, has selected highlight and hasHighlight which are used as queues to painting selected or highlighted text.
| Field Summary | |
|---|---|
protected java.awt.geom.Rectangle2D.Float |
bounds
|
protected boolean |
hasHighlight
|
protected boolean |
hasSelected
|
protected boolean |
highlight
|
protected boolean |
selected
|
| Constructor Summary | |
|---|---|
AbstractText()
|
|
| Method Summary | |
|---|---|
void |
clearBounds()
|
abstract java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the bounds of the respective text object. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.geom.Rectangle2D.Float bounds
protected boolean selected
protected boolean highlight
protected boolean hasSelected
protected boolean hasHighlight
| Constructor Detail |
|---|
public AbstractText()
| Method Detail |
|---|
public abstract java.awt.geom.Rectangle2D.Float getBounds()
getBounds in interface Textpublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||