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
Constructor | Description |
---|---|
AnnotationSelector() | Initializes new instance of the AnnotationSelector class. |
AnnotationSelector(Annotation annotation) | Initializes new AnnotationSelector object. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
annotation | Annotation | Annotation 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:
Parameter | Type | Description |
---|---|---|
link | LinkAnnotation | LinkAnnotation object for selecting. |
visit(FileAttachmentAnnotation attachment)
public void visit(FileAttachmentAnnotation attachment)
Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
attachment | FileAttachmentAnnotation | FileAttachmentAnnotation object for selecting. |
visit(TextAnnotation text)
public void visit(TextAnnotation text)
Select text annotation if AnnotationSelector was initialized with TextAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
text | TextAnnotation | TextAnnotation object for selecting. |
visit(RedactionAnnotation redact)
public void visit(RedactionAnnotation redact)
Select redact annotation if AnnotationSelector was initialized with RedactAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
redact | RedactionAnnotation | RedactAnnotation object for selecting. |
visit(FreeTextAnnotation freetext)
public void visit(FreeTextAnnotation freetext)
Select freetext annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
freetext | FreeTextAnnotation | FreeTextAnnotation object for selecting. |
visit(HighlightAnnotation highlight)
public void visit(HighlightAnnotation highlight)
Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
highlight | HighlightAnnotation | HighlightAnnotation object for selecting. |
visit(UnderlineAnnotation underline)
public void visit(UnderlineAnnotation underline)
Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
underline | UnderlineAnnotation | UnderlineAnnotation object for selecting. |
visit(StrikeOutAnnotation strikeOut)
public void visit(StrikeOutAnnotation strikeOut)
Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
strikeOut | StrikeOutAnnotation | StrikeOutAnnotation object for selecting. |
visit(SquigglyAnnotation squiggly)
public void visit(SquigglyAnnotation squiggly)
Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
squiggly | SquigglyAnnotation | SquigglyAnnotation object for selecting. |
visit(PopupAnnotation popup)
public void visit(PopupAnnotation popup)
Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
popup | PopupAnnotation | PopupAnnotation object for selecting. |
visit(LineAnnotation line)
public void visit(LineAnnotation line)
Select line annotation if AnnotationSelector was initialized with LineAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
line | LineAnnotation | LineAnnotation object for selecting. |
visit(CircleAnnotation circle)
public void visit(CircleAnnotation circle)
Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
circle | CircleAnnotation | CircleAnnotation object for selecting. |
visit(SquareAnnotation square)
public void visit(SquareAnnotation square)
Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
square | SquareAnnotation | SquareAnnotation object for selecting. |
visit(InkAnnotation ink)
public void visit(InkAnnotation ink)
Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
ink | InkAnnotation | InkAnnotation object for selecting. |
visit(PolylineAnnotation polyline)
public void visit(PolylineAnnotation polyline)
Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
polyline | PolylineAnnotation | PolylineAnnotation object for selecting. |
visit(PolygonAnnotation polygon)
public void visit(PolygonAnnotation polygon)
Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
polygon | PolygonAnnotation | PolygonAnnotation object for selecting. |
visit(CaretAnnotation caret)
public void visit(CaretAnnotation caret)
Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
caret | CaretAnnotation | CaretAnnotation object for selecting. |
visit(StampAnnotation stamp)
public void visit(StampAnnotation stamp)
Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
stamp | StampAnnotation | StampAnnotation object for selecting. |
visit(WidgetAnnotation widget)
public void visit(WidgetAnnotation widget)
Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
widget | WidgetAnnotation | WidgetAnnotation object for selecting. |
visit(WatermarkAnnotation watermark)
public void visit(WatermarkAnnotation watermark)
Select watermark annotation if AnnotationSelector was initialized with WatermarkAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
watermark | WatermarkAnnotation | WatermarkAnnotation for selecting. |
visit(MovieAnnotation movie)
public void visit(MovieAnnotation movie)
Select movie annotation if AnnotationSelector was initialized with MovieAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
movie | MovieAnnotation | MovieAnnotation object for selecting. |
visit(RichMediaAnnotation richMedia)
public void visit(RichMediaAnnotation richMedia)
Select movie annotation if AnnotationSelector was initialized with RichMedia annotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
richMedia | RichMediaAnnotation | RichMedia annotation. |
visit(ScreenAnnotation screen)
public void visit(ScreenAnnotation screen)
Select screen annotation if AnnotationSelector was initialized with ScreenAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
screen | ScreenAnnotation | ScreenAnnotation object for selecting. |
visit(PDF3DAnnotation pdf3D)
public void visit(PDF3DAnnotation pdf3D)
Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.
Parameters:
Parameter | Type | Description |
---|---|---|
pdf3D | PDF3DAnnotation | PDF3DAnnotation object for selecting. |
visit(ColorBarAnnotation colorBar)
public final void visit(ColorBarAnnotation colorBar)
Select ColorBar annotation if AnnotationSelector was initialized with ColorBar object.
Parameters:
Parameter | Type | Description |
---|---|---|
colorBar | ColorBarAnnotation | PDF3DAnnotation object for selecting. |