view gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TestCallContext.java @ 522:c896282c2601

Issue 156 solved. Added width, height and points as parameter to svg and pdf output mode. Width and height have an effact on the width and height of the export, points is a boolean property which enables/disables the drawing of data points. gnv-artifacts/trunk@616 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 25 Jan 2010 09:18:31 +0000
parents 4939236c2dc9
children 9a828e5a2390
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.artifacts;

import de.intevation.artifacts.ArtifactDatabase;
import de.intevation.artifacts.ArtifactFactory;
import de.intevation.artifacts.CallContext;
import de.intevation.artifacts.CallMeta;

/**
 * @author Tim Englich <tim.englich@intevation.de>
 * 
 */
public class TestCallContext implements CallContext {



    private Object globalContext = null;
    private CallMeta callMeta = null;
    private ArtifactFactory artifactFactory = null;
    private ArtifactDatabase artifactDatabase = null;
    /**
     * Constructor
     */
    public TestCallContext(Object globalContext, 
                           CallMeta callMeta, 
                           ArtifactFactory artifactFactory) {
        this.globalContext = globalContext;
        this.callMeta = callMeta;
        this.artifactDatabase  = new TestArtifactDatabase(artifactFactory);
    }

    /**
     * @see de.intevation.artifacts.CallContext#afterBackground(int)
     */
    public void afterBackground(int action) {
    }

    /**
     * @see de.intevation.artifacts.CallContext#afterCall(int)
     */
    public void afterCall(int action) {
    }

    /**
     * @see de.intevation.artifacts.CallContext#globalContext()
     */
    public Object globalContext() {
        return this.globalContext;
    }

    public CallMeta getMeta() {
        return this.callMeta;
    }

    public Object getContextValue(Object key) {
        return null;
    }

    public Object putContextValue(Object key, Object value) {
        return null;
    }

    public ArtifactDatabase getDatabase() {
        return this.artifactDatabase;
    }
}

http://dive4elements.wald.intevation.org