view flys-artifacts/src/main/java/de/intevation/flys/jfree/CollisionFreeXYTextAnnotationEntity.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 79d1db7797e6
children
line wrap: on
line source
package de.intevation.flys.jfree;

import java.awt.Shape;

import org.jfree.chart.entity.XYAnnotationEntity;

/**
 * Chart Entity for XYTextAnnotations that should not collide.
 */
public class CollisionFreeXYTextAnnotationEntity
extends XYAnnotationEntity {
    public CollisionFreeXYTextAnnotationEntity(
        Shape hotspot,
        int rendererIndex,
        String toolTip,
        String url
    ) {
        super(hotspot, rendererIndex, toolTip, url);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org