Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java @ 9123:1cc7653ca84f
Cleanup of ChartGenerator and ChartGenerator2 code. Put some of the copy/pasted code into a common abstraction.
author | gernotbelger |
---|---|
date | Tue, 05 Jun 2018 19:21:16 +0200 |
parents | e6d0fc817e20 |
children | ef5754ba5573 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java Tue Jun 05 19:10:38 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java Tue Jun 05 19:21:16 2018 +0200 @@ -39,7 +39,7 @@ public void addDatasets(XYPlot plot) { super.addDatasets(plot); - Object pnp = context.getContextValue(PNP); + Object pnp = getContext().getContextValue(PNP); if (!(pnp instanceof Number)) { return; } @@ -52,7 +52,7 @@ return; } - AxisDataset data = datasets.get(wAxisIndex); + AxisDataset data = getDatasets().get(wAxisIndex); if (data == null) { // No W axis return; @@ -94,8 +94,7 @@ getYAxisFontSize(wAxisIndex)); String axisName = "W.in.cm"; - String axisLabel = Resources.getMsg(context.getMeta(), - I18N_AXIS_LABEL, "W [cm]"); + String axisLabel = msg( I18N_AXIS_LABEL, "W [cm]" ); IdentifiableNumberAxis axis = new IdentifiableNumberAxis( axisName, axisLabel);