view gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java @ 364:2413273f1c13

Workarround: Store lower and upper bounds of data while iterating over all data and set the max range of axes with these information. JFreeCharts method NumberAxis.setAutoRange(true) doesn't seem to work properly. gnv-artifacts/trunk@439 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 16 Dec 2009 11:58:44 +0000
parents 3ea030aafe65
children a0e63136954e
line wrap: on
line source
package de.intevation.gnv.exports;


/**
 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de)
 */
public class DefaultProfile
implements   Export.Profile
{
    protected Export.DataCollector collector;
    protected String []            header;
    protected String []            names;
    protected char                 separator;
    protected char                 escapeCharacter;
    protected char                 quoteCharacter;
    protected String               type;
    protected String               encoding;

    public DefaultProfile() {
    }

    public DefaultProfile(
        String []            header,
        char                 separator,
        char                 escapeCharacter,
        char                 quoteCharacter,
        String               type,
        String               encoding
    ) {
        this.header          = header;
        this.separator       = separator;
        this.escapeCharacter = escapeCharacter;
        this.quoteCharacter  = quoteCharacter;
        this.type            = type;
        this.encoding        = encoding;
    }

    public String toString(int index, String value) {
        return value;
    }

    public char getSeparator() {
        return separator;
    }

    public char getEscapeCharacter() {
        return escapeCharacter;
    }

    public char getQuoteCharacter() {
        return quoteCharacter;
    }

    public String getType() {
        return type;
    }

    public String getEncoding() {
        return encoding;
    }

    public String[] getHeader() {
        return header;
    }
}

http://dive4elements.wald.intevation.org