| Modifier and Type | Field and Description |
|---|---|
| private PDAppearanceHandler | |
| public static final String | SUB_TYPE
The type of annotation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDAnnotationCaret(COSDictionary
the PDF object to represent as a field. field)Creates a Caret annotation from a COSDictionary, expected to be a correct object definition. |
| Modifier and Type | Method and Description |
|---|---|
| public void | constructAppearances()
Overrides org. Create the appearance entry for this annotation. |
| public void | constructAppearances(PDDocument
the related document document)Overrides org. Create the appearance entry for this annotation. |
| public float[] | Returns: the differences. If the entry hasn't been set am empty array is returned.This will get the margin between the annotations "outer" rectangle defined by /Rect and the boundaries of the underlying caret. |
| public void | setCustomAppearanceHandler(PDAppearanceHandler
custom appearance handler appearanceHandler)Set a custom appearance handler for generating the annotations appearance streams. |
| public void | setRectDifferences(float
from the annotations /Rect entry difference)This will set the difference between the annotations "outer" rectangle defined by /Rect and boundaries of the underlying. |
| public void | setRectDifferences(float
left difference from the annotations /Rect entry differenceLeft, float top difference from the annotations /Rect entry differenceTop, float right difference from the annotations /Rect entry differenceRight, float bottom difference from the annotations /Rect entry differenceBottom)This will set the difference between the annotations "outer" rectangle defined by /Rect and the border. |
| customAppearanceHandler | back to summary |
|---|---|
| private PDAppearanceHandler customAppearanceHandler | |
| SUB_TYPE | back to summary |
|---|---|
| public static final String SUB_TYPE The type of annotation. | |
| PDAnnotationCaret | back to summary |
|---|---|
| public PDAnnotationCaret() | |
| PDAnnotationCaret | back to summary |
|---|---|
| public PDAnnotationCaret(COSDictionary field) Creates a Caret annotation from a COSDictionary, expected to be a correct object definition.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances() Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances(PDDocument document) Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| getRectDifferences | back to summary |
|---|---|
| public float[] getRectDifferences() This will get the margin between the annotations "outer" rectangle defined by /Rect and the boundaries of the underlying caret.
| |
| setCustomAppearanceHandler | back to summary |
|---|---|
| public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler) Set a custom appearance handler for generating the annotations appearance streams.
| |
| setRectDifferences | back to summary |
|---|---|
| public void setRectDifferences(float difference) This will set the difference between the annotations "outer" rectangle defined by /Rect and boundaries of the underlying. This will set an equal difference for all sides
| |
| setRectDifferences | back to summary |
|---|---|
| public void setRectDifferences(float differenceLeft, float differenceTop, float differenceRight, float differenceBottom) This will set the difference between the annotations "outer" rectangle defined by /Rect and the border.
| |