Example usage for javafx.scene.shape VLineTo VLineTo

List of usage examples for javafx.scene.shape VLineTo VLineTo

Introduction

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

Prototype

public VLineTo() 

Source Link

Document

Creates an empty instance of VLineTo.

Usage

From source file:Main.java

@Override
public void start(final Stage stage) {
    stage.setTitle("HTML");
    stage.setWidth(500);//  ww w.  j av a  2s.co m
    stage.setHeight(500);
    Scene scene = new Scene(new Group());

    VBox root = new VBox();

    Path path = new Path();
    path.getElements().add(new MoveTo(50.0f, 0.0f));
    VLineTo vlt = new VLineTo();
    vlt.setY(.7);
    path.getElements().add(vlt);

    System.out.println(vlt.yProperty());

    root.getChildren().addAll(path);
    scene.setRoot(root);

    stage.setScene(scene);
    stage.show();
}