Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartExtender.java @ 8892:87a242425467
Introduced ChartExtender that allows to tweak the charts for very specific use cases.
author | gernotbelger |
---|---|
date | Thu, 15 Feb 2018 13:46:35 +0100 |
parents | |
children | 3ac9cb0029b2 |
comparison
equal
deleted
inserted
replaced
8891:f431aec10d2c | 8892:87a242425467 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package org.dive4elements.river.exports; | |
11 | |
12 import org.jfree.chart.plot.XYPlot; | |
13 | |
14 /** | |
15 * Implementors of this class can be used to tweak some very application specific behaviour within the charts.<br/> | |
16 * Implementations should not have a state, because they are instantiated only once. | |
17 * | |
18 * @author Gernot Belger | |
19 */ | |
20 public interface ChartExtender { | |
21 | |
22 /** | |
23 * Called after {@link DiagramGenerator#autoZoom(org.jfree.chart.plot.XYPlot)} was called, allows to tweak auto zoom | |
24 * behavior. | |
25 */ | |
26 void afterAutoZoom(DiagramGenerator generator); | |
27 | |
28 /** | |
29 * Called after the complete chart is generated. | |
30 * | |
31 * @param plot | |
32 */ | |
33 void afterGenerateChart(DiagramGenerator generator, XYPlot plot); | |
34 } |