AnnotationSelector

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.pdf.IAnnotationVisitor

public final class AnnotationSelector implements IAnnotationVisitor

This class is used for selecting annotations using Visitor template idea.

Constructors

ConstructorDescription
AnnotationSelector()Initializes new instance of the AnnotationSelector class.
AnnotationSelector(Annotation annotation)Initializes new AnnotationSelector object.

Methods

MethodDescription
getSelected()The list of selected objects.
visit(LinkAnnotation link)Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.
visit(FileAttachmentAnnotation attachment)Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.
visit(TextAnnotation text)Select text annotation if AnnotationSelector was initialized with TextAnnotation object.
visit(RedactionAnnotation redact)Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.
visit(FreeTextAnnotation freetext)Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
visit(HighlightAnnotation highlight)Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
visit(UnderlineAnnotation underline)Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.
visit(StrikeOutAnnotation strikeOut)Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.
visit(SquigglyAnnotation squiggly)Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.
visit(PopupAnnotation popup)Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.
visit(LineAnnotation line)Select line annotation if AnnotationSelector was initialized with LineAnnotation object.
visit(CircleAnnotation circle)Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.
visit(SquareAnnotation square)Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.
visit(InkAnnotation ink)Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.
visit(PolylineAnnotation polyline)Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.
visit(PolygonAnnotation polygon)Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.
visit(CaretAnnotation caret)Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.
visit(StampAnnotation stamp)Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.
visit(WidgetAnnotation widget)Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.
visit(WatermarkAnnotation watermark)Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.
visit(MovieAnnotation movie)Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.
visit(RichMediaAnnotation richMedia)Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.
visit(ScreenAnnotation screen)Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.
visit(PDF3DAnnotation pdf3D)Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.
visit(ColorBarAnnotation colorBar)Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object.

AnnotationSelector()

public AnnotationSelector()

Initializes new instance of the AnnotationSelector class.

AnnotationSelector(Annotation annotation)

public AnnotationSelector(Annotation annotation)

Initializes new AnnotationSelector object.

Parameters:

ParameterTypeDescription
annotationAnnotationAnnotation to be selected. This object only describes some characteristics we want found annotations to have, e.g. the type of annotation.

getSelected()

public List<Annotation> getSelected()

The list of selected objects.

Returns: java.util.List<com.aspose.pdf.Annotation> - List of Annotation instances

visit(LinkAnnotation link)

public void visit(LinkAnnotation link)

Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.

Parameters:

ParameterTypeDescription
linkLinkAnnotationLinkAnnotation object for selecting.

visit(FileAttachmentAnnotation attachment)

public void visit(FileAttachmentAnnotation attachment)

Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.

Parameters:

ParameterTypeDescription
attachmentFileAttachmentAnnotationFileAttachmentAnnotation object for selecting.

visit(TextAnnotation text)

public void visit(TextAnnotation text)

Select text annotation if AnnotationSelector was initialized with TextAnnotation object.

Parameters:

ParameterTypeDescription
textTextAnnotationTextAnnotation object for selecting.

visit(RedactionAnnotation redact)

public void visit(RedactionAnnotation redact)

Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.

Parameters:

ParameterTypeDescription
redactRedactionAnnotationRedactAnnotation object for selecting.

visit(FreeTextAnnotation freetext)

public void visit(FreeTextAnnotation freetext)

Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object.

Parameters:

ParameterTypeDescription
freetextFreeTextAnnotationFreeTextAnnotation object for selecting.

visit(HighlightAnnotation highlight)

public void visit(HighlightAnnotation highlight)

Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.

Parameters:

ParameterTypeDescription
highlightHighlightAnnotationHighlightAnnotation object for selecting.

visit(UnderlineAnnotation underline)

public void visit(UnderlineAnnotation underline)

Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.

Parameters:

ParameterTypeDescription
underlineUnderlineAnnotationUnderlineAnnotation object for selecting.

visit(StrikeOutAnnotation strikeOut)

public void visit(StrikeOutAnnotation strikeOut)

Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.

Parameters:

ParameterTypeDescription
strikeOutStrikeOutAnnotationStrikeOutAnnotation object for selecting.

visit(SquigglyAnnotation squiggly)

public void visit(SquigglyAnnotation squiggly)

Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.

Parameters:

ParameterTypeDescription
squigglySquigglyAnnotationSquigglyAnnotation object for selecting.

visit(PopupAnnotation popup)

public void visit(PopupAnnotation popup)

Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.

Parameters:

ParameterTypeDescription
popupPopupAnnotationPopupAnnotation object for selecting.

visit(LineAnnotation line)

public void visit(LineAnnotation line)

Select line annotation if AnnotationSelector was initialized with LineAnnotation object.

Parameters:

ParameterTypeDescription
lineLineAnnotationLineAnnotation object for selecting.

visit(CircleAnnotation circle)

public void visit(CircleAnnotation circle)

Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.

Parameters:

ParameterTypeDescription
circleCircleAnnotationCircleAnnotation object for selecting.

visit(SquareAnnotation square)

public void visit(SquareAnnotation square)

Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.

Parameters:

ParameterTypeDescription
squareSquareAnnotationSquareAnnotation object for selecting.

visit(InkAnnotation ink)

public void visit(InkAnnotation ink)

Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.

Parameters:

ParameterTypeDescription
inkInkAnnotationInkAnnotation object for selecting.

visit(PolylineAnnotation polyline)

public void visit(PolylineAnnotation polyline)

Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.

Parameters:

ParameterTypeDescription
polylinePolylineAnnotationPolylineAnnotation object for selecting.

visit(PolygonAnnotation polygon)

public void visit(PolygonAnnotation polygon)

Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.

Parameters:

ParameterTypeDescription
polygonPolygonAnnotationPolygonAnnotation object for selecting.

visit(CaretAnnotation caret)

public void visit(CaretAnnotation caret)

Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.

Parameters:

ParameterTypeDescription
caretCaretAnnotationCaretAnnotation object for selecting.

visit(StampAnnotation stamp)

public void visit(StampAnnotation stamp)

Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.

Parameters:

ParameterTypeDescription
stampStampAnnotationStampAnnotation object for selecting.

visit(WidgetAnnotation widget)

public void visit(WidgetAnnotation widget)

Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.

Parameters:

ParameterTypeDescription
widgetWidgetAnnotationWidgetAnnotation object for selecting.

visit(WatermarkAnnotation watermark)

public void visit(WatermarkAnnotation watermark)

Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.

Parameters:

ParameterTypeDescription
watermarkWatermarkAnnotationWatermarkAnnotation for selecting.

visit(MovieAnnotation movie)

public void visit(MovieAnnotation movie)

Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.

Parameters:

ParameterTypeDescription
movieMovieAnnotationMovieAnnotation object for selecting.

visit(RichMediaAnnotation richMedia)

public void visit(RichMediaAnnotation richMedia)

Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.

Parameters:

ParameterTypeDescription
richMediaRichMediaAnnotationRichMedia annotation.

visit(ScreenAnnotation screen)

public void visit(ScreenAnnotation screen)

Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.

Parameters:

ParameterTypeDescription
screenScreenAnnotationScreenAnnotation object for selecting.

visit(PDF3DAnnotation pdf3D)

public void visit(PDF3DAnnotation pdf3D)

Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.

Parameters:

ParameterTypeDescription
pdf3DPDF3DAnnotationPDF3DAnnotation object for selecting.

visit(ColorBarAnnotation colorBar)

public final void visit(ColorBarAnnotation colorBar)

Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object.

Parameters:

ParameterTypeDescription
colorBarColorBarAnnotationPDF3DAnnotation object for selecting.