XFormPlacement

Inheritance: java.lang.Object, com.aspose.pdf.vector.GraphicElement

public final class XFormPlacement extends GraphicElement

Represents XForm placement. If the XForm is displayed on the page more than 1 time, all XformPlacements associated with this XForm will have common graphical elements, but different graphical states.

Methods

MethodDescription
getName()Gets name of the XForm.
getXForm()Gets XForm associated with this XFormPlacement.
getElements()Gets graphic elements inside this XForm.
getRectangle()
setPosition(Point value)
addOnPage(Page destination)Adds current element on the page.

getName()

public final String getName()

Gets name of the XForm.

Returns: java.lang.String - String value

getXForm()

public final XForm getXForm()

Gets XForm associated with this XFormPlacement.

Returns: XForm - XForm instance

getElements()

public final GraphicElementCollection getElements()

Gets graphic elements inside this XForm.

Returns: GraphicElementCollection - GraphicElementCollection instance

getRectangle()

public Rectangle getRectangle()

Gets the bounding rectangle of the GraphicElement.

Returns: Rectangle

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:

ParameterTypeDescription
valuePoint

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:

ParameterTypeDescription
destinationPageDestination page