view flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java @ 561:460b8e0f0563

Parse the min/max axes ranges for the ChartInfo and modified the zoom and pan actions to match the current server implementation. flys-client/trunk@2096 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 09 Jun 2011 10:57:42 +0000
parents a1048d310829
children 5277f46a63c2
line wrap: on
line source
package de.intevation.flys.client.shared.model;


/**
 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
 */
public class DefaultTheme implements Theme {

    protected int position;

    protected boolean active;

    protected String artifact;

    protected String facet;


    public DefaultTheme() {
    }


    public DefaultTheme(int pos, boolean active, String art, String facet) {
        this.position = pos;
        this.active   = active;
        this.artifact = art;
        this.facet    = facet;
    }


    public int getPosition() {
        return position;
    }


    public void setPosition(int pos) {
        this.position = pos;
    }


    public boolean isActive() {
        return active;
    }


    public void setActive(boolean active) {
        this.active = active;
    }


    public String getArtifact() {
        return artifact;
    }


    public String getFacet() {
        return facet;
    }


    public boolean equals(Object o) {
        if (!(o instanceof DefaultTheme)) {
            return false;
        }

        DefaultTheme other = (DefaultTheme) o;

        if (other.position != position) {
            return false;
        }

        if (!other.artifact.equals(artifact)) {
            return false;
        }

        if (other.active != active) {
            return false;
        }

        if (!other.facet.equals(facet)) {
            return false;
        }

        return true;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org