diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 1815:a97764363ba2

Apply point theme to heightmark data imported via datacage to longitudinal section diagram. flys-artifacts/trunk@3144 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 Nov 2011 13:41:39 +0000
parents f6a190f6aaff
children 8d9b573d1b9a
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java	Wed Nov 02 12:16:32 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java	Wed Nov 02 13:41:39 2011 +0000
@@ -16,6 +16,7 @@
 import de.intevation.artifacts.ArtifactNamespaceContext;
 import de.intevation.artifacts.CallMeta;
 
+import de.intevation.flys.artifacts.model.FacetTypes;
 import de.intevation.flys.artifacts.model.WKms;
 import de.intevation.flys.artifacts.model.WKmsFacet;
 import de.intevation.flys.artifacts.model.WKmsFactory;
@@ -34,6 +35,7 @@
  */
 public class StaticWKmsArtifact
 extends      StaticFLYSArtifact
+implements   FacetTypes
 {
     /** The logger for this class. */
     private static Logger logger =
@@ -96,7 +98,16 @@
 
                     String wkmsName = WKmsFactory.getWKmsName(col, wst);
 
+                    String name;
+                    if (parts[0].equals(HEIGHTMARKS_POINTS)) {
+                        name = HEIGHTMARKS_POINTS;
+                    }
+                    else {
+                        name = STATIC_WKMS;
+                    }
+
                     Facet facet = new WKmsFacet(
+                        name,
                         Resources.getMsg(
                             callMeta,
                             wkmsName,

http://dive4elements.wald.intevation.org