Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1814:a9b690d864a7 | 1815:a97764363ba2 |
---|---|
14 import de.intevation.artifacts.Artifact; | 14 import de.intevation.artifacts.Artifact; |
15 import de.intevation.artifacts.ArtifactFactory; | 15 import de.intevation.artifacts.ArtifactFactory; |
16 import de.intevation.artifacts.ArtifactNamespaceContext; | 16 import de.intevation.artifacts.ArtifactNamespaceContext; |
17 import de.intevation.artifacts.CallMeta; | 17 import de.intevation.artifacts.CallMeta; |
18 | 18 |
19 import de.intevation.flys.artifacts.model.FacetTypes; | |
19 import de.intevation.flys.artifacts.model.WKms; | 20 import de.intevation.flys.artifacts.model.WKms; |
20 import de.intevation.flys.artifacts.model.WKmsFacet; | 21 import de.intevation.flys.artifacts.model.WKmsFacet; |
21 import de.intevation.flys.artifacts.model.WKmsFactory; | 22 import de.intevation.flys.artifacts.model.WKmsFactory; |
22 | 23 |
23 import de.intevation.flys.artifacts.states.StaticState; | 24 import de.intevation.flys.artifacts.states.StaticState; |
32 * This artifact neglects (Static)FLYSArtifacts capabilities of interaction | 33 * This artifact neglects (Static)FLYSArtifacts capabilities of interaction |
33 * with the StateEngine by overriding the getState*-methods. | 34 * with the StateEngine by overriding the getState*-methods. |
34 */ | 35 */ |
35 public class StaticWKmsArtifact | 36 public class StaticWKmsArtifact |
36 extends StaticFLYSArtifact | 37 extends StaticFLYSArtifact |
38 implements FacetTypes | |
37 { | 39 { |
38 /** The logger for this class. */ | 40 /** The logger for this class. */ |
39 private static Logger logger = | 41 private static Logger logger = |
40 Logger.getLogger(StaticWKmsArtifact.class); | 42 Logger.getLogger(StaticWKmsArtifact.class); |
41 | 43 |
94 addStringData("col_pos", parts[2]); | 96 addStringData("col_pos", parts[2]); |
95 addStringData("wst_id", parts[3]); | 97 addStringData("wst_id", parts[3]); |
96 | 98 |
97 String wkmsName = WKmsFactory.getWKmsName(col, wst); | 99 String wkmsName = WKmsFactory.getWKmsName(col, wst); |
98 | 100 |
101 String name; | |
102 if (parts[0].equals(HEIGHTMARKS_POINTS)) { | |
103 name = HEIGHTMARKS_POINTS; | |
104 } | |
105 else { | |
106 name = STATIC_WKMS; | |
107 } | |
108 | |
99 Facet facet = new WKmsFacet( | 109 Facet facet = new WKmsFacet( |
110 name, | |
100 Resources.getMsg( | 111 Resources.getMsg( |
101 callMeta, | 112 callMeta, |
102 wkmsName, | 113 wkmsName, |
103 wkmsName)); | 114 wkmsName)); |
104 fs.add(facet); | 115 fs.add(facet); |