Line

Overview

Line is a class in Aspose.Pdf FOSS for Java. Inherits from: Shape.

Represents a line (or polyline) drawing shape.

Properties

NameTypeAccessDescription
positionArrayfloat[]ReadGets the position array of alternating x,y coordinate pairs.
graphInfoGraphInfoReadGets the graphic styling properties for this shape.
textStringReadGets the optional text label associated with this shape.

Methods

SignatureDescription
Line(positionArray: float[])Creates a new line with the specified position array.
getPositionArray()float[]Gets the position array of alternating x,y coordinate pairs.
setPositionArray(positionArray: float[])Sets the position array of alternating x,y coordinate pairs.
checkBounds(width: double, height: double){@inheritDoc}
/
getGraphInfo()GraphInfoGets the graphic styling properties for this shape.
setGraphInfo(graphInfo: GraphInfo)Sets the graphic styling properties for this shape.
getText()StringGets the optional text label associated with this shape.
setText(text: String)Sets the optional text label associated with this shape.

See Also