| Modifier and Type | Field and Description |
|---|---|
| protected static final Set | ANGLED_STYLES
Line ending styles where the shape changes its angle, e.g. arrows. |
| private final PDAnnotation | |
| pack-priv static final double | |
| private PDFont | |
| protected final PDDocument | |
| protected static final Set | INTERIOR_COLOR_STYLES
Line ending styles where there is an interior color. |
| protected static final Set | SHORT_STYLES
Line ending styles where the line has to be drawn shorter (minus line width). |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv PDRectangle | Returns: the padded rectangle.the rectangle. rectangle, float[] the differences to apply. differences)Get a rectangle enlarged by the differences. |
| pack-priv PDRectangle | Returns: the padded rectangle.the rectangle. rectangle, float[] the differences to apply. differences)Get a rectangle with the differences applied to each side. |
| private static Set | |
| protected COSStream | |
| private static Set | |
| private static Set | |
| pack-priv void | drawArrow(PDAppearanceContentStream
Content stream cs, float x, float y, float The arm length. Positive goes to the right, negative goes to the left. len)Add the two arms of a horizontal arrow. |
| pack-priv void | drawCircle(PDAppearanceContentStream
Content stream cs, float x, float y, float Radius r)Add a circle shape to the path in clockwise direction. |
| pack-priv void | drawCircle2(PDAppearanceContentStream
Content stream cs, float x, float y, float Radius r)Add a circle shape to the path in counterclockwise direction. |
| pack-priv void | drawDiamond(PDAppearanceContentStream
Content stream cs, float x, float y, float Radius (to a corner) r)Add a square diamond shape (corner on top) to the path. |
| pack-priv void | drawStyle(String style, final PDAppearanceContentStream cs, float x, float y, float width, boolean hasStroke, boolean hasBackground, boolean
false if left, true if right of an imagined horizontal line (important for
arrows). ending)Draw a line ending style. |
| pack-priv PDAnnotation | |
| pack-priv PDAppearanceDictionary | Returns: the annotations appearance dictionaryGet the annotations appearance dictionary. |
| private PDAppearanceContentStream | |
| pack-priv PDColor | |
| protected PDFont | |
| pack-priv PDAppearanceEntry | Returns: the appearance entry representing the down appearance.Get the annotations down appearance. |
| private PDAppearanceEntry | Returns: the appearance entry representing the normal appearance.Get the annotations normal appearance. |
| pack-priv PDAppearanceContentStream | Returns: the appearance entry representing the normal appearance.Get the annotations normal appearance content stream. |
| pack-priv PDAppearanceContentStream | Returns: the appearance entry representing the normal appearance.whether the content stream is to be compressed. Set this to true when
creating long content streams. compress)Get the annotations normal appearance content stream. |
| pack-priv PDRectangle | Returns: the padded rectangle.the rectangle. rectangle, float the padding to apply. padding)Get a padded rectangle. |
| pack-priv PDRectangle | |
| pack-priv PDAppearanceEntry | Returns: the appearance entry representing the rollover appearance.Get the annotations rollover appearance. |
| pack-priv PDRectangle | |
| pack-priv void | |
| private void |
| ANGLED_STYLES | back to summary |
|---|---|
| protected static final Set<String> ANGLED_STYLES Line ending styles where the shape changes its angle, e.g. arrows. | |
| annotation | back to summary |
|---|---|
| private final PDAnnotation annotation | |
| ARROW_ANGLE | back to summary |
|---|---|
| pack-priv static final double ARROW_ANGLE | |
| defaultFont | back to summary |
|---|---|
| private PDFont defaultFont | |
| document | back to summary |
|---|---|
| protected final PDDocument document | |
| INTERIOR_COLOR_STYLES | back to summary |
|---|---|
| protected static final Set<String> INTERIOR_COLOR_STYLES Line ending styles where there is an interior color. | |
| SHORT_STYLES | back to summary |
|---|---|
| protected static final Set<String> SHORT_STYLES Line ending styles where the line has to be drawn shorter (minus line width). | |
| PDAbstractAppearanceHandler | back to summary |
|---|---|
| public PDAbstractAppearanceHandler(PDAnnotation annotation) | |
| PDAbstractAppearanceHandler | back to summary |
|---|---|
| public PDAbstractAppearanceHandler(PDAnnotation annotation, PDDocument document) | |
| addRectDifferences | back to summary |
|---|---|
| pack-priv PDRectangle addRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle enlarged by the differences. Creates a new rectangle with differences added to each side. If there are no valid differences, then the original rectangle is returned.
| |
| applyRectDifferences | back to summary |
|---|---|
| pack-priv PDRectangle applyRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle with the differences applied to each side. Creates a new rectangle with differences added to each side. If there are no valid differences, then the original rectangle is returned.
| |
| createAngledStyles | back to summary |
|---|---|
| private static Set | |
| createCOSStream | back to summary |
|---|---|
| protected COSStream createCOSStream() | |
| createInteriorColorStyles | back to summary |
|---|---|
| private static Set | |
| createShortStyles | back to summary |
|---|---|
| private static Set | |
| drawArrow | back to summary |
|---|---|
| pack-priv void drawArrow(PDAppearanceContentStream cs, float x, float y, float len) throws IOException Add the two arms of a horizontal arrow.
| |
| drawCircle | back to summary |
|---|---|
| pack-priv void drawCircle(PDAppearanceContentStream cs, float x, float y, float r) throws IOException Add a circle shape to the path in clockwise direction.
| |
| drawCircle2 | back to summary |
|---|---|
| pack-priv void drawCircle2(PDAppearanceContentStream cs, float x, float y, float r) throws IOException Add a circle shape to the path in counterclockwise direction. You'll need this e.g. when drawing a doughnut shape. See "Nonzero Winding Number Rule" for more information.
| |
| drawDiamond | back to summary |
|---|---|
| pack-priv void drawDiamond(PDAppearanceContentStream cs, float x, float y, float r) throws IOException Add a square diamond shape (corner on top) to the path.
| |
| drawStyle | back to summary |
|---|---|
| pack-priv void drawStyle(String style, final PDAppearanceContentStream cs, float x, float y, float width, boolean hasStroke, boolean hasBackground, boolean ending) throws IOException Draw a line ending style.
| |
| getAnnotation | back to summary |
|---|---|
| pack-priv PDAnnotation getAnnotation() | |
| getAppearance | back to summary |
|---|---|
| pack-priv PDAppearanceDictionary getAppearance() Get the annotations appearance dictionary. This will get the annotations appearance dictionary. If this is not existent an empty appearance dictionary will be created.
| |
| getAppearanceEntryAsContentStream | back to summary |
|---|---|
| private PDAppearanceContentStream getAppearanceEntryAsContentStream(PDAppearanceEntry appearanceEntry, boolean compress) throws IOException | |
| getColor | back to summary |
|---|---|
| pack-priv PDColor getColor() | |
| getDefaultFont | back to summary |
|---|---|
| protected PDFont getDefaultFont() | |
| getDownAppearance | back to summary |
|---|---|
| pack-priv PDAppearanceEntry getDownAppearance() Get the annotations down appearance. This will get the annotations down appearance. If this is not existent an empty appearance entry will be created.
| |
| getNormalAppearance | back to summary |
|---|---|
| private PDAppearanceEntry getNormalAppearance() Get the annotations normal appearance. This will get the annotations normal appearance. If this is not existent an empty appearance entry will be created.
| |
| getNormalAppearanceAsContentStream | back to summary |
|---|---|
| pack-priv PDAppearanceContentStream getNormalAppearanceAsContentStream() throws IOException Get the annotations normal appearance content stream. This will get the annotations normal appearance content stream, to 'draw' to. It will be uncompressed.
| |
| getNormalAppearanceAsContentStream | back to summary |
|---|---|
| pack-priv PDAppearanceContentStream getNormalAppearanceAsContentStream(boolean compress) throws IOException Get the annotations normal appearance content stream. This will get the annotations normal appearance content stream, to 'draw' to.
| |
| getPaddedRectangle | back to summary |
|---|---|
| pack-priv PDRectangle getPaddedRectangle(PDRectangle rectangle, float padding) Get a padded rectangle. Creates a new rectangle with padding applied to each side. .
| |
| getRectangle | back to summary |
|---|---|
| pack-priv PDRectangle getRectangle() | |
| getRolloverAppearance | back to summary |
|---|---|
| pack-priv PDAppearanceEntry getRolloverAppearance() Get the annotations rollover appearance. This will get the annotations rollover appearance. If this is not existent an empty appearance entry will be created.
| |
| handleBorderBox | back to summary |
|---|---|
| pack-priv PDRectangle handleBorderBox(PDAnnotationSquareCircle annotation, float lineWidth) | |
| setOpacity | back to summary |
|---|---|
| pack-priv void setOpacity(PDAppearanceContentStream contentStream, float opacity) throws IOException | |
| setTransformationMatrix | back to summary |
|---|---|
| private void setTransformationMatrix(PDAppearanceStream appearanceStream) | |