GraphicElement
Inheritance: java.lang.Object
public abstract class GraphicElement
Represents base class for graphics object on the page.
Methods
Method | Description |
---|---|
getRectangle() | Gets the bounding rectangle of the GraphicElement. |
getPosition() | Gets or sets the position in the current coordinate space. |
setPosition(Point value) | Gets or sets the position in the current coordinate space. |
remove() | Removes current element from the page. |
addOnPage(Page destination) | Adds current element on the page. |
getParent() | Gets the current XFormPlacement in which the element is located. |
getOperators() | Gets a collection of operators representing the element. |
getRectangle()
public abstract Rectangle getRectangle()
Gets the bounding rectangle of the GraphicElement.
Returns: Rectangle - Rectangle instance
getPosition()
public Point getPosition()
Gets or sets the position in the current coordinate space. If @link #getParent is not null then the element have xForm coordinate space.
Returns: Point - Point instance
setPosition(Point value)
public void setPosition(Point value)
Gets or sets the position in the current coordinate space. If Parent (#getParent#getParent) is not null then the element have xForm coordinate space.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Point | Point instance |
remove()
public final void remove()
Removes current element from the page. If there are many elements to remove better use Page#deleteGraphics(GraphicElementCollection).
addOnPage(Page destination)
public void addOnPage(Page destination)
Adds current element on the page. If there are many elements to add better use Page#addGraphics(GraphicElementCollection,Rectangle).
Parameters:
Parameter | Type | Description |
---|---|---|
destination | Page | Destination page |
getParent()
public final XFormPlacement getParent()
Gets the current XFormPlacement in which the element is located.
Returns: XFormPlacement - XFormPlacement instance
getOperators()
public final List<Operator> getOperators()
Gets a collection of operators representing the element.
Returns: java.util.List<com.aspose.pdf.Operator> - List of Operator instances