Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/utils/IdGenerator.java @ 5673:e1ba8273df07
Add saveguard not to include 0 in a scale for logarithmic axes
Including 0 or allowing negative values triggers a bug in the
jfreechart logarithmic axis code that causes values < 1 to be
drawn in carthesic coordinates.
Fixes:
flys/issue12345
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 12 Apr 2013 12:23:53 +0200 |
parents | e0e9a2629d7d |
children |
line wrap: on
line source
package de.intevation.flys.utils; public class IdGenerator { protected int id; public IdGenerator() { } public IdGenerator(int id) { this.id = id; } public int next() { return id++; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :