Example usage for javafx.scene.shape ArcTo setRadiusY

List of usage examples for javafx.scene.shape ArcTo setRadiusY

Introduction

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

Prototype

public final void setRadiusY(double value) 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    ArcTo arcTo = new ArcTo();
    arcTo.setX(20);//w  w w  .  j  a v  a2  s . c o  m
    arcTo.setY(30);

    arcTo.setRadiusX(30);
    arcTo.setRadiusY(30);

    Path path = new Path(new MoveTo(0, 0), new VLineTo(100), new HLineTo(100), new VLineTo(50), arcTo);
    HBox box = new HBox(path);

    box.setSpacing(10);

    Scene scene = new Scene(box);
    stage.setScene(scene);
    stage.setTitle("Test");
    stage.show();
}