Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2249:997df76c6f58
Create title, subtitle and axes labels for charts from type historical discharge curve.
flys-artifacts/trunk@3898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 03 Feb 2012 13:42:48 +0000 |
parents | ee5310134463 |
children | d69d8dea78dc |
comparison
equal
deleted
inserted
replaced
2248:e1eaf9c2b5bf | 2249:997df76c6f58 |
---|---|
453 Long officialNumber = flys.getDataAsLong("reference_gauge"); | 453 Long officialNumber = flys.getDataAsLong("reference_gauge"); |
454 | 454 |
455 return officialNumber != null | 455 return officialNumber != null |
456 ? Gauge.getGaugeByOfficialNumber(officialNumber) | 456 ? Gauge.getGaugeByOfficialNumber(officialNumber) |
457 : null; | 457 : null; |
458 } | |
459 | |
460 | |
461 public static String getReferenceGaugeName(FLYSArtifact flys) { | |
462 Gauge refGauge = getReferenceGauge(flys); | |
463 | |
464 return refGauge != null | |
465 ? refGauge.getName() | |
466 : "-- not found --"; | |
458 } | 467 } |
459 | 468 |
460 | 469 |
461 public static Double getValueFromWQ(WQ wq) { | 470 public static Double getValueFromWQ(WQ wq) { |
462 if (wq == null) { | 471 if (wq == null) { |