javafx.scene.chart.PieChart#setClockwise ( )源码实例Demo

下面列出了javafx.scene.chart.PieChart#setClockwise ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: marathonv5   文件: PieChartSample.java
public PieChartSample() {
     ObservableList<PieChart.Data> pieChartData = FXCollections.observableArrayList(
         new PieChart.Data("Sun", 20),
         new PieChart.Data("IBM", 12),
         new PieChart.Data("HP", 25),
         new PieChart.Data("Dell", 22),
         new PieChart.Data("Apple", 30)
     );
    PieChart chart = new PieChart(pieChartData);
    chart.setClockwise(false);
    getChildren().add(chart);
}
 
源代码2 项目: marathonv5   文件: PieChartSample.java
public PieChartSample() {
     ObservableList<PieChart.Data> pieChartData = FXCollections.observableArrayList(
         new PieChart.Data("Sun", 20),
         new PieChart.Data("IBM", 12),
         new PieChart.Data("HP", 25),
         new PieChart.Data("Dell", 22),
         new PieChart.Data("Apple", 30)
     );
    PieChart chart = new PieChart(pieChartData);
    chart.setClockwise(false);
    getChildren().add(chart);
}