annotate flys-artifacts/src/main/java/de/intevation/flys/artifacts/BedHeightsArtifact.java @ 5161:a8d8ea1f2a5c

flys/issue1145: Add missing Area styles.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 01 Mar 2013 17:11:08 +0100
parents cd44d28d0fbc
children
rev   line source
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.artifacts;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 import java.util.ArrayList;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 import java.util.List;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 import org.apache.log4j.Logger;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 import org.w3c.dom.Document;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
9 import de.intevation.artifactdatabase.state.DefaultOutput;
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 import de.intevation.artifactdatabase.state.Facet;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 import de.intevation.artifactdatabase.state.FacetActivity;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 import de.intevation.artifacts.ArtifactFactory;
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
13 import de.intevation.artifacts.Artifact;
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 import de.intevation.artifacts.CallMeta;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 import de.intevation.artifacts.common.utils.XMLUtils;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 import de.intevation.flys.artifacts.model.minfo.BedHeightFacet;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 import de.intevation.flys.artifacts.model.minfo.BedHeightFactory;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 import de.intevation.flys.artifacts.states.StaticState;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20 public class BedHeightsArtifact
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
21 extends AbstractStaticStateArtifact
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 /** The logger for this class. */
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24 private static Logger logger =
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 Logger.getLogger(BedHeightsArtifact.class);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27 private static final String NAME = "bedheights";
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
28 private static final String STATIC_FACET_NAME = "bedheight";
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 static {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 // TODO: Move to configuration.
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 FacetActivity.Registry.getInstance()
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 .register(NAME, FacetActivity.INACTIVE);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 public static final String STATIC_STATE_NAME =
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 "state.additional_bedheights.static";
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
39 /** Data Item name to know whether we are Heighmarks and reveive
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
40 * some data slightly different. */
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
41 public static final String DATA_HEIGHT_TYPE =
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 "height_marks";
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 /**
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 * Trivial Constructor.
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
46 */
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
47 public BedHeightsArtifact() {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
48 logger.debug("BedHeightsArtifact.BedHeightsArtifact");
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 @Override
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
52 public String getName() {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
53 return NAME;
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
54 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
55
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
56 /**
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
57 * Gets called from factory, to set things up.
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
58 */
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
59 @Override
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
60 public void setup(
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
61 String identifier,
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
62 ArtifactFactory factory,
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
63 Object context,
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
64 CallMeta callMeta,
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
65 Document data)
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
66 {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
67 logger.debug("BedHeightsArtifact.setup");
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
68
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 if (logger.isDebugEnabled()) {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
70 logger.debug(XMLUtils.toString(data));
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 String code = getDatacageIDValue(data);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 if (code != null) {
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 String [] parts = code.split("-");
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 if (parts.length >= 4) {
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
79 String name = parts[0];
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
80 String type = parts[1];
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
81 String btype = type;
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
82 int hId = Integer.parseInt(parts[2]);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
83 if (name.equals("bedheight")) {
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
84 addStringData("type", type);
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
85 addStringData("height_id", parts[2]);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
86 addStringData("time", parts[3]);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
87 }
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
88 if (type.equals("singlevalues")) {
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
89 btype = "single";
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
90 }
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
91
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
92 String bedHName = BedHeightFactory.getHeightName(btype, hId);
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
93
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
94 Facet facet = new BedHeightFacet(
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
95 STATIC_FACET_NAME, bedHName, type);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
96
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
97 ArrayList<Facet> facets = new ArrayList<Facet>(1);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
98 facets.add(facet);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
99
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
100 addFacets(STATIC_STATE_NAME, facets);
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
101 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
102 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
103 super.setup(identifier, factory, context, callMeta, data);
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
104 }
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
105
4535
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
106 @Override
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
107 protected void initStaticState() {
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
108
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
109 logger.debug("initStaticState " + getName() + " " + identifier());
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
110
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
111 StaticState state = new StaticState(STATIC_STATE_NAME);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
112 DefaultOutput output = new DefaultOutput(
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
113 "general",
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
114 "general",
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
115 "image/png",
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
116 "chart");
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
117
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
118 List<Facet> facets = getFacets(STATIC_STATE_NAME);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
119 output.addFacets(facets);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
120 state.addOutput(output);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
121
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
122 setStaticState(state);
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
123 }
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
124
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
125 @Override
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
126 protected void initialize(Artifact artifact, Object context, CallMeta meta) {
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
127 // do not clone facets, etc. from master artifact
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
128
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
129 logger.debug("initialize");
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
130 importData((FLYSArtifact)artifact, "ld_from");
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
131 importData((FLYSArtifact)artifact, "ld_to");
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
132
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
133 logger.debug("ld_from " + getDataAsString("ld_from"));
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
134 logger.debug("ld_to " + getDataAsString("ld_to"));
b838d16c629e Refactor BedHeightArtifacts to provide bed height single values of a range
Björn Ricks <bjoern.ricks@intevation.de>
parents: 4502
diff changeset
135 }
3614
68beaa827751 MINFO: Implemented UI and facet/artifact stack for bed height differences.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
136 }
4459
d83e021ff638 BedHeightArtifact: Whitespace-cosmetic and vim line.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3774
diff changeset
137 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org