| Modifier and Type | Field and Description |
|---|---|
| private PDAppearanceHandler | |
| public static final String | IT_LINE_ARROW
Constant for annotation intent of Arrow. |
| public static final String | IT_LINE_DIMENSION
Constant for annotation intent of a dimension line. |
| public static final String | LE_BUTT
Constant for a butt line ending. |
| public static final String | LE_CIRCLE
Constant for a circle line ending. |
| public static final String | LE_CLOSED_ARROW
Constant for a closed arrow line ending. |
| public static final String | LE_DIAMOND
Constant for a diamond line ending. |
| public static final String | LE_NONE
Constant for no line ending. |
| public static final String | LE_OPEN_ARROW
Constant for a open arrow line ending. |
| public static final String | LE_R_CLOSED_ARROW
Constant for a reversed closed arrow line ending. |
| public static final String | LE_R_OPEN_ARROW
Constant for a reversed open arrow line ending. |
| public static final String | LE_SLASH
Constant for a slash line ending. |
| public static final String | LE_SQUARE
Constant for a square line ending. |
| public static final String | SUB_TYPE
The type of annotation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDAnnotationLine(COSDictionary
the PDF object to represent as a field. field)Creates a Line 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 horizontal offset of the captionThis will retrieve the horizontal offset of the caption. |
| public String | |
| public float | Returns: the vertical offset of the captionThis will retrieve the vertical offset of the caption. |
| public String | Returns: The ending style for the end point, LE_NONE if missing, never null.This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section. |
| public PDColor | Returns: object representing the color.This will retrieve the interior color of the line endings defined in the LE entry. |
| public float | Returns: the length of the leader line extensionsThis will retrieve the length of the leader line extensions. |
| public float | Returns: the length of the leader lineThis will retrieve the length of the leader line. |
| public float | Returns: the length of the leader line offsetThis will retrieve the length of the leader line offset. |
| public float[] | Returns: array of floats [x1, y1, x2, y2] line start and end points in default user space.This will retrieve the start and end coordinates of the line (or leader line if LL entry is set). |
| public String | Returns: The ending style for the start point, LE_NONE if missing, never null.This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section. |
| public boolean | Returns: boolean if the contents shall be shown as a caption (default: false).This will retrieve whether the text specified by the /Contents or /RC entries shall be shown as a caption in the appearance of the line. |
| public void | setCaption(boolean
Boolean value. cap)This will set if the contents are shown as a caption to the line. |
| public void | setCaptionHorizontalOffset(float
the horizontal offset of the caption offset)This will set the horizontal offset of the caption. |
| public void | setCaptionPositioning(String
caption positioning captionPositioning)This will set the caption positioning. |
| public void | setCaptionVerticalOffset(float
vertical offset of the caption offset)This will set the vertical offset of the caption. |
| public void | setCustomAppearanceHandler(PDAppearanceHandler
custom appearance handler appearanceHandler)Set a custom appearance handler for generating the annotations appearance streams. |
| public void | setEndPointEndingStyle(String
The new style. style)This will set the line ending style for the end point, see the LE_ constants for the possible values. |
| public void | setInteriorColor(PDColor
color in the DeviceRGB color space. ic)This will set interior color of the line endings defined in the LE entry. |
| public void | setLeaderLineExtensionLength(float
length of the leader line extensions leaderLineExtensionLength)This will set the length of the leader line extensions. |
| public void | setLeaderLineLength(float
length of the leader line leaderLineLength)This will set the length of the leader line. |
| public void | setLeaderLineOffsetLength(float
length of the leader line offset leaderLineOffsetLength)This will set the length of the leader line offset. |
| public void | setLine(float[]
array of 4 floats [x1, y1, x2, y2] line start and end points in default user space. l)This will set start and end coordinates of the line (or leader line if LL entry is set). |
| public void | setStartPointEndingStyle(String
The new style. style)This will set the line ending style for the start point, see the LE_ constants for the possible values. |
| customAppearanceHandler | back to summary |
|---|---|
| private PDAppearanceHandler customAppearanceHandler | |
| IT_LINE_ARROW | back to summary |
|---|---|
| public static final String IT_LINE_ARROW Constant for annotation intent of Arrow. | |
| IT_LINE_DIMENSION | back to summary |
|---|---|
| public static final String IT_LINE_DIMENSION Constant for annotation intent of a dimension line. | |
| LE_BUTT | back to summary |
|---|---|
| public static final String LE_BUTT Constant for a butt line ending. | |
| LE_CIRCLE | back to summary |
|---|---|
| public static final String LE_CIRCLE Constant for a circle line ending. | |
| LE_CLOSED_ARROW | back to summary |
|---|---|
| public static final String LE_CLOSED_ARROW Constant for a closed arrow line ending. | |
| LE_DIAMOND | back to summary |
|---|---|
| public static final String LE_DIAMOND Constant for a diamond line ending. | |
| LE_NONE | back to summary |
|---|---|
| public static final String LE_NONE Constant for no line ending. | |
| LE_OPEN_ARROW | back to summary |
|---|---|
| public static final String LE_OPEN_ARROW Constant for a open arrow line ending. | |
| LE_R_CLOSED_ARROW | back to summary |
|---|---|
| public static final String LE_R_CLOSED_ARROW Constant for a reversed closed arrow line ending. | |
| LE_R_OPEN_ARROW | back to summary |
|---|---|
| public static final String LE_R_OPEN_ARROW Constant for a reversed open arrow line ending. | |
| LE_SLASH | back to summary |
|---|---|
| public static final String LE_SLASH Constant for a slash line ending. | |
| LE_SQUARE | back to summary |
|---|---|
| public static final String LE_SQUARE Constant for a square line ending. | |
| SUB_TYPE | back to summary |
|---|---|
| public static final String SUB_TYPE The type of annotation. | |
| PDAnnotationLine | back to summary |
|---|---|
| public PDAnnotationLine() Constructor. | |
| PDAnnotationLine | back to summary |
|---|---|
| public PDAnnotationLine(COSDictionary field) Creates a Line 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.
| |
| getCaptionHorizontalOffset | back to summary |
|---|---|
| public float getCaptionHorizontalOffset() This will retrieve the horizontal offset of the caption.
| |
| getCaptionPositioning | back to summary |
|---|---|
| public String getCaptionPositioning() This will retrieve the caption positioning.
| |
| getCaptionVerticalOffset | back to summary |
|---|---|
| public float getCaptionVerticalOffset() This will retrieve the vertical offset of the caption.
| |
| getEndPointEndingStyle | back to summary |
|---|---|
| public String getEndPointEndingStyle() This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section.
| |
| getInteriorColor | back to summary |
|---|---|
| public PDColor getInteriorColor() This will retrieve the interior color of the line endings defined in the LE entry. color is in DeviceRGB color space.
| |
| getLeaderLineExtensionLength | back to summary |
|---|---|
| public float getLeaderLineExtensionLength() This will retrieve the length of the leader line extensions.
| |
| getLeaderLineLength | back to summary |
|---|---|
| public float getLeaderLineLength() This will retrieve the length of the leader line.
| |
| getLeaderLineOffsetLength | back to summary |
|---|---|
| public float getLeaderLineOffsetLength() This will retrieve the length of the leader line offset.
| |
| getLine | back to summary |
|---|---|
| public float[] getLine() This will retrieve the start and end coordinates of the line (or leader line if LL entry is set).
| |
| getStartPointEndingStyle | back to summary |
|---|---|
| public String getStartPointEndingStyle() This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section.
| |
| hasCaption | back to summary |
|---|---|
| public boolean hasCaption() This will retrieve whether the text specified by the /Contents or /RC entries shall be shown as a caption in the appearance of the line.
| |
| setCaption | back to summary |
|---|---|
| public void setCaption(boolean cap) This will set if the contents are shown as a caption to the line.
| |
| setCaptionHorizontalOffset | back to summary |
|---|---|
| public void setCaptionHorizontalOffset(float offset) This will set the horizontal offset of the caption.
| |
| setCaptionPositioning | back to summary |
|---|---|
| public void setCaptionPositioning(String captionPositioning) This will set the caption positioning. Allowed values are: "Inline" and "Top"
| |
| setCaptionVerticalOffset | back to summary |
|---|---|
| public void setCaptionVerticalOffset(float offset) This will set the vertical offset of the caption.
| |
| setCustomAppearanceHandler | back to summary |
|---|---|
| public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler) Set a custom appearance handler for generating the annotations appearance streams.
| |
| setEndPointEndingStyle | back to summary |
|---|---|
| public void setEndPointEndingStyle(String style) This will set the line ending style for the end point, see the LE_ constants for the possible values.
| |
| setInteriorColor | back to summary |
|---|---|
| public void setInteriorColor(PDColor ic) This will set interior color of the line endings defined in the LE entry. color is in DeviceRGB color space.
| |
| setLeaderLineExtensionLength | back to summary |
|---|---|
| public void setLeaderLineExtensionLength(float leaderLineExtensionLength) This will set the length of the leader line extensions.
| |
| setLeaderLineLength | back to summary |
|---|---|
| public void setLeaderLineLength(float leaderLineLength) This will set the length of the leader line.
| |
| setLeaderLineOffsetLength | back to summary |
|---|---|
| public void setLeaderLineOffsetLength(float leaderLineOffsetLength) This will set the length of the leader line offset.
| |
| setLine | back to summary |
|---|---|
| public void setLine(float[] l) This will set start and end coordinates of the line (or leader line if LL entry is set).
| |
| setStartPointEndingStyle | back to summary |
|---|---|
| public void setStartPointEndingStyle(String style) This will set the line ending style for the start point, see the LE_ constants for the possible values.
| |