public final class AnnotationSelector extends Object implements IAnnotationVisitor
This class is used for selecting annotations using Visitor template idea.
| Constructor and Description |
|---|
AnnotationSelector()
Initializes new instance of the AnnotationSelector class.
|
AnnotationSelector(Annotation annotation)
Initializes new
AnnotationSelector object. |
| Modifier and Type | Method and Description |
|---|---|
List<Annotation> |
getSelected()
The list of selected objects.
|
void |
visit(BleedMarkAnnotation bleedMark)
Selects the
bleedMark if the AnnotationSelector was initialized with a
BleedMarkAnnotation object. |
void |
visit(CaretAnnotation caret)
Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.
|
void |
visit(CircleAnnotation circle)
Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.
|
void |
visit(ColorBarAnnotation colorBar)
Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object.
|
void |
visit(FileAttachmentAnnotation attachment)
Select attachment annotation if AnnotationSelector was initialized with
FileAttachmentAnnotation object.
|
void |
visit(FreeTextAnnotation freetext)
Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation
object.
|
void |
visit(HighlightAnnotation highlight)
Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation
object.
|
void |
visit(InkAnnotation ink)
Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.
|
void |
visit(LineAnnotation line)
Select line annotation if AnnotationSelector was initialized with LineAnnotation object.
|
void |
visit(LinkAnnotation link)
Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.
|
void |
visit(MovieAnnotation movie)
Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.
|
void |
visit(PageInformationAnnotation pageInformation)
Selects the
pageInformation if the AnnotationSelector was initialized with a
PageInformationAnnotation object. |
void |
visit(PDF3DAnnotation pdf3D)
Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.
|
void |
visit(PolygonAnnotation polygon)
Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation
object.
|
void |
visit(PolylineAnnotation polyline)
Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation
object.
|
void |
visit(PopupAnnotation popup)
Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.
|
void |
visit(RedactionAnnotation redact)
Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.
|
void |
visit(RegistrationMarkAnnotation registrationMark)
Selects the
registrationMark if the AnnotationSelector was initialized with a
RegistrationMarkAnnotation object. |
void |
visit(RichMediaAnnotation richMedia)
Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.
|
void |
visit(ScreenAnnotation screen)
Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.
|
void |
visit(SquareAnnotation square)
Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.
|
void |
visit(SquigglyAnnotation squiggly)
Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation
object.
|
void |
visit(StampAnnotation stamp)
Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.
|
void |
visit(StrikeOutAnnotation strikeOut)
Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation
object.
|
void |
visit(TextAnnotation text)
Select text annotation if AnnotationSelector was initialized with TextAnnotation object.
|
void |
visit(TrimMarkAnnotation trimMark)
Selects the
trimMark if the AnnotationSelector was initialized with a TrimMarkAnnotation object. |
void |
visit(UnderlineAnnotation underline)
Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation
object.
|
void |
visit(WatermarkAnnotation watermark)
Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.
|
void |
visit(WidgetAnnotation widget)
Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.
|
public AnnotationSelector()
Initializes new instance of the AnnotationSelector class.
public AnnotationSelector(Annotation annotation)
Initializes new AnnotationSelector object.
annotation - Annotation to be selected. This object only describes some characteristics we want found
annotations to have, e.g. the type of annotation.public List<Annotation> getSelected()
The list of selected objects.
public void visit(LinkAnnotation link)
Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.
visit in interface IAnnotationVisitorlink - LinkAnnotation object for selecting.public void visit(FileAttachmentAnnotation attachment)
Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.
visit in interface IAnnotationVisitorattachment - FileAttachmentAnnotation object for selecting.public void visit(TextAnnotation text)
Select text annotation if AnnotationSelector was initialized with TextAnnotation object.
visit in interface IAnnotationVisitortext - TextAnnotation object for selecting.public void visit(RedactionAnnotation redact)
Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.
redact - RedactAnnotation object for selecting.public void visit(FreeTextAnnotation freetext)
Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
visit in interface IAnnotationVisitorfreetext - FreeTextAnnotation object for selecting.public void visit(HighlightAnnotation highlight)
Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
visit in interface IAnnotationVisitorhighlight - HighlightAnnotation object for selecting.public void visit(UnderlineAnnotation underline)
Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.
visit in interface IAnnotationVisitorunderline - UnderlineAnnotation object for selecting.public void visit(StrikeOutAnnotation strikeOut)
Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.
visit in interface IAnnotationVisitorstrikeOut - StrikeOutAnnotation object for selecting.public void visit(SquigglyAnnotation squiggly)
Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.
visit in interface IAnnotationVisitorsquiggly - SquigglyAnnotation object for selecting.public void visit(PopupAnnotation popup)
Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.
visit in interface IAnnotationVisitorpopup - PopupAnnotation object for selecting.public void visit(LineAnnotation line)
Select line annotation if AnnotationSelector was initialized with LineAnnotation object.
visit in interface IAnnotationVisitorline - LineAnnotation object for selecting.public void visit(CircleAnnotation circle)
Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.
visit in interface IAnnotationVisitorcircle - CircleAnnotation object for selecting.public void visit(SquareAnnotation square)
Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.
visit in interface IAnnotationVisitorsquare - SquareAnnotation object for selecting.public void visit(InkAnnotation ink)
Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.
visit in interface IAnnotationVisitorink - InkAnnotation object for selecting.public void visit(PolylineAnnotation polyline)
Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.
visit in interface IAnnotationVisitorpolyline - PolylineAnnotation object for selecting.public void visit(PolygonAnnotation polygon)
Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.
visit in interface IAnnotationVisitorpolygon - PolygonAnnotation object for selecting.public void visit(CaretAnnotation caret)
Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.
visit in interface IAnnotationVisitorcaret - CaretAnnotation object for selecting.public void visit(StampAnnotation stamp)
Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.
visit in interface IAnnotationVisitorstamp - StampAnnotation object for selecting.public void visit(WidgetAnnotation widget)
Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.
visit in interface IAnnotationVisitorwidget - WidgetAnnotation object for selecting.public void visit(WatermarkAnnotation watermark)
Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.
watermark - WatermarkAnnotation for selecting.public void visit(MovieAnnotation movie)
Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.
visit in interface IAnnotationVisitormovie - MovieAnnotation object for selecting.public void visit(RichMediaAnnotation richMedia)
Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.
richMedia - RichMedia annotation.public void visit(ScreenAnnotation screen)
Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.
visit in interface IAnnotationVisitorscreen - ScreenAnnotation object for selecting.public void visit(PDF3DAnnotation pdf3D)
Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.
pdf3D - PDF3DAnnotation object for selecting.public final void visit(ColorBarAnnotation colorBar)
Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object.
colorBar - PDF3DAnnotation object for selecting.public final void visit(TrimMarkAnnotation trimMark)
Selects the trimMark if the AnnotationSelector was initialized with a TrimMarkAnnotation object.
visit in interface IAnnotationVisitortrimMark - The TrimMarkAnnotation object for selection.public final void visit(BleedMarkAnnotation bleedMark)
Selects the bleedMark if the AnnotationSelector was initialized with a
BleedMarkAnnotation object.
visit in interface IAnnotationVisitorbleedMark - The BleedMarkAnnotation object for selection.public final void visit(RegistrationMarkAnnotation registrationMark)
Selects the registrationMark if the AnnotationSelector was initialized with a
RegistrationMarkAnnotation object.
visit in interface IAnnotationVisitorregistrationMark - The RegistrationMarkAnnotation object for selection.public final void visit(PageInformationAnnotation pageInformation)
Selects the pageInformation if the AnnotationSelector was initialized with a
PageInformationAnnotation object.
visit in interface IAnnotationVisitorpageInformation - The PageInformationAnnotation object for selection.Copyright © 2025 Aspose. All Rights Reserved.