com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class CaretAnnotation

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


    public final class CaretAnnotation
    extends MarkupAnnotation

    Class representing Caret annotation.

    • Constructor Detail

      • CaretAnnotation

        public CaretAnnotation(IDocument document)

        Constructor for usign in Generator.

        Parameters:
        document - Document where annotation will be created.
      • CaretAnnotation

        public CaretAnnotation(Page page,
                               Rectangle rect)

        Creates new Caret annotation on the specified page.

        Parameters:
        page - Document's page where annotation should be created.
        rect - Required rectangle that sets annotation's border.
    • Method Detail

      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

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

        public Rectangle getFrame()

        Gets caret rectangle.

        Returns:
        caret rectangle.
      • setFrame

        public void setFrame(Rectangle value)

        Sets caret rectangle.

        Parameters:
        value - caret rectangle.
      • getSymbol

        public int getSymbol()

        Gets symbol associated with caret.

        CaretSymbol
        Returns:
        CaretSymbol element
        See Also:
        CaretSymbol
      • setSymbol

        public void setSymbol(int value)

        Sets output page size for import.

        Parameters:
        value - CaretSymbol element
        See Also:
        CaretSymbol
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

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