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

[ValueAxis] Tickmarks number greater then axis size will result in Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u20
    • 8u20
    • javafx

      This is a regression from RT-36663. It is caused by a negative stripFactor.

      Here's a test code:

          @Override
          public void start(Stage stage) throws Exception {

              NumberAxis axis1 = new NumberAxis(0, 100, 10);
              axis1.setTickUnit(0.25);
              NumberAxis axis2 = new NumberAxis(0, 100, 10);
              LineChart chart = new LineChart(axis1, axis2);
              VBox vb = new VBox();

              XYChart.Series serie = new XYChart.Series("serie", FXCollections.observableArrayList(new XYChart.Data(1, 1)));

              chart.getData().add(serie);

              vb.getChildren().add(chart);

              Scene scene = new Scene(vb, 200, 200);
              stage.setScene(scene);
              stage.show();
          }

            msladecek Martin Sládeček
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: