Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 1104:9383a4608d9f
Use FLYSUtils.getRiver instead of WINFOArtifact.getRiver.
flys-artifacts/trunk@2607 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 29 Aug 2011 09:26:56 +0000 |
parents | f465785ed1ae |
children | 4a8251eae217 |
comparison
equal
deleted
inserted
replaced
1103:e0243627ba62 | 1104:9383a4608d9f |
---|---|
37 public abstract class ChartGenerator implements OutGenerator { | 37 public abstract class ChartGenerator implements OutGenerator { |
38 | 38 |
39 private static Logger logger = Logger.getLogger(ChartGenerator.class); | 39 private static Logger logger = Logger.getLogger(ChartGenerator.class); |
40 | 40 |
41 | 41 |
42 /** The default chart width, if no other width is set.*/ | 42 /** The default chart width, if no other width is set. */ |
43 public static final int DEFAULT_CHART_WIDTH = 600; | 43 public static final int DEFAULT_CHART_WIDTH = 600; |
44 | 44 |
45 /** The default chart height, if no other height is set.*/ | 45 /** The default chart height, if no other height is set.*/ |
46 public static final int DEFAULT_CHART_HEIGHT = 400; | 46 public static final int DEFAULT_CHART_HEIGHT = 400; |
47 | 47 |
95 | 95 |
96 | 96 |
97 protected String getRiverName() { | 97 protected String getRiverName() { |
98 WINFOArtifact flys = (WINFOArtifact) master; | 98 WINFOArtifact flys = (WINFOArtifact) master; |
99 | 99 |
100 River river = flys.getRiver(); | 100 River river = FLYSUtils.getRiver(flys); |
101 return river != null ? river.getName() : ""; | 101 return (river != null) ? river.getName() : ""; |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 protected double[] getRange() { | 105 protected double[] getRange() { |
106 WINFOArtifact flys = (WINFOArtifact) master; | 106 WINFOArtifact flys = (WINFOArtifact) master; |