comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/context/GNVArtifactContext.java @ 540:80630520e25a

merged gnv-artifacts/0.4
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:49 +0200
parents 1bf058f1a2d1
children b248531fa20b
comparison
equal deleted inserted replaced
415:9f4a0b990d27 540:80630520e25a
1 /**
2 *
3 */
4 package de.intevation.gnv.artifacts.context;
5
6 import org.apache.log4j.Logger;
7
8 import org.w3c.dom.Document;
9
10 import java.awt.Color;
11 import java.awt.Dimension;
12 import java.awt.Paint;
13
14 import java.io.File;
15
16 import de.intevation.artifactdatabase.DefaultArtifactContext;
17
18 /**
19 * @author Tim Englich (tim.englich@intevation.de)
20 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
21 */
22 public class GNVArtifactContext
23 extends DefaultArtifactContext
24 {
25 /**
26 * the logger, used to log exceptions and additonaly information
27 */
28 private static Logger log = Logger.getLogger(GNVArtifactContext.class);
29
30 public static final String CHART_TEMPLATE_KEY =
31 "gnv.chart.template";
32
33 public static final String HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES_KEY =
34 "gnv.horizontal.cross.section.profile.samples";
35
36 public static final String HORIZONTAL_CROSS_SECTION_SAMPLES_KEY =
37 "gnv.horizontal.cross.section.samples";
38
39 public static final String
40 HORIZONTAL_CROSS_SECTION_RESULT_SHAPEFILE_PATH_KEY =
41 "gnv.horizontal.cross.section.result.shapefile";
42
43 public static final File
44 DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SHAPEFILE_PATH =
45 new File(System.getProperty("java.io.tmpdir"));
46
47 public static final Integer
48 DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES = Integer.valueOf(250);
49
50 public static final Integer
51 DEFAULT_HORIZONTAL_CROSS_SECTION_SAMPLES = Integer.valueOf(1024);
52
53 public static final String HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
54 "gnv.horizontal.cross.section.ground.interpolation";
55
56 public static final String DEFAULT_HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION =
57 "bilinear";
58
59 public static final String PALETTES_KEY =
60 "gnv.color.palettes";
61
62 public static final String VERTICAL_CROSS_SECTION_SAMPLES_KEY =
63 "gnv.vertical.cross.section.samples";
64
65 public static final Dimension DEFAULT_VERTICAL_CROSS_SECTION_SAMPLES =
66 new Dimension(1024, 768);
67
68 public static final String VERTICAL_CROSS_SECTION_FILTER_FACTORIES_KEY =
69 "gnv.vertical.cross.section.filter.factories";
70
71 public static final String VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
72 "gnv.vertical.cross.section.ground.interpolation";
73
74 public static final String DEFAULT_VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION =
75 "bilinear";
76
77 public static final String VERTICAL_CROSS_SECTION_GROUND_FILL_KEY =
78 "gnv.vertical.cross.section.ground.fill";
79
80 public static final Paint DEFAULT_VERTICAL_CROSS_SECTION_GROUND_FILL =
81 new Color(0x7c8683);
82
83 public GNVArtifactContext() {
84 super();
85 log.debug("GNVArtifactContext.Constructor");
86 }
87
88 public GNVArtifactContext(Document config) {
89 super(config);
90 log.debug("GNVArtifactContext.Constructor(config)");
91 }
92
93 }

http://dive4elements.wald.intevation.org