Class PDFileAttachmentAppearanceHandler
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
-
- org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFileAttachmentAppearanceHandler
-
- All Implemented Interfaces:
PDAppearanceHandler
public class PDFileAttachmentAppearanceHandler extends PDAbstractAppearanceHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
-
Fields inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
ANGLED_STYLES, ARROW_ANGLE, document, INTERIOR_COLOR_STYLES, SHORT_STYLES
-
-
Constructor Summary
Constructors Constructor Description PDFileAttachmentAppearanceHandler(PDAnnotation annotation)
PDFileAttachmentAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
drawPaperclip(PDAppearanceContentStream contentStream)
Draw a paperclip.void
generateAppearanceStreams()
void
generateDownAppearance()
void
generateNormalAppearance()
void
generateRolloverAppearance()
-
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
addRectDifferences, applyRectDifferences, createCOSStream, drawArrow, drawCircle, drawCircle2, drawDiamond, drawStyle, getAnnotation, getAppearance, getColor, getDownAppearance, getNormalAppearanceAsContentStream, getNormalAppearanceAsContentStream, getPaddedRectangle, getRectangle, getRolloverAppearance, handleBorderBox, setOpacity
-
-
-
-
Constructor Detail
-
PDFileAttachmentAppearanceHandler
public PDFileAttachmentAppearanceHandler(PDAnnotation annotation)
-
PDFileAttachmentAppearanceHandler
public PDFileAttachmentAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
-
Method Detail
-
generateAppearanceStreams
public void generateAppearanceStreams()
-
generateNormalAppearance
public void generateNormalAppearance()
-
drawPaperclip
private void drawPaperclip(PDAppearanceContentStream contentStream) throws java.io.IOException
Draw a paperclip. Shape is from Parameters:contentStream
-- Throws:
java.io.IOException
-
generateRolloverAppearance
public void generateRolloverAppearance()
-
generateDownAppearance
public void generateDownAppearance()
-
-