|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdf.TextPosition
public class TextPosition
Object that holds information about the location of a text string in a PDF file. This information is returned by the library when text information is needed by the host application. The information includes the text position, its angle and its "quadrilateral", the four points that enclose the text on the display.
| Field Summary | |
|---|---|
int |
m_PageNumber
|
| Constructor Summary | |
|---|---|
TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle)
|
|
TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle,
int pageNumber)
|
|
| Method Summary | |
|---|---|
double |
getAngle()
Returns the angle that this text is displayed at on the page. |
Shape |
getEnclosingShape()
Returns a shape that encloses the text on the page. |
int |
getPageNumber()
|
Point2D[] |
getQuadrilateral()
Returns a quadrilateral with the four corners for this text string. |
Vector |
getQuadrilaterals()
Returns a list of quadrilaterals that will enclose the text elements in this object. |
Shape |
getSelectionShape()
Returns the shape that will enclose the text on the display. |
String |
getText()
Returns the text string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int m_PageNumber
| Constructor Detail |
|---|
public TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle)
public TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle,
int pageNumber)
| Method Detail |
|---|
public Shape getEnclosingShape()
public String getText()
getText in interface TextSelectionpublic Point2D[] getQuadrilateral()
public double getAngle()
public Vector getQuadrilaterals()
getQuadrilaterals in interface TextSelectionpublic Shape getSelectionShape()
getSelectionShape in interface TextSelectionpublic int getPageNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||