Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2044:5d6e82abe859
Cosmetics, removed uncalled code path.
flys-artifacts/trunk@3530 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 22 Dec 2011 12:56:46 +0000 |
parents | 3f6b519300ec |
children | 3157a78e6494 |
comparison
equal
deleted
inserted
replaced
2043:8dec3bd9f2f6 | 2044:5d6e82abe859 |
---|---|
105 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT); | 105 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT); |
106 } | 106 } |
107 | 107 |
108 | 108 |
109 /** | 109 /** |
110 * Get cross_section.km data from artifact. | |
111 */ | |
112 protected Double getKm() { | |
113 try { | |
114 WINFOArtifact winfo = (WINFOArtifact) master; | |
115 return winfo.getCrossSectionKm(); | |
116 } | |
117 catch (Exception e) { | |
118 logger.warn("Cannot convert cross_section.km to double."); | |
119 return 0.0d; | |
120 } | |
121 } | |
122 | |
123 | |
124 /** | |
125 * Get localized Y Axis label. | 110 * Get localized Y Axis label. |
126 */ | 111 */ |
127 protected String getYAxisLabel() { | 112 protected String getYAxisLabel() { |
128 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); | 113 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); |
129 } | 114 } |