Class PDTextAppearanceHandler
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDTextAppearanceHandler
- All Implemented Interfaces:
PDAppearanceHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.logging.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
ConstructorsConstructorDescriptionPDTextAppearanceHandler
(PDAnnotation annotation) PDTextAppearanceHandler
(PDAnnotation annotation, PDDocument document) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPath
(PDAppearanceContentStream contentStream, GeneralPath path) private PDRectangle
adjustRectAndBBox
(PDAnnotationText annotation, float width, float height) private void
drawCheck
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawCircles
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawComment
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawCross
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawCrossHairs
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawHelp
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawInsert
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawKey
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawNewParagraph
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawNote
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawParagraph
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawRightArrow
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawRightPointer
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawStar
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawUpArrow
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) private void
drawUpLeftArrow
(PDAnnotationText annotation, PDAppearanceContentStream contentStream) void
void
void
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
addRectDifferences, applyRectDifferences, createCOSStream, drawArrow, drawCircle, drawCircle2, drawDiamond, drawStyle, generateAppearanceStreams, getAnnotation, getAppearance, getColor, getDownAppearance, getNormalAppearanceAsContentStream, getNormalAppearanceAsContentStream, getPaddedRectangle, getRectangle, getRolloverAppearance, handleBorderBox, setOpacity
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
SUPPORTED_NAMES
-
-
Constructor Details
-
PDTextAppearanceHandler
-
PDTextAppearanceHandler
-
-
Method Details
-
generateNormalAppearance
public void generateNormalAppearance() -
adjustRectAndBBox
-
drawNote
private void drawNote(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawCircles
private void drawCircles(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawInsert
private void drawInsert(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawCross
private void drawCross(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawHelp
private void drawHelp(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawParagraph
private void drawParagraph(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawNewParagraph
private void drawNewParagraph(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawStar
private void drawStar(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawCheck
private void drawCheck(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawRightPointer
private void drawRightPointer(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawCrossHairs
private void drawCrossHairs(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawUpArrow
private void drawUpArrow(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawUpLeftArrow
private void drawUpLeftArrow(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawRightArrow
private void drawRightArrow(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawComment
private void drawComment(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
drawKey
private void drawKey(PDAnnotationText annotation, PDAppearanceContentStream contentStream) throws IOException - Throws:
IOException
-
addPath
- Throws:
IOException
-
generateRolloverAppearance
public void generateRolloverAppearance() -
generateDownAppearance
public void generateDownAppearance()
-