diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Fri Feb 03 13:33:58 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Fri Feb 03 13:42:48 2012 +0000
@@ -458,6 +458,15 @@
     }
 
 
+    public static String getReferenceGaugeName(FLYSArtifact flys) {
+        Gauge refGauge = getReferenceGauge(flys);
+
+        return refGauge != null
+            ? refGauge.getName()
+            : "-- not found --";
+    }
+
+
     public static Double getValueFromWQ(WQ wq) {
         if (wq == null) {
             return null;

http://dive4elements.wald.intevation.org