comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java @ 7519:0d45b1d6e432

issue1658: Add unit name to facet description.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 04 Nov 2013 17:15:20 +0100
parents ab17c76611f9
children b8faaac71507
comparison
equal deleted inserted replaced
7518:b6e127ffc325 7519:0d45b1d6e432
159 } 159 }
160 160
161 boolean unitIsTA = 161 boolean unitIsTA =
162 SedimentLoadFactory.getSedimentYieldUnitName(id).startsWith("t"); 162 SedimentLoadFactory.getSedimentYieldUnitName(id).startsWith("t");
163 163
164 name += " " + (unitIsTA)
165 ? Resources.getMsg(callMeta, "state.minfo.sediment.load.t_per_a", "(t/a)")
166 : Resources.getMsg(callMeta, "state.minfo.sediment.load.m3_per_a", "(m^3/a)");
167
164 String facetType = ""; 168 String facetType = "";
165 if (fraction.equals("coarse")) { 169 if (fraction.equals("coarse")) {
166 if (unitIsTA) { 170 if (unitIsTA) {
167 facetType = SEDIMENT_LOAD_TA_COARSE; 171 facetType = SEDIMENT_LOAD_TA_COARSE;
168 } 172 }

http://dive4elements.wald.intevation.org