Example usage for javafx.scene.shape QuadCurve QuadCurve

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

Introduction

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

Prototype

public QuadCurve() 

Source Link

Document

Creates an empty instance of QuadCurve.

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    Group root = new Group();
    Scene scene = new Scene(root, 300, 150);
    stage.setScene(scene);/*w w w  .j a va 2  s  .  c  o m*/
    stage.setTitle("");

    QuadCurve quad = new QuadCurve();
    quad.setStartX(0.0f);
    quad.setStartY(50.0f);
    quad.setEndX(50.0f);
    quad.setEndY(50.0f);
    quad.setControlX(25.0f);
    quad.setControlY(0.0f);

    root.getChildren().add(quad);

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