Skip to content

Commit

Permalink
Disable UpdateAxisPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0rm committed Sep 26, 2023
1 parent db6ddf5 commit 903eda0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
* TODO: revisit this plugin. we should be able to turn this into a single chart listener and an update method (ennerf)
* TODO: this is using Chart::getDataSets() which doesn't really exist anymore
*
* @deprecated prototype which is not usable yet and has to be adopted to the new layout
* @author akrimm
*/
@Deprecated
public class UpdateAxisLabels extends ChartPlugin {
private static final Logger LOGGER = LoggerFactory.getLogger(UpdateAxisLabels.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public Node getChartPanel(final Stage primaryStage) {
chart.getPlugins().add(new EditAxis());
chart.getPlugins().add(new EditDataSet());
chart.getPlugins().add(new DataPointTooltip());
chart.getPlugins().add(new UpdateAxisLabels());
root.getChildren().add(chart);

final DoubleDataSet dataSet1 = new DoubleDataSet("data set #1 (full change)");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ private static XYChart getDefaultChart() {
final XYChart chart = new XYChart();
chart.getPlugins().add(new Zoomer());
chart.getPlugins().add(new EditAxis());
chart.getPlugins().add(new UpdateAxisLabels());
chart.getXAxis().setAutoRanging(true);
chart.getYAxis().setAutoRanging(true);
VBox.setVgrow(chart, Priority.ALWAYS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public Node getChartPanel(Stage stage) {
// rawData chart
chart3 = new XYChart();
chart3.getXAxis().setAutoUnitScaling(true);
chart3.getPlugins().add(new UpdateAxisLabels());
chart3.getPlugins().add(new Zoomer());
chart3.getPlugins().add(new EditAxis());
chart3.getRenderers().add(new MetaDataRenderer(chart3));
Expand All @@ -122,7 +121,6 @@ public Node getChartPanel(Stage stage) {
contourChartRenderer1.getAxes().setAll(xAxis1, yAxis1, zAxis1);
chart1.getAxes().addAll(contourChartRenderer1.getAxes());
// Add plugins after all axes are correctly set up
chart1.getPlugins().add(new UpdateAxisLabels());
chart1.getPlugins().add(new Zoomer());
chart1.getPlugins().add(new EditAxis());
chart1.getDatasets().add(TransposedDataSet.transpose(stftData, true));
Expand All @@ -145,7 +143,6 @@ public Node getChartPanel(Stage stage) {
contourChartRenderer2.getAxes().setAll(xAxis2, yAxis2, zAxis2);
chart2.getAxes().addAll(contourChartRenderer2.getAxes());
chart2.getRenderers().add(new MetaDataRenderer(chart2));
chart2.getPlugins().add(new UpdateAxisLabels());
chart2.getPlugins().add(new Zoomer());
chart2.getPlugins().add(new EditAxis());
chart2.getDatasets().add(waveletData);
Expand Down

0 comments on commit 903eda0

Please sign in to comment.