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

Inside /OutSide StrokeType on PolyLine

XMLWordPrintable

    • x86_64
    • generic

      A DESCRIPTION OF THE PROBLEM :
      When using outside or inside strokeType on polyline the shape isn't draw correctly

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Launch the attached sample app

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No cut in the shape
      ACTUAL -
      the horizontal line are cuted

      ---------- BEGIN SOURCE ----------
      /**
       *
       * @author cfischer
       */
      public class PolylineStrokeType extends Application {

          @Override
          public void start(Stage primaryStage) {

              StackPane root = new StackPane();
              root.setScaleX(4);
              root.setScaleY(4);

              Polyline polyline = new Polyline(0.0, 0.0, 0.0, 44.0, -60.0, 44.0, -60.0, 100.0);
              polyline.setStrokeType(StrokeType.INSIDE);

              root.getChildren().add(polyline);

              Scene scene = new Scene(root, 300, 600);

              primaryStage.setTitle("Stroke Type On Polyline");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }

      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: