Example usage for javafx.scene.shape Arc typeProperty

List of usage examples for javafx.scene.shape Arc typeProperty

Introduction

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

Prototype

public final ObjectProperty<ArcType> typeProperty() 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    primaryStage.setTitle("Text Fonts");

    Group g = new Group();
    Scene scene = new Scene(g, 550, 250, Color.web("0x0000FF", 1.0));

    Arc arc = new Arc();
    arc.setCenterX(50.0f);/*from   w ww . j a  v  a2 s.  c  o m*/
    arc.setCenterY(50.0f);
    arc.setRadiusX(25.0f);
    arc.setRadiusY(25.0f);
    arc.setStartAngle(45.0f);
    arc.setLength(270.0f);
    arc.setType(ArcType.ROUND);

    System.out.println(arc.typeProperty().getName());

    g.getChildren().add(arc);

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