comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.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
15 import org.dive4elements.artifacts.CallContext; 15 import org.dive4elements.artifacts.CallContext;
16 import org.dive4elements.artifacts.CallMeta; 16 import org.dive4elements.artifacts.CallMeta;
17 import org.dive4elements.artifacts.PreferredLocale; 17 import org.dive4elements.artifacts.PreferredLocale;
18 import org.dive4elements.artifacts.common.utils.XMLUtils; 18 import org.dive4elements.artifacts.common.utils.XMLUtils;
19 import org.dive4elements.river.artifacts.access.RangeAccess; 19 import org.dive4elements.river.artifacts.access.RangeAccess;
20 import org.dive4elements.river.artifacts.FLYSArtifact; 20 import org.dive4elements.river.artifacts.D4EArtifact;
21 import org.dive4elements.river.artifacts.resources.Resources; 21 import org.dive4elements.river.artifacts.resources.Resources;
22 import org.dive4elements.river.collections.FLYSArtifactCollection; 22 import org.dive4elements.river.collections.D4EArtifactCollection;
23 import org.dive4elements.river.jfree.Bounds; 23 import org.dive4elements.river.jfree.Bounds;
24 import org.dive4elements.river.jfree.CollisionFreeXYTextAnnotation; 24 import org.dive4elements.river.jfree.CollisionFreeXYTextAnnotation;
25 import org.dive4elements.river.jfree.DoubleBounds; 25 import org.dive4elements.river.jfree.DoubleBounds;
26 import org.dive4elements.river.jfree.EnhancedLineAndShapeRenderer; 26 import org.dive4elements.river.jfree.EnhancedLineAndShapeRenderer;
27 import org.dive4elements.river.jfree.RiverAnnotation; 27 import org.dive4elements.river.jfree.RiverAnnotation;
121 protected OutputStream out; 121 protected OutputStream out;
122 122
123 /** The CallContext object.*/ 123 /** The CallContext object.*/
124 protected CallContext context; 124 protected CallContext context;
125 125
126 protected FLYSArtifactCollection collection; 126 protected D4EArtifactCollection collection;
127 127
128 /** The artifact that is used to decorate the chart with meta information.*/ 128 /** The artifact that is used to decorate the chart with meta information.*/
129 protected Artifact master; 129 protected Artifact master;
130 130
131 /** The settings that should be used during output creation.*/ 131 /** The settings that should be used during output creation.*/
717 } 717 }
718 718
719 719
720 /** Sets the collection. */ 720 /** Sets the collection. */
721 @Override 721 @Override
722 public void setCollection(FLYSArtifactCollection collection) { 722 public void setCollection(D4EArtifactCollection collection) {
723 this.collection = collection; 723 this.collection = collection;
724 } 724 }
725 725
726 726
727 @Override 727 @Override
1420 return Resources.getMsg(context.getMeta(), key, def, args); 1420 return Resources.getMsg(context.getMeta(), key, def, args);
1421 } 1421 }
1422 1422
1423 1423
1424 protected String getRiverName() { 1424 protected String getRiverName() {
1425 FLYSArtifact flys = (FLYSArtifact) master; 1425 D4EArtifact flys = (D4EArtifact) master;
1426 1426
1427 River river = RiverUtils.getRiver(flys); 1427 River river = RiverUtils.getRiver(flys);
1428 return (river != null) ? river.getName() : ""; 1428 return (river != null) ? river.getName() : "";
1429 } 1429 }
1430 1430
1431 1431
1432 protected double[] getRange() { 1432 protected double[] getRange() {
1433 FLYSArtifact flys = (FLYSArtifact) master; 1433 D4EArtifact flys = (D4EArtifact) master;
1434 1434
1435 RangeAccess rangeAccess = new RangeAccess(flys, null); 1435 RangeAccess rangeAccess = new RangeAccess(flys, null);
1436 return rangeAccess.getKmRange(); 1436 return rangeAccess.getKmRange();
1437 } 1437 }
1438 1438

http://dive4elements.wald.intevation.org