public final class AnnotationSelector extends Selector implements IAnnotationVisitor
This class is used for selecting annotations using Visitor template idea.
Constructor and Description |
---|
AnnotationSelector(Annotation annotation)
Initializes new
AnnotationSelector object. |
Modifier and Type | Method and Description |
---|---|
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(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(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(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(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.
|
getSelected
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 void visit(LinkAnnotation link)
Select link annotation if AnnotationSelector was initialized with LinkAnnotation object.
visit
in interface IAnnotationVisitor
link
- LinkAnnotation object for selecting.public void visit(FileAttachmentAnnotation attachment)
Select attachment annotation if AnnotationSelector was initialized with FileAttachmentAnnotation object.
visit
in interface IAnnotationVisitor
attachment
- FileAttachmentAnnotation object for selecting.public void visit(TextAnnotation text)
Select text annotation if AnnotationSelector was initialized with TextAnnotation object.
visit
in interface IAnnotationVisitor
text
- 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 IAnnotationVisitor
freetext
- FreeTextAnnotation object for selecting.public void visit(HighlightAnnotation highlight)
Select attachment annotation if AnnotationSelector was initialized with FreeTextAnnotation object.
visit
in interface IAnnotationVisitor
highlight
- HighlightAnnotation object for selecting.public void visit(UnderlineAnnotation underline)
Select underline annotation if AnnotationSelector was initialized with UnderlineAnnotation object.
visit
in interface IAnnotationVisitor
underline
- UnderlineAnnotation object for selecting.public void visit(StrikeOutAnnotation strikeOut)
Select strikeOut annotation if AnnotationSelector was initialized with StrikeOutAnnotation object.
visit
in interface IAnnotationVisitor
strikeOut
- StrikeOutAnnotation object for selecting.public void visit(SquigglyAnnotation squiggly)
Select squiggly annotation if AnnotationSelector was initialized with SquigglyAnnotation object.
visit
in interface IAnnotationVisitor
squiggly
- SquigglyAnnotation object for selecting.public void visit(PopupAnnotation popup)
Select popup annotation if AnnotationSelector was initialized with PopupAnnotation object.
visit
in interface IAnnotationVisitor
popup
- PopupAnnotation object for selecting.public void visit(LineAnnotation line)
Select line annotation if AnnotationSelector was initialized with LineAnnotation object.
visit
in interface IAnnotationVisitor
line
- LineAnnotation object for selecting.public void visit(CircleAnnotation circle)
Select circle annotation if AnnotationSelector was initialized with CircleAnnotation object.
visit
in interface IAnnotationVisitor
circle
- CircleAnnotation object for selecting.public void visit(SquareAnnotation square)
Select square annotation if AnnotationSelector was initialized with SquareAnnotation object.
visit
in interface IAnnotationVisitor
square
- SquareAnnotation object for selecting.public void visit(InkAnnotation ink)
Select ink annotation if AnnotationSelector was initialized with InkAnnotation object.
visit
in interface IAnnotationVisitor
ink
- InkAnnotation object for selecting.public void visit(PolylineAnnotation polyline)
Select polyline annotation if AnnotationSelector was initialized with PolylineAnnotation object.
visit
in interface IAnnotationVisitor
polyline
- PolylineAnnotation object for selecting.public void visit(PolygonAnnotation polygon)
Select polygon annotation if AnnotationSelector was initialized with PolygonAnnotation object.
visit
in interface IAnnotationVisitor
polygon
- PolygonAnnotation object for selecting.public void visit(CaretAnnotation caret)
Select caret annotation if AnnotationSelector was initialized with CaretAnnotation object.
visit
in interface IAnnotationVisitor
caret
- CaretAnnotation object for selecting.public void visit(StampAnnotation stamp)
Select stamp annotation if AnnotationSelector was initialized with StampAnnotation object.
visit
in interface IAnnotationVisitor
stamp
- StampAnnotation object for selecting.public void visit(WidgetAnnotation widget)
Select widget annotation if AnnotationSelector was initialized with WidgetAnnotation object.
visit
in interface IAnnotationVisitor
widget
- 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 IAnnotationVisitor
movie
- 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 IAnnotationVisitor
screen
- ScreenAnnotation object for selecting.public void visit(PDF3DAnnotation pdf3D)
Select PDF3D annotation if AnnotationSelector was initialized with PDF3DAnnotation object.
pdf3D
- PDF3DAnnotation object for selecting.Copyright © 2018 Aspose. All Rights Reserved.