Java examples for javafx.scene.shape:Arc
build JavaFX Arc
//package com.java2s; import javafx.scene.shape.Arc; import javafx.scene.shape.ArcType; public class Main { /**/*w ww . j ava 2s. c om*/ * * @param cx * @param cy * @param rx * @param ry * @param startAngle * @param length * @param arcType * @return */ public static Arc buildArc(double cx, double cy, double rx, double ry, double startAngle, double length, ArcType arcType) { Arc arc = new Arc(); arc.setCenterX(cx); arc.setCenterY(cy); arc.setRadiusX(rx); arc.setRadiusY(ry); arc.setStartAngle(startAngle); arc.setLength(length); arc.setType(arcType); return arc; } }