teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5994: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5994: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.exports; ingo@2049: ingo@2049: import org.jfree.chart.axis.NumberAxis; ingo@2049: felix@6425: /** Axis of which label and key differs. */ ingo@2049: public class IdentifiableNumberAxis extends NumberAxis { ingo@2049: ingo@2049: ingo@2049: protected String key; ingo@2049: ingo@2049: ingo@2049: protected IdentifiableNumberAxis(String key, String label) { ingo@2049: super(label); ingo@2049: this.key = key; ingo@2049: } ingo@2049: ingo@2049: ingo@2049: public String getId() { ingo@2049: return key; ingo@2049: } ingo@2049: } ingo@2049: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :