Example usage for javafx.scene.chart PieChart getLabelLineLength

List of usage examples for javafx.scene.chart PieChart getLabelLineLength

Introduction

In this page you can find the example usage for javafx.scene.chart PieChart getLabelLineLength.

Prototype

public final double getLabelLineLength() 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());//from   ww w .  j a v a2 s .  com

    System.out.println(pieChart.getLabelLineLength());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}