view gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/context/GNVArtifactContext.java @ 612:e86d37008fd1

Added new Transition and State for using the PreSettingsValue for the decision if a Transition could be used and the usage of PreSettings as InputValues. gnv-artifacts/trunk@678 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 12 Feb 2010 09:11:49 +0000
parents b248531fa20b
children c8749d83d9b6
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.artifacts.context;

import org.apache.log4j.Logger;

import org.w3c.dom.Document;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Paint;

import java.io.File;

import de.intevation.artifactdatabase.DefaultArtifactContext;

/**
 * @author Tim Englich         (tim.englich@intevation.de)
 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
 */
public class GNVArtifactContext 
extends      DefaultArtifactContext
{
    /**
     * the logger, used to log exceptions and additonaly information
     */
    private static Logger log = Logger.getLogger(GNVArtifactContext.class);

    public static final String CHART_TEMPLATE_KEY =
        "gnv.chart.template";

    public static final String HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES_KEY =
        "gnv.horizontal.cross.section.profile.samples";
    
    public static final String HORIZONTAL_CROSS_SECTION_SAMPLES_KEY =
        "gnv.horizontal.cross.section.samples";

    public static final String HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS_KEY =
        "gnv.horizontal.cross.section.extrapolation.rounds";

    public static final String
        HORIZONTAL_CROSS_SECTION_RESULT_SHAPEFILE_PATH_KEY =
        "gnv.horizontal.cross.section.result.shapefile";

    public static final File
        DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SHAPEFILE_PATH = 
        new File(System.getProperty("java.io.tmpdir"));

    public static final Integer 
        DEFAULT_HORIZONTAL_CROSS_SECTION_PROFILE_SAMPLES = Integer.valueOf(250);
    
    public static final Integer 
        DEFAULT_HORIZONTAL_CROSS_SECTION_SAMPLES = Integer.valueOf(1024);

    public static final Integer 
        DEFAULT_HORIZONTAL_CROSS_SECTION_EXTRAPOLATION_ROUNDS = Integer.valueOf(0);

    public static final String HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
        "gnv.horizontal.cross.section.ground.interpolation";

    public static final String DEFAULT_HORIZONTAL_CROSS_SECTION_GROUND_INTERPOLATION =
        "bilinear";

    public static final String PALETTES_KEY =
        "gnv.color.palettes";

    public static final String VERTICAL_CROSS_SECTION_SAMPLES_KEY =
        "gnv.vertical.cross.section.samples";

    public static final Dimension DEFAULT_VERTICAL_CROSS_SECTION_SAMPLES =
        new Dimension(1024, 768);

    public static final String VERTICAL_CROSS_SECTION_FILTER_FACTORIES_KEY =
        "gnv.vertical.cross.section.filter.factories";

    public static final String VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION_KEY =
        "gnv.vertical.cross.section.ground.interpolation";

    public static final String DEFAULT_VERTICAL_CROSS_SECTION_GROUND_INTERPOLATION =
        "bilinear";

    public static final String VERTICAL_CROSS_SECTION_GROUND_FILL_KEY =
        "gnv.vertical.cross.section.ground.fill";

    public static final Paint DEFAULT_VERTICAL_CROSS_SECTION_GROUND_FILL =
        new Color(0x7c8683);

    public GNVArtifactContext() {
        super();
        log.debug("GNVArtifactContext.Constructor");
    }

    public GNVArtifactContext(Document config) {
        super(config);
        log.debug("GNVArtifactContext.Constructor(config)");
    }

}

http://dive4elements.wald.intevation.org