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

ConstructorDescription
LineAnnotationConstructor for using with Generator.
LineAnnotationCreates new Line annotation on the specified page.

Methods

MethodDescription
acceptAccepts visitor to annotation processing.
changeAfterResizeUpdates the Starting and Ending points, according to the matrix transform.
getAnnotationTypeGets type of annotation.
getCaptionOffsetGets caption text offset from its normal position.
getCaptionPositionGets annotation caption position.
getEndingGets line ending point.
getEndingStyleGets ending style for end point of line.
getIntentGets the intent of the line annotation.
getInteriorColorGets interior color of the annotation.
getLeaderLineGets leader line length.
getLeaderLineExtensionGets length of leader line extension.
getLeaderLineOffsetGets leader line offset.
getMeasureMeasure units specifed for this annotation.
getShowCaptionGets boolean flag which determinies is contents must be shown as caption.
getStartingGets starting point of line.
getStartingStyleGets line ending style for line starting point.
setCaptionOffsetSets caption text offset from its normal position.
setCaptionPositionSets annotation caption position.
setEndingSets line ending point.
setEndingStyleSets ending style for end point of line.
setIntentSets the intent of the line annotation.
setInteriorColorSets interior color of the annotation.
setLeaderLineSets leader line length.
setLeaderLineExtensionSets length of leader line extension.
setLeaderLineOffsetSets leader line offset.
setMeasureMeasure units specifed for this annotation.
setShowCaptionSets boolean flag which determinies is contents must be shown as caption.
setStartingSets starting point of line.
setStartingStyleSets 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:

ParameterTypeDescription
valuedouble value

setLeaderLineExtension

public void setLeaderLineExtension(double value)

Sets length of leader line extension.

Parameters:

ParameterTypeDescription
valuedouble value

setLeaderLineOffset

public void setLeaderLineOffset(double value)

Sets leader line offset.

Parameters:

ParameterTypeDescription
valuedouble 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:

ParameterTypeDescription
valueboolean value

setStarting

Sets starting point of line.

setStartingStyle

Sets line ending style for line starting point.