Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Class PdfPageElement

java.lang.Object
  extended bycom.gnostice.pdfone.PdfPageElement
Direct Known Subclasses:
PdfPageCompositeElement, PdfPageImageElement, PdfPagePathElement, PdfPageTextElement

public abstract class PdfPageElement
extends Object

This class represents a PDF page element.

See Also:
PdfProDocument.getPageElements(int, int)

Field Summary
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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT_TYPE_TEXT

public static final int ELEMENT_TYPE_TEXT
Constant specifying a text element.

See Also:
Constant Field Values

ELEMENT_TYPE_IMAGE

public static final int ELEMENT_TYPE_IMAGE
Constant specifying a image element.

See Also:
Constant Field Values

ELEMENT_TYPE_PATH

public static final int ELEMENT_TYPE_PATH
Constant specifying a path element.

See Also:
Constant Field Values

ELEMENT_TYPE_INLINE_IMAGE

public static final int ELEMENT_TYPE_INLINE_IMAGE
See Also:
Constant Field Values

ELEMENT_TYPE_COMPOSITE

public static final int ELEMENT_TYPE_COMPOSITE
Constant specifying a composite PDF page element.

See Also:
Constant Field Values

ELEMENT_TYPE_ALL

public static final int ELEMENT_TYPE_ALL
Constant specifying all types of PDF page elements.

See Also:
Constant Field Values
Method Detail

getElementType

public int getElementType()
Returns type of this page element.


getPageNum

public int getPageNum()
Returns number of the page.


getX

public double getX()
Returns x-coordinate of the top-left corner of the bounding box of the page element.


getY

public double getY()
Returns y-coordinate of the top-left corner of the bounding box of the page element.


getBoundingRect

public Rectangle2D getBoundingRect()
Return bounding box of the text element.


getGraphicsState

public PdfGraphicsState getGraphicsState()

getTransformationMatrix

public AffineTransform getTransformationMatrix()

getFillColor

public Color getFillColor()
Returns color with which the text element is filled.


getStrokeColor

public Color getStrokeColor()
Returns color with which the text element is stroked.


isAtPoint

public boolean isAtPoint(Point2D point)

isAtRect

public boolean isAtRect(Rectangle2D rect)

toString

public String toString()

Gnostice PDFOne
Pro. Ed. v5.0.0

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2010 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com