Line

Overview

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

Represents a line (or polyline) drawing shape.

This class provides 8 methods for working with Line objects in Java programs. Available methods include: Line, checkBounds, getGraphInfo, getPositionArray, getText, setGraphInfo, setPositionArray, setText. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: graphInfo, positionArray, text.

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

 English