-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
fx2.0
-
Java 7, JavaFX 2.0 beta 40 build, windows 7, netbeans 7.0.1
I was simply trying to mimic a cubic curve similar to Java 2D API's CubicCurve2D with javafx.scene.shape.CubicCurve
I believe the stroke width doesn't seem to work either.
Java 2D code below:
CubicCurve2D cubicCurve = new CubicCurve2D.Float(
50, 75, // start pt (x1,y1)
80, -25, // control pt1
110, 175, // control pt2
140, 75 // end pt (x2,y2)
);
g2d.draw(cubicCurve);
JavaFX code below:
CubicCurve cubicCurve = CubicCurveBuilder.create()
.startX(50).startY(75) // start pt (x1,y1)
.controlX1(80).controlY1(-25) // control pt1
.controlX2(110).controlY2(175) // control pt2
.endX(140).endY(75) // end pt (x2,y2)
.strokeWidth(3).build();
root.getChildren().add(cubicCurve);
I believe the stroke width doesn't seem to work either.
Java 2D code below:
CubicCurve2D cubicCurve = new CubicCurve2D.Float(
50, 75, // start pt (x1,y1)
80, -25, // control pt1
110, 175, // control pt2
140, 75 // end pt (x2,y2)
);
g2d.draw(cubicCurve);
JavaFX code below:
CubicCurve cubicCurve = CubicCurveBuilder.create()
.startX(50).startY(75) // start pt (x1,y1)
.controlX1(80).controlY1(-25) // control pt1
.controlX2(110).controlY2(175) // control pt2
.endX(140).endY(75) // end pt (x2,y2)
.strokeWidth(3).build();
root.getChildren().add(cubicCurve);