Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 3409:97ad960f5579
Add subtitle to Fix W/Q chart and refactor addSubtitle() method(s)
flys-artifacts/trunk@5062 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 19 Jul 2012 12:59:56 +0000 |
parents | 306b9d0f0fb3 |
children | a9cdd5fae878 |
comparison
equal
deleted
inserted
replaced
3408:50d61a2494cb | 3409:97ad960f5579 |
---|---|
1 package de.intevation.flys.exports; | 1 package de.intevation.flys.exports; |
2 | 2 |
3 import de.intevation.artifactdatabase.state.ArtifactAndFacet; | |
4 import de.intevation.flys.artifacts.WINFOArtifact; | |
5 import de.intevation.flys.artifacts.model.FacetTypes; | |
6 import de.intevation.flys.artifacts.model.WQKms; | |
7 import de.intevation.flys.jfree.Bounds; | |
8 import de.intevation.flys.jfree.FLYSAnnotation; | |
9 import de.intevation.flys.jfree.StyledXYSeries; | |
10 import de.intevation.flys.model.Gauge; | |
11 import de.intevation.flys.model.River; | |
12 import de.intevation.flys.utils.FLYSUtils; | |
13 | |
3 import org.apache.log4j.Logger; | 14 import org.apache.log4j.Logger; |
4 | |
5 | |
6 import org.w3c.dom.Document; | |
7 | |
8 import org.jfree.chart.JFreeChart; | |
9 import org.jfree.chart.axis.ValueAxis; | 15 import org.jfree.chart.axis.ValueAxis; |
10 import org.jfree.chart.plot.XYPlot; | 16 import org.jfree.chart.plot.XYPlot; |
11 import org.jfree.data.Range; | 17 import org.jfree.data.Range; |
12 import org.jfree.data.xy.XYSeries; | 18 import org.jfree.data.xy.XYSeries; |
13 | 19 import org.w3c.dom.Document; |
14 import de.intevation.artifactdatabase.state.ArtifactAndFacet; | |
15 | |
16 import de.intevation.flys.artifacts.model.FacetTypes; | |
17 import de.intevation.flys.model.Gauge; | |
18 import de.intevation.flys.model.River; | |
19 | |
20 import de.intevation.flys.artifacts.WINFOArtifact; | |
21 | |
22 import de.intevation.flys.artifacts.model.WQKms; | |
23 | |
24 import de.intevation.flys.utils.FLYSUtils; | |
25 import de.intevation.flys.jfree.Bounds; | |
26 import de.intevation.flys.jfree.FLYSAnnotation; | |
27 import de.intevation.flys.jfree.StyledXYSeries; | |
28 | 20 |
29 | 21 |
30 /** | 22 /** |
31 * An OutGenerator that generates discharge curves. | 23 * An OutGenerator that generates discharge curves. |
32 * | 24 * |
85 } | 77 } |
86 }; | 78 }; |
87 } | 79 } |
88 | 80 |
89 | 81 |
82 /** | |
83 * Returns always null to suppress subtitles. | |
84 */ | |
90 @Override | 85 @Override |
91 protected String getDefaultChartTitle() { | 86 protected String getDefaultChartTitle() { |
92 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); | 87 return null; |
93 } | |
94 | |
95 | |
96 /** | |
97 * Empty (suppress subtitle). | |
98 */ | |
99 @Override | |
100 protected void addSubtitles(JFreeChart chart) { | |
101 } | 88 } |
102 | 89 |
103 | 90 |
104 @Override | 91 @Override |
105 protected String getDefaultXAxisLabel() { | 92 protected String getDefaultXAxisLabel() { |
123 | 110 |
124 return zoomin; | 111 return zoomin; |
125 } | 112 } |
126 | 113 |
127 | 114 |
115 @Override | |
128 public void doOut( | 116 public void doOut( |
129 ArtifactAndFacet artifactFacet, | 117 ArtifactAndFacet artifactFacet, |
130 Document theme, | 118 Document theme, |
131 boolean visible | 119 boolean visible |
132 ) { | 120 ) { |