public class TextPosition extends Object implements TextSelection
| Modifier and Type | Field and Description |
|---|---|
int |
m_PageNumber |
| Constructor and Description |
|---|
TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle) |
TextPosition(String text,
Shape textShape,
Point2D[] quad,
double angle,
int pageNumber) |
| Modifier and Type | Method and Description |
|---|---|
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<Point2D[]> |
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.
|
public Shape getEnclosingShape()
public String getText()
getText in interface TextSelectionpublic Point2D[] getQuadrilateral()
public double getAngle()
public Vector<Point2D[]> getQuadrilaterals()
getQuadrilaterals in interface TextSelectionpublic Shape getSelectionShape()
getSelectionShape in interface TextSelectionpublic int getPageNumber()