comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 1095:f465785ed1ae

Refactored the code to fetch the km range/locations into a utility class. flys-artifacts/trunk@2598 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 26 Aug 2011 14:58:35 +0000
parents 61c051e53f9b
children 9383a4608d9f
comparison
equal deleted inserted replaced
1094:b1c6d945848d 1095:f465785ed1ae
23 import de.intevation.flys.model.River; 23 import de.intevation.flys.model.River;
24 24
25 import de.intevation.flys.artifacts.WINFOArtifact; 25 import de.intevation.flys.artifacts.WINFOArtifact;
26 26
27 import de.intevation.flys.artifacts.resources.Resources; 27 import de.intevation.flys.artifacts.resources.Resources;
28 import de.intevation.flys.utils.FLYSUtils;
28 29
29 30
30 /** 31 /**
31 * The base class for chart creation. It should provide some basic things that 32 * The base class for chart creation. It should provide some basic things that
32 * equal in all chart types. 33 * equal in all chart types.
102 103
103 104
104 protected double[] getRange() { 105 protected double[] getRange() {
105 WINFOArtifact flys = (WINFOArtifact) master; 106 WINFOArtifact flys = (WINFOArtifact) master;
106 107
107 return flys.getDistance(); 108 return FLYSUtils.getKmRange(flys);
108 } 109 }
109 110
110 111
111 /** 112 /**
112 * Returns the size of a chart export as array which has been specified by 113 * Returns the size of a chart export as array which has been specified by

http://dive4elements.wald.intevation.org