Class PDAbstractAppearanceHandler
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
-
- All Implemented Interfaces:
PDAppearanceHandler
- Direct Known Subclasses:
PDCaretAppearanceHandler
,PDCircleAppearanceHandler
,PDFreeTextAppearanceHandler
,PDHighlightAppearanceHandler
,PDInkAppearanceHandler
,PDLineAppearanceHandler
,PDLinkAppearanceHandler
,PDPolygonAppearanceHandler
,PDPolylineAppearanceHandler
,PDSoundAppearanceHandler
,PDSquareAppearanceHandler
,PDSquigglyAppearanceHandler
,PDStrikeoutAppearanceHandler
,PDTextAppearanceHandler
,PDUnderlineAppearanceHandler
public abstract class PDAbstractAppearanceHandler extends java.lang.Object implements PDAppearanceHandler
Generic handler to generate the fields appearance. Individual handler will provide specific implementations for different field types.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<java.lang.String>
ANGLED_STYLES
Line ending styles where the shape changes its angle, e.g.protected PDDocument
document
protected static java.util.Set<java.lang.String>
INTERIOR_COLOR_STYLES
Line ending styles where there is an interior color.protected static java.util.Set<java.lang.String>
SHORT_STYLES
Line ending styles where the line has to be drawn shorter (minus line width).
-
Constructor Summary
Constructors Constructor Description PDAbstractAppearanceHandler(PDAnnotation annotation)
PDAbstractAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected COSStream
createCOSStream()
abstract void
generateDownAppearance()
abstract void
generateNormalAppearance()
abstract void
generateRolloverAppearance()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler
generateAppearanceStreams
-
-
-
-
Field Detail
-
document
protected PDDocument document
-
SHORT_STYLES
protected static final java.util.Set<java.lang.String> SHORT_STYLES
Line ending styles where the line has to be drawn shorter (minus line width).
-
INTERIOR_COLOR_STYLES
protected static final java.util.Set<java.lang.String> INTERIOR_COLOR_STYLES
Line ending styles where there is an interior color.
-
ANGLED_STYLES
protected static final java.util.Set<java.lang.String> ANGLED_STYLES
Line ending styles where the shape changes its angle, e.g. arrows.
-
-
Constructor Detail
-
PDAbstractAppearanceHandler
public PDAbstractAppearanceHandler(PDAnnotation annotation)
-
PDAbstractAppearanceHandler
public PDAbstractAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
-
Method Detail
-
generateNormalAppearance
public abstract void generateNormalAppearance()
- Specified by:
generateNormalAppearance
in interfacePDAppearanceHandler
-
generateRolloverAppearance
public abstract void generateRolloverAppearance()
- Specified by:
generateRolloverAppearance
in interfacePDAppearanceHandler
-
generateDownAppearance
public abstract void generateDownAppearance()
- Specified by:
generateDownAppearance
in interfacePDAppearanceHandler
-
createCOSStream
protected COSStream createCOSStream()
-
-