SubPathContainer

Inheritance: java.lang.Object, com.aspose.pdf.vector.extraction.SubPathContainer

All Implemented Interfaces: com.aspose.pdf.engine.utils.clustering.hierarchicalagglomerativeclustering.IDistanceMetric< SubPathContainer >, Comparable < SubPathContainer >

public class SubPathContainer extends Object implements com.aspose.pdf.engine.utils.clustering.hierarchicalagglomerativeclustering.IDistanceMetric< SubPathContainer >, Comparable < SubPathContainer >

Represents a container class for graphic elements.

Constructors

ConstructorDescription
SubPathContainerInstantiates a container class for graphic elements.
SubPathContainerInstantiates a container class for graphic elements.
SubPathContainerInstantiates a container class for graphic elements.
SubPathContainerInstantiates a container class for graphic elements.
SubPathContainerInstantiates a container class for graphic elements.

Methods

MethodDescription
calculateDistanceCalculates the distance between two containers.
compareToCompares the current SubPathContainer object with another SubPathContainer object and returns an integer that indicates whether the current object is less than, equal to, or greater than the other object. Objects are compared by their numeric ID.
distanceToCalculates the distance between this container and other container.
getGraphElementGets contained graphic element.
getIdGets the Id of the SubPathContainer. Id is required for ease of debugging and sorting of elements during rendering.
getRectRepresents a rectangle of contained element.
toString{@code }

SubPathContainer

public SubPathContainer()

Instantiates a container class for graphic elements.

SubPathContainer

Instantiates a container class for graphic elements.

SubPathContainer

Instantiates a container class for graphic elements.

SubPathContainer

Instantiates a container class for graphic elements.

SubPathContainer

Instantiates a container class for graphic elements.

calculateDistance

Calculates the distance between two containers.

compareTo

Compares the current SubPathContainer object with another SubPathContainer object and returns an integer that indicates whether the current object is less than, equal to, or greater than the other object. Objects are compared by their numeric ID.

distanceTo

Calculates the distance between this container and other container.

getGraphElement

public final GraphicElement getGraphElement()

Gets contained graphic element.

Returns: GraphicElement instance

getId

public final int getId()

Gets the Id of the SubPathContainer. Id is required for ease of debugging and sorting of elements during rendering.

Returns: int value

getRect

public final Rectangle getRect()

Represents a rectangle of contained element.

Returns: Rectangle instance

toString

public String toString()

{@code }