LineAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.LineAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.LineAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation com.aspose.pdf.LineAnnotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.LineAnnotation
All Implemented Interfaces: com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation
public final class LineAnnotation extends MarkupAnnotation
Class representing line annotation.
Constructors
| Constructor | Description |
|---|---|
| LineAnnotation | Constructor for using with Generator. |
| LineAnnotation | Creates new Line annotation on the specified page. |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor to annotation processing. |
| changeAfterResize | Updates the Starting and Ending points, according to the matrix transform. |
| getAnnotationType | Gets type of annotation. |
| getCaptionOffset | Gets caption text offset from its normal position. |
| getCaptionPosition | Gets annotation caption position. |
| getEnding | Gets line ending point. |
| getEndingStyle | Gets ending style for end point of line. |
| getIntent | Gets the intent of the line annotation. |
| getInteriorColor | Gets interior color of the annotation. |
| getLeaderLine | Gets leader line length. |
| getLeaderLineExtension | Gets length of leader line extension. |
| getLeaderLineOffset | Gets leader line offset. |
| getMeasure | Measure units specifed for this annotation. |
| getShowCaption | Gets boolean flag which determinies is contents must be shown as caption. |
| getStarting | Gets starting point of line. |
| getStartingStyle | Gets line ending style for line starting point. |
| setCaptionOffset | Sets caption text offset from its normal position. |
| setCaptionPosition | Sets annotation caption position. |
| setEnding | Sets line ending point. |
| setEndingStyle | Sets ending style for end point of line. |
| setIntent | Sets the intent of the line annotation. |
| setInteriorColor | Sets interior color of the annotation. |
| setLeaderLine | Sets leader line length. |
| setLeaderLineExtension | Sets length of leader line extension. |
| setLeaderLineOffset | Sets leader line offset. |
| setMeasure | Measure units specifed for this annotation. |
| setShowCaption | Sets boolean flag which determinies is contents must be shown as caption. |
| setStarting | Sets starting point of line. |
| setStartingStyle | Sets line ending style for line starting point. |
LineAnnotation
Constructor for using with Generator.
LineAnnotation
Creates new Line annotation on the specified page.
accept
Accepts visitor to annotation processing.
changeAfterResize
Updates the Starting and Ending points, according to the matrix transform.
getAnnotationType
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType element @see AnnotationType
getCaptionOffset
public Point getCaptionOffset()
Gets caption text offset from its normal position.
Returns: Point object
getCaptionPosition
public CaptionPosition getCaptionPosition()
Gets annotation caption position.
Returns: CaptionPosition element @see CaptionPosition
getEnding
public Point getEnding()
Gets line ending point.
Returns: Point value
getEndingStyle
public LineEnding getEndingStyle()
Gets ending style for end point of line.
Returns: LineEnding element @see LineEnding
getIntent
public LineIntent getIntent()
Gets the intent of the line annotation.
Returns: LineIntent element @see LineIntent
getInteriorColor
public Color getInteriorColor()
Gets interior color of the annotation.
Returns: Color object
getLeaderLine
public double getLeaderLine()
Gets leader line length.
Returns: double value
getLeaderLineExtension
public double getLeaderLineExtension()
Gets length of leader line extension.
Returns: double value
getLeaderLineOffset
public double getLeaderLineOffset()
Gets leader line offset.
Returns: double value
getMeasure
public Measure getMeasure()
Measure units specifed for this annotation.
Returns: Measure object
getShowCaption
public boolean getShowCaption()
Gets boolean flag which determinies is contents must be shown as caption.
Returns: boolean value
getStarting
public Point getStarting()
Gets starting point of line.
Returns: Point value
getStartingStyle
public LineEnding getStartingStyle()
Gets line ending style for line starting point.
Returns: LineEnding element @see LineEnding
setCaptionOffset
Sets caption text offset from its normal position.
setCaptionPosition
Sets annotation caption position.
setEnding
Sets line ending point.
setEndingStyle
Sets ending style for end point of line.
setIntent
Sets the intent of the line annotation.
setInteriorColor
Sets interior color of the annotation.
setLeaderLine
public void setLeaderLine(double value)
Sets leader line length.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setLeaderLineExtension
public void setLeaderLineExtension(double value)
Sets length of leader line extension.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setLeaderLineOffset
public void setLeaderLineOffset(double value)
Sets leader line offset.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setMeasure
Measure units specifed for this annotation.
setShowCaption
public void setShowCaption(boolean value)
Sets boolean flag which determinies is contents must be shown as caption.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setStarting
Sets starting point of line.
setStartingStyle
Sets line ending style for line starting point.