com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PolyAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation
    Direct Known Subclasses:
    PolygonAnnotation, PolylineAnnotation


    public abstract class PolyAnnotation
    extends MarkupAnnotation

    Abstract base class for poly-annotations.

    • Method Detail

      • getMeasure

        public Measure getMeasure()

        Measure units specified for this annotation.

        Returns:
        Measure instance
      • setMeasure

        public void setMeasure(Measure value)

        Measure units specified for this annotation.

        Parameters:
        value - Measure instance
      • getVertices

        public Point[] getVertices()

        Gets an array of points representing the horizontal and vertical coordinates of each vertex.

        Returns:
        array of Point value
      • setVertices

        public void setVertices(Point[] value)

        Sets an array of points representing the horizontal and vertical coordinates of each vertex.

        Parameters:
        value - array of Point value
      • getInteriorColor

        public Color getInteriorColor()

        Gets the interior color with which to fill the annotation's line endings.

        Returns:
        Color object
      • setInteriorColor

        public void setInteriorColor(Color value)

        Sets the interior color with which to fill the annotation's line endings.

        Parameters:
        value - Color object
      • getStartingStyle

        public int getStartingStyle()

        Gets the style of first line ending.

        Returns:
        LineEnding element
        See Also:
        LineEnding
      • setStartingStyle

        public void setStartingStyle(int value)

        Sets the style of first line ending.

        Parameters:
        value - LineEnding element
        See Also:
        LineEnding
      • getEndingStyle

        public int getEndingStyle()

        Gets the style of second line ending.

        Returns:
        LineEnding element
        See Also:
        LineEnding
      • setEndingStyle

        public void setEndingStyle(int value)

        Sets the style of second line ending.

        Parameters:
        value - LineEnding element
        See Also:
        LineEnding
      • getIntent

        public int getIntent()

        Gets the intent of the polygon or polyline annotation.

        Returns:
        PolyIntent element
        See Also:
        PolyIntent
      • setIntent

        public void setIntent(int value)

        Sets the intent of the polygon or polyline annotation.

        Parameters:
        value - PolyIntent element
        See Also:
        PolyIntent
      • changeAfterResize

        public void changeAfterResize(Matrix transform)

        Updates the points in Vertices, according to the matrix transform.

        Overrides:
        changeAfterResize in class Annotation
        Parameters:
        transform - Matrix specifying the transformation.