set Line
Sets the location of the end points of this Line2D to the same as those end points of the specified Line2D.
Since
1.2
Parameters
l
the specified Line2D
Sets the location of the end points of this Line2D to the specified Point2D coordinates.
Since
1.2
Parameters
p1
the start Point2D of the line segment
p2
the end Point2D of the line segment
Sets the location of the end points of this Line2D to the specified double coordinates.
Since
1.2
Parameters
x1
the X coordinate of the start point
y1
the Y coordinate of the start point
x2
the X coordinate of the end point
y2
the Y coordinate of the end point