comparison artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.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
17 import org.w3c.dom.Document; 17 import org.w3c.dom.Document;
18 18
19 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; 19 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
20 import org.dive4elements.artifactdatabase.state.Facet; 20 import org.dive4elements.artifactdatabase.state.Facet;
21 21
22 import org.dive4elements.river.artifacts.FLYSArtifact; 22 import org.dive4elements.river.artifacts.D4EArtifact;
23 23
24 import org.dive4elements.river.artifacts.access.FlowVelocityAccess; 24 import org.dive4elements.river.artifacts.access.FlowVelocityAccess;
25 import org.dive4elements.river.artifacts.model.FacetTypes; 25 import org.dive4elements.river.artifacts.model.FacetTypes;
26 import org.dive4elements.river.artifacts.model.FlowVelocityData; 26 import org.dive4elements.river.artifacts.model.FlowVelocityData;
27 import org.dive4elements.river.artifacts.model.minfo.BedDiameterResult; 27 import org.dive4elements.river.artifacts.model.minfo.BedDiameterResult;
140 /** 140 /**
141 * Get internationalized label for the x axis. 141 * Get internationalized label for the x axis.
142 */ 142 */
143 @Override 143 @Override
144 protected String getDefaultXAxisLabel() { 144 protected String getDefaultXAxisLabel() {
145 FLYSArtifact flys = (FLYSArtifact) master; 145 D4EArtifact flys = (D4EArtifact) master;
146 146
147 return msg( 147 return msg(
148 I18N_XAXIS_LABEL, 148 I18N_XAXIS_LABEL,
149 I18N_XAXIS_LABEL_DEFAULT, 149 I18N_XAXIS_LABEL_DEFAULT,
150 new Object[] { RiverUtils.getRiver(flys).getName() }); 150 new Object[] { RiverUtils.getRiver(flys).getName() });
237 else if (getXBounds(0) != null && getDomainAxisRange() == null) { 237 else if (getXBounds(0) != null && getDomainAxisRange() == null) {
238 context.putContextValue("startkm", getXBounds(0).getLower()); 238 context.putContextValue("startkm", getXBounds(0).getLower());
239 context.putContextValue("endkm", getXBounds(0).getUpper()); 239 context.putContextValue("endkm", getXBounds(0).getUpper());
240 } 240 }
241 else if (getXBounds(0) == null && getDomainAxisRange() == null) { 241 else if (getXBounds(0) == null && getDomainAxisRange() == null) {
242 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact(); 242 D4EArtifact artifact = (D4EArtifact)artifactAndFacet.getArtifact();
243 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context); 243 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
244 context.putContextValue("startkm", access.getLowerKM()); 244 context.putContextValue("startkm", access.getLowerKM());
245 context.putContextValue("endkm", access.getUpperKM()); 245 context.putContextValue("endkm", access.getUpperKM());
246 } 246 }
247 else if (getXBounds(0) == null && getDomainAxisRange() != null){ 247 else if (getXBounds(0) == null && getDomainAxisRange() != null){
248 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact(); 248 D4EArtifact artifact = (D4EArtifact)artifactAndFacet.getArtifact();
249 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context); 249 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
250 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM()); 250 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM());
251 Bounds bounds = 251 Bounds bounds =
252 calculateZoom(b, getDomainAxisRange()); 252 calculateZoom(b, getDomainAxisRange());
253 context.putContextValue("startkm", bounds.getLower()); 253 context.putContextValue("startkm", bounds.getLower());
406 /** 406 /**
407 * Process the output for W facets in a longitudinal section curve. 407 * Process the output for W facets in a longitudinal section curve.
408 * 408 *
409 * @param data A FlowVelocityData object 409 * @param data A FlowVelocityData object
410 * @param aandf The facet. This facet does NOT support any data objects. Use 410 * @param aandf The facet. This facet does NOT support any data objects. Use
411 * FLYSArtifact.getNativeFacet() instead to retrieve a Facet which supports 411 * D4EArtifact.getNativeFacet() instead to retrieve a Facet which supports
412 * data. 412 * data.
413 * @param theme The theme that contains styling information. 413 * @param theme The theme that contains styling information.
414 * @param visible The visibility of the curve. 414 * @param visible The visibility of the curve.
415 */ 415 */
416 protected void doMainChannelOut( 416 protected void doMainChannelOut(
476 476
477 477
478 /** 478 /**
479 * @param data A FlowVelocityData object 479 * @param data A FlowVelocityData object
480 * @param aandf The facet. This facet does NOT support any data objects. Use 480 * @param aandf The facet. This facet does NOT support any data objects. Use
481 * FLYSArtifact.getNativeFacet() instead to retrieve a Facet which supports 481 * D4EArtifact.getNativeFacet() instead to retrieve a Facet which supports
482 * data. 482 * data.
483 * @param theme The theme that contains styling information. 483 * @param theme The theme that contains styling information.
484 * @param visible The visibility of the curve. 484 * @param visible The visibility of the curve.
485 */ 485 */
486 protected void doQOut( 486 protected void doQOut(
499 } 499 }
500 500
501 /** 501 /**
502 * @param data A FlowVelocityData object 502 * @param data A FlowVelocityData object
503 * @param aandf The facet. This facet does NOT support any data objects. Use 503 * @param aandf The facet. This facet does NOT support any data objects. Use
504 * FLYSArtifact.getNativeFacet() instead to retrieve a Facet which supports 504 * D4EArtifact.getNativeFacet() instead to retrieve a Facet which supports
505 * data. 505 * data.
506 * @param theme The theme that contains styling information. 506 * @param theme The theme that contains styling information.
507 * @param visible The visibility of the curve. 507 * @param visible The visibility of the curve.
508 */ 508 */
509 protected void doTauOut( 509 protected void doTauOut(

http://dive4elements.wald.intevation.org