Package com.itextpdf.kernel.geom
Class Line
- java.lang.Object
-
- com.itextpdf.kernel.geom.Line
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Point>getBasePoints()Treat base points as the points which are enough to construct a shape.
-
-
-
Constructor Detail
-
Line
public Line()
Constructs a new zero-length line starting at zero.
-
Line
public Line(float x1, float y1, float x2, float y2)Constructs a new line based on the given coordinates.- Parameters:
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 Line
-
-
Method Detail
-
getBasePoints
public java.util.List<Point> getBasePoints()
Description copied from interface:IShapeTreat base points as the points which are enough to construct a shape. E.g. for a bezier curve they are control points, for a line segment - the start and the end points of the segment.- Specified by:
getBasePointsin interfaceIShape- Returns:
- Ordered
Listconsisting of shape's base points.
-
-