public class Line extends Object implements IShape
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 Line
y1
- y-coordinate of start point of this Line
x2
- x-coordinate of end point of this Line
y2
- y-coordinate of end point of this Line
public List<Point> getBasePoints()
IShape
getBasePoints
in interface IShape
List
consisting of shape's base points.
Copyright © 1998–2018 iText Group NV. All rights reserved.