Package com.itextpdf.text.pdf.parser
Class Line
java.lang.Object
com.itextpdf.text.pdf.parser.Line
- All Implemented Interfaces:
Shape
Represents a line.
- Since:
- 5.5.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTreat base points as the points which are enough to construct a shape.
-
Field Details
-
p1
-
p2
-
-
Constructor Details
-
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. -
Line
Constructs a new line based on the given coordinates.
-
-
Method Details
-
getBasePoints
Description copied from interface:Shape
Treat 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:
getBasePoints
in interfaceShape
- Returns:
- Ordered
List
consisting of shape's base points.
-