Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/FixDerivedProcessor.java @ 8374:2cabecf27ccc
Added km sub title to fix derivate curve, too.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 02 Oct 2014 18:57:10 +0200 |
parents | 9f9857f6c464 |
children | 8c60595fd74c |
comparison
equal
deleted
inserted
replaced
8373:55b5d6d98d15 | 8374:2cabecf27ccc |
---|---|
26 private static Logger log = Logger.getLogger(FixDerivedProcessor.class); | 26 private static Logger log = Logger.getLogger(FixDerivedProcessor.class); |
27 | 27 |
28 private String yAxisLabel = ""; | 28 private String yAxisLabel = ""; |
29 | 29 |
30 private String I18N_AXIS_LABEL = "chart.discharge.curve.yaxis.label"; | 30 private String I18N_AXIS_LABEL = "chart.discharge.curve.yaxis.label"; |
31 | |
32 private static final String I18N_SUBTITLE_KM = "chart.subtitle.km"; | |
31 | 33 |
32 | 34 |
33 public FixDerivedProcessor() { | 35 public FixDerivedProcessor() { |
34 } | 36 } |
35 | 37 |
66 0.0 , // start | 68 0.0 , // start |
67 maxQ); // end | 69 maxQ); // end |
68 generator.addAxisSeries(series, axisName, visible); | 70 generator.addAxisSeries(series, axisName, visible); |
69 series.putMetaData(metaData, bundle.getArtifact(), context); | 71 series.putMetaData(metaData, bundle.getArtifact(), context); |
70 } | 72 } |
73 | |
74 generator.addSubtitle(Resources.getMsg( | |
75 generator.getCallContext().getMeta(), | |
76 I18N_SUBTITLE_KM, | |
77 new Object[] { "$KM" })); | |
71 } | 78 } |
72 | 79 |
73 @Override | 80 @Override |
74 public boolean canHandle(String facettype) { | 81 public boolean canHandle(String facettype) { |
75 return FIX_DERIVATE_CURVE.equals(facettype); | 82 return FIX_DERIVATE_CURVE.equals(facettype); |