Class MarkupAnnotation
java.lang.Object
org.openpdf.renderer.annotation.PDFAnnotation
org.openpdf.renderer.annotation.MarkupAnnotation
- Direct Known Subclasses:
CircleAnnotation, FreetextAnnotation, SquareAnnotation, StampAnnotation, TextMarkupAnnotation
PDF annotation describing a all kind of "markup" annotations which are visible
in the PDF.
-
Nested Class Summary
Nested classes/interfaces inherited from class PDFAnnotation
PDFAnnotation.Flags -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate AnnotationBorderStyleprivate PDFObjectprivate PDFObjectprivate PDFAnnotationprivate StringFields inherited from class PDFAnnotation
GOTO, GOTOE, GOTOR, URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of pdf commands for this annotationprivate AffineTransformTransform to the position of the stamp annotationbooleanprotected voidParses the appearance stream into PDF commandsprotected voidParses the border style dictionaryprivate voidParses the mouse On or Off appearance stream depending on which one is currently active.private voidparsePopupAnnotation(PDFObject popupObj) Parses the popup annotationvoidMethods inherited from class PDFAnnotation
createAnnotation, getAnnotationName, getAppearanceState, getContents, getFlags, getModified, getPdfObj, getRect, getScalingTransformation, getSubType, getType, isFlagSet, parseRect, toString
-
Field Details
-
onAppearance
-
offAppearance
-
onCmd
-
offCmd
-
appearanceStateOn
private boolean appearanceStateOn -
borderStyle
-
textLabel
-
popupAnnotation
-
-
Constructor Details
-
MarkupAnnotation
Constructor- Parameters:
annotObject-- Throws:
IOException
-
-
Method Details
-
parseAP
Parses the appearance stream into PDF commands- Parameters:
dictRef-- Throws:
IOException
-
parseOnOffCommands
Parses the mouse On or Off appearance stream depending on which one is currently active.- Throws:
IOException
-
parseBorderStyleDictionary
Parses the border style dictionary- Parameters:
bs-- Throws:
IOException
-
getBorderStyle
- Returns:
- the border style or null if not specified.
-
parsePopupAnnotation
Parses the popup annotation- Parameters:
popupObj-- Throws:
IOException
-
parseIntoPdfCommands
- Throws:
IOException
-
getPositionTransformation
Transform to the position of the stamp annotation- Returns:
-
getOnAppearance
- Returns:
- the onAppearance
-
getOffAppearance
- Returns:
- the offAppearance
-
isAppearanceStateOn
public boolean isAppearanceStateOn()- Returns:
- the appearanceStateOn
-
switchAppearance
public void switchAppearance() -
getCurrentAppearance
-
getCurrentCommand
-
getPageCommandsForAnnotation
Description copied from class:PDFAnnotationGet list of pdf commands for this annotation- Overrides:
getPageCommandsForAnnotationin classPDFAnnotation- Returns:
-
getPopupAnnotation
- Returns:
- the popupAnnotation
-
getTextLabel
-