Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightGenerator.java @ 5867:59ff03ff48f1
River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:23:01 +0200 |
parents | 73da40528cf2 |
children | af13ceeba52a |
comparison
equal
deleted
inserted
replaced
5866:9a6741ccf6d4 | 5867:59ff03ff48f1 |
---|---|
8 | 8 |
9 package org.dive4elements.river.exports; | 9 package org.dive4elements.river.exports; |
10 | 10 |
11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; | 11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; |
12 import org.dive4elements.artifactdatabase.state.Facet; | 12 import org.dive4elements.artifactdatabase.state.Facet; |
13 import org.dive4elements.river.artifacts.FLYSArtifact; | 13 import org.dive4elements.river.artifacts.D4EArtifact; |
14 import org.dive4elements.river.artifacts.model.FacetTypes; | 14 import org.dive4elements.river.artifacts.model.FacetTypes; |
15 import org.dive4elements.river.artifacts.model.MiddleBedHeightData; | 15 import org.dive4elements.river.artifacts.model.MiddleBedHeightData; |
16 import org.dive4elements.river.exports.process.BedheightProcessor; | 16 import org.dive4elements.river.exports.process.BedheightProcessor; |
17 import org.dive4elements.river.exports.process.Processor; | 17 import org.dive4elements.river.exports.process.Processor; |
18 import org.dive4elements.river.exports.process.WOutProcessor; | 18 import org.dive4elements.river.exports.process.WOutProcessor; |
109 /** | 109 /** |
110 * Get internationalized label for the x axis. | 110 * Get internationalized label for the x axis. |
111 */ | 111 */ |
112 @Override | 112 @Override |
113 protected String getDefaultXAxisLabel() { | 113 protected String getDefaultXAxisLabel() { |
114 FLYSArtifact flys = (FLYSArtifact) master; | 114 D4EArtifact flys = (D4EArtifact) master; |
115 | 115 |
116 return msg( | 116 return msg( |
117 I18N_XAXIS_LABEL, | 117 I18N_XAXIS_LABEL, |
118 I18N_XAXIS_LABEL_DEFAULT, | 118 I18N_XAXIS_LABEL_DEFAULT, |
119 new Object[] { RiverUtils.getRiver(flys).getName() }); | 119 new Object[] { RiverUtils.getRiver(flys).getName() }); |
126 | 126 |
127 if (index == YAXIS.H.idx) { | 127 if (index == YAXIS.H.idx) { |
128 label = getHAxisLabel(); | 128 label = getHAxisLabel(); |
129 } | 129 } |
130 else if (index == YAXIS.W.idx) { | 130 else if (index == YAXIS.W.idx) { |
131 FLYSArtifact flys = (FLYSArtifact) master; | 131 D4EArtifact flys = (D4EArtifact) master; |
132 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); | 132 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); |
133 | 133 |
134 label = msg( | 134 label = msg( |
135 I18N_W_YAXIS_LABEL, | 135 I18N_W_YAXIS_LABEL, |
136 I18N_W_YAXIS_LABEL_DEFAULT, | 136 I18N_W_YAXIS_LABEL_DEFAULT, |
226 | 226 |
227 | 227 |
228 /** | 228 /** |
229 * @param data A data object | 229 * @param data A data object |
230 * @param aandf The artifact and facet. This facet does NOT support any data objects. Use | 230 * @param aandf The artifact and facet. This facet does NOT support any data objects. Use |
231 * FLYSArtifact.getNativeFacet() instead to retrieve a Facet which supports | 231 * D4EArtifact.getNativeFacet() instead to retrieve a Facet which supports |
232 * data. | 232 * data. |
233 * @param theme The theme that contains styling information. | 233 * @param theme The theme that contains styling information. |
234 * @param visible The visibility of the curve. | 234 * @param visible The visibility of the curve. |
235 */ | 235 */ |
236 protected void doHeightOut( | 236 protected void doHeightOut( |