Class LineTo

java.lang.Object
javafx.scene.shape.PathElement
javafx.scene.shape.LineTo

public class LineTo extends PathElement
Creates a line path element by drawing a straight line from the current coordinate to the new coordinates.

For more information on path elements see the Path and PathElement classes.

Example:

import javafx.scene.shape.*;

Path path = new Path();
path.getElements().add(new MoveTo(0.0f, 50.0f));
path.getElements().add(new LineTo(100.0f, 100.0f));
Since:
JavaFX 2.0