com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PolylineAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation


    public final class PolylineAnnotation
    extends PolyAnnotation

    Represents polyline annotation that is similar to polygon, except that the first and last vertex are not implicitly connected.

    • Constructor Detail

      • PolylineAnnotation

        public PolylineAnnotation(Page page,
                          Rectangle rect,
                          Point[] vertices)

        Creates new Polyline annotation on the specified page.

        Parameters:
        page - The document's page where annotation should be created.
        rect - The annotation rectangle, defining the location of the annotation on the page.
        vertices - An array of polygon vertices points.
    • Method Detail

      • getMeasure_

        public Measure getMeasure_()

        Measure units specifed for this annotation.

        Returns:
        Measure value
      • setMeasure_

        public void setMeasure_(Measure value)

        Measure units specified for this annotation.

        Parameters:
        value - Measure object
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - Visitor object.
      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        AnnotationType element
        See Also:
        AnnotationType