lineTo

lineTo(Point2D.Float point) method

Adds line to the end of the path

Parameters

NameTypeDescription
pointPoint2D.FloatEnd point of the line

Returns

void


lineTo(float x, float y) method

Adds line to the end of the path

Parameters

NameTypeDescription
xfloatX coordinate of the end point of the line
yfloatY coordinate of the end point of the line

Returns

void


lineTo(Point2D.Float point, long index) method

Adds line to the specified place of the path

Parameters

NameTypeDescription
pointPoint2D.FloatEnd point
indexlongIndex of segment in PathData

Returns

void

Exception

ExceptionCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range

lineTo(float x, float y, long index) method

Adds line to the specified place of the path

Parameters

NameTypeDescription
xfloatX coordinate of the point
yfloatY coordinate of the point
indexlongIndex of segment in PathData

Returns

void

Exception

ExceptionCondition
ArgumentOutOfRangeExceptionSegment index is out of PathData range