comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AxisSection.java @ 1986:3632150dbe0b

Implemented a ChartSettings with relevant Sections and Attributes for charts (NOTE: Work still in progress). flys-artifacts/trunk@3418 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 14 Dec 2011 14:17:31 +0000
parents
children 0bd7c3cf0af1
comparison
equal deleted inserted replaced
1985:07b176b14205 1986:3632150dbe0b
1 package de.intevation.flys.exports;
2
3
4 import org.w3c.dom.Document;
5 import org.w3c.dom.Element;
6 import org.w3c.dom.Node;
7
8 import de.intevation.artifactdatabase.state.Attribute;
9 import de.intevation.artifactdatabase.state.DefaultSection;
10
11
12 /**
13 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
14 */
15 public class AxisSection extends DefaultSection {
16
17 public AxisSection(String id) {
18 super(id);
19 }
20
21
22 @Override
23 public void toXML(Node parent) {
24 Document owner = parent.getOwnerDocument();
25 Element axis = owner.createElement("axis");
26
27 parent.appendChild(axis);
28
29 for (String key: getKeys()) {
30 Attribute attr = getAttribute(key);
31 attr.toXML(axis);
32 }
33 }
34 }
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org