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.
- Author:
- Bernd Rosstauscher
-
Nested Class Summary
Nested classes/interfaces inherited from class PDFAnnotation
PDFAnnotation.Flags -
Field Summary
Fields inherited from class PDFAnnotation
GOTO, GOTOE, GOTOR, URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of pdf commands for this annotationbooleanprotected voidParses the appearance stream into PDF commandsprotected voidParses the border style dictionaryvoidMethods inherited from class PDFAnnotation
createAnnotation, getAnnotationName, getAppearanceState, getContents, getFlags, getModified, getPdfObj, getRect, getScalingTransformation, getSubType, getType, isFlagSet, parseRect, toString
-
Constructor Details
-
MarkupAnnotation
Constructor- Parameters:
annotObject-- Throws:
IOException
-
-
Method Details
-
parseAP
Parses the appearance stream into PDF commands- Parameters:
dictRef-- Throws:
IOException
-
parseBorderStyleDictionary
Parses the border style dictionary- Parameters:
bs-- Throws:
IOException
-
getBorderStyle
- Returns:
- the border style or null if not specified.
-
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
-