Java examples for javafx.scene.shape:Circle
build JavaFX Cubic Curve
//package com.java2s; import javafx.scene.shape.CubicCurve; public class Main { /**/* ww w.j a v a2 s . com*/ * * @param sx * @param sy * @param c1x * @param c1y * @param c2x * @param c2y * @param ex * @param ey * @return */ public static CubicCurve buildCubicCurve(double sx, double sy, double c1x, double c1y, double c2x, double c2y, double ex, double ey) { CubicCurve cubic = new CubicCurve(); cubic.setStartX(sx); cubic.setStartY(sy); cubic.setControlX1(c1x); cubic.setControlY1(c1y); cubic.setControlX2(c2x); cubic.setControlY2(c2y); cubic.setEndX(ex); cubic.setEndY(ey); return cubic; } }