Example usage for javafx.scene.shape Polyline getPoints

List of usage examples for javafx.scene.shape Polyline getPoints

Introduction

In this page you can find the example usage for javafx.scene.shape Polyline getPoints.

Prototype

public final ObservableList<Double> getPoints() 

Source Link

Document

Gets the coordinates of the PolyLine segments.

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    Group root = new Group();
    Scene scene = new Scene(root, 260, 80);
    stage.setScene(scene);/*from  w w  w. j a va2s  .  c o m*/

    Group g = new Group();

    Polyline polyline = new Polyline();
    polyline.getPoints().addAll(new Double[] { 0.0, 0.0, 20.0, 10.0, 10.0, 20.0 });

    g.getChildren().add(polyline);

    scene.setRoot(g);
    stage.show();
}