| Constructor and Description |
|---|
Line()
Constructs a new zero-length line starting at zero.
|
Line(float x1,
float y1,
float x2,
float y2)
Constructs a new line based on the given coordinates.
|
Line(Point p1,
Point p2)
Constructs a new line based on the given coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
List<Point> |
getBasePoints()
Treat base points as the points which are enough to construct a shape.
|
public Line()
public Line(float x1,
float y1,
float x2,
float y2)
x1 - x-coordinate of start point of this Liney1 - y-coordinate of start point of this Linex2 - x-coordinate of end point of this Liney2 - y-coordinate of end point of this Linepublic List<Point> getBasePoints()
IShapegetBasePoints in interface IShapeList consisting of shape's base points.Copyright © 1998–2022 iText Group NV. All rights reserved.