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
public class PDPolygonAppearanceHandler extends PDAbstractAppearanceHandler
Handler to generate the polygon annotations appearance.
-
-
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 PDPolygonAppearanceHandler(PDAnnotation annotation)
PDPolygonAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateAppearanceStreams()
void
generateDownAppearance()
void
generateNormalAppearance()
void
generateRolloverAppearance()
(package private) float
getLineWidth()
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
-
-
-
-
Constructor Detail
-
PDPolygonAppearanceHandler
public PDPolygonAppearanceHandler(PDAnnotation annotation)
-
PDPolygonAppearanceHandler
public PDPolygonAppearanceHandler(PDAnnotation annotation, PDDocument document)
-
-
Method Detail
-
generateAppearanceStreams
public void generateAppearanceStreams()
-
generateNormalAppearance
public void generateNormalAppearance()
-
getPathArray
private float[][] getPathArray(PDAnnotationMarkup annotation)
-
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
-
-