Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8128559

CubicCurve shouldn't be filling the shape by default.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • fx2.0
    • javafx
    • Java 7, JavaFX 2.0 beta 40 build, windows 7, netbeans 7.0.1

    Description

      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);

      Attachments

        Activity

          People

            kcr Kevin Rushforth
            cdea Carl Dea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: