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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: