Skip to content
Snippets Groups Projects
Commit e09efcac authored by Georg Graßnick's avatar Georg Graßnick :thinking:
Browse files

Use column view for axis legend

parent d643fbfe
No related branches found
No related tags found
1 merge request!43Feat/scatterplot rasterizer 34
This commit is part of merge request !43. Comments created here will be created in the context of that merge request.
...@@ -53,8 +53,9 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> { ...@@ -53,8 +53,9 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
final String titleToDataSetSeparator = " - "; final String titleToDataSetSeparator = " - ";
final String legendTitle = title; final String legendTitle = title;
final String axisExplanationGroupName = "Achsenbeschriftungen"; final String axisExplanationGroupName = "Achsenbeschriftungen";
final String xAxisLegendGroupName = "x-Achse Werte"; final String axisColumnGroupTitle = "Achsenwerte";
final String yAxisLegendGroupName = "y-Achse Werte"; final String xAxisLegendGroupName = "x-Achse";
final String yAxisLegendGroupName = "y-Achse";
final String xAxisLabel = "x-Achse"; final String xAxisLabel = "x-Achse";
final String xAxisLabelValue = scatterPlot.getXAxisName(); final String xAxisLabelValue = scatterPlot.getXAxisName();
final String yAxisLabel = "y-Achse"; final String yAxisLabel = "y-Achse";
...@@ -150,7 +151,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> { ...@@ -150,7 +151,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
// X axis // X axis
Map<String, String> xAxisLegendSymbols = new HashMap<>(); Map<String, String> xAxisLegendSymbols = new HashMap<>();
legend.addSymbolExplanationGroup(xAxisLegendGroupName, xAxisLegendSymbols);
// TODO Transfer to separate method // TODO Transfer to separate method
Map<Integer, String> xAxisLabels = new HashMap<>(); Map<Integer, String> xAxisLabels = new HashMap<>();
...@@ -167,7 +167,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> { ...@@ -167,7 +167,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
// Y axis // Y axis
Map<String, String> yAxisLegendSymbols = new HashMap<>(); Map<String, String> yAxisLegendSymbols = new HashMap<>();
legend.addSymbolExplanationGroup(yAxisLegendGroupName, yAxisLegendSymbols);
Map<Integer, String> yAxisLabels = new HashMap<>(); Map<Integer, String> yAxisLabels = new HashMap<>();
yAxis.setLabels(yAxisLabels); yAxis.setLabels(yAxisLabels);
...@@ -181,6 +180,10 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> { ...@@ -181,6 +180,10 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
label++; label++;
} }
legend.addColumn(xAxisLegendGroupName, xAxisLegendSymbols);
legend.addColumn(yAxisLegendGroupName, yAxisLegendSymbols);
legend.setColumnViewTitle(axisColumnGroupTitle);
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// Rendering per data set // Rendering per data set
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment