public abstract class PdfPageElement extends Object
PdfProDocument.getPageElements(int, int)
Modifier and Type | Field and Description |
---|---|
static int |
ELEMENT_TYPE_ALL
Constant specifying all types of PDF page elements.
|
static int |
ELEMENT_TYPE_COMPOSITE
Constant specifying a composite PDF page element.
|
static int |
ELEMENT_TYPE_IMAGE
Constant specifying a image element.
|
static int |
ELEMENT_TYPE_INLINE_IMAGE |
static int |
ELEMENT_TYPE_PATH
Constant specifying a path element.
|
static int |
ELEMENT_TYPE_TEXT
Constant specifying a text element.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBoundingRect()
Return bounding box of the text element.
|
int |
getElementType()
Returns type of this page element.
|
Color |
getFillColor()
Returns color with which the text element is filled.
|
PdfGraphicsState |
getGraphicsState() |
int |
getPageNum()
Returns number of the page.
|
Color |
getStrokeColor()
Returns color with which the text element is stroked.
|
AffineTransform |
getTransformationMatrix() |
double |
getX()
Returns x-coordinate of the top-left corner of the bounding box of the
page element.
|
double |
getY()
Returns y-coordinate of the top-left corner of the bounding box of the
page element.
|
boolean |
isAtPoint(Point2D point) |
boolean |
isAtRect(Rectangle2D rect) |
String |
toString() |
public static final int ELEMENT_TYPE_TEXT
public static final int ELEMENT_TYPE_IMAGE
public static final int ELEMENT_TYPE_PATH
public static final int ELEMENT_TYPE_INLINE_IMAGE
public static final int ELEMENT_TYPE_COMPOSITE
public static final int ELEMENT_TYPE_ALL
public int getElementType()
public int getPageNum()
public double getX()
public double getY()
public Rectangle2D getBoundingRect()
public PdfGraphicsState getGraphicsState()
public AffineTransform getTransformationMatrix()
public Color getFillColor()
public Color getStrokeColor()
public boolean isAtPoint(Point2D point)
public boolean isAtRect(Rectangle2D rect)