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
| Name | Type | Access | Description |
|---|---|---|---|
positionArray | float[] | Read | Gets the position array of alternating x,y coordinate pairs. |
graphInfo | GraphInfo | Read | Gets the graphic styling properties for this shape. |
text | String | Read | Gets the optional text label associated with this shape. |
Methods
| Signature | Description |
|---|---|
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() → GraphInfo | Gets the graphic styling properties for this shape. |
setGraphInfo(graphInfo: GraphInfo) | Sets the graphic styling properties for this shape. |
getText() → String | Gets the optional text label associated with this shape. |
setText(text: String) | Sets the optional text label associated with this shape. |