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 |
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 TextSelection
public Point2D[] getQuadrilateral()
public double getAngle()
public Vector getQuadrilaterals()
getQuadrilaterals
in interface TextSelection
public Shape getSelectionShape()
getSelectionShape
in interface TextSelection
public int getPageNumber()