Class PDPolygonAppearanceHandler
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDPolygonAppearanceHandler
- All Implemented Interfaces:
PDAppearanceHandler
Handler to generate the polygon annotations appearance.
-
Field Summary
FieldsFields inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
ANGLED_STYLES, ARROW_ANGLE, document, INTERIOR_COLOR_STYLES, SHORT_STYLES
-
Constructor Summary
ConstructorsConstructorDescriptionPDPolygonAppearanceHandler
(PDAnnotation annotation) PDPolygonAppearanceHandler
(PDAnnotation annotation, PDDocument document) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
(package private) float
Get the line with of the border.private float[][]
getPathArray
(PDAnnotationMarkup annotation) 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
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
PDPolygonAppearanceHandler
-
PDPolygonAppearanceHandler
-
-
Method Details
-
generateAppearanceStreams
public void generateAppearanceStreams() -
generateNormalAppearance
public void generateNormalAppearance() -
getPathArray
-
generateRolloverAppearance
public void generateRolloverAppearance() -
generateDownAppearance
public void generateDownAppearance() -
getLineWidth
float getLineWidth()Get the line with of the border. Get the width of the line used to draw a border around the annotation. This may either be specified by the annotation dictionaries Border setting or by the W entry in the BS border style dictionary. If both are missing the default width is 1.- Returns:
- the line width
-