1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/cewolf-1.0/src/main/java/de/laures/cewolf/ChartPostProcessor.java Sat Feb 28 21:31:02 2009 +0100
1.3 @@ -0,0 +1,50 @@
1.4 +/* ================================================================
1.5 + * Cewolf : Chart enabling Web Objects Framework
1.6 + * ================================================================
1.7 + *
1.8 + * Project Info: http://cewolf.sourceforge.net
1.9 + * Project Lead: Guido Laures (guido@laures.de);
1.10 + *
1.11 + * (C) Copyright 2002, by Guido Laures
1.12 + *
1.13 + * This library is free software; you can redistribute it and/or modify it under the terms
1.14 + * of the GNU Lesser General Public License as published by the Free Software Foundation;
1.15 + * either version 2.1 of the License, or (at your option) any later version.
1.16 + *
1.17 + * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
1.18 + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1.19 + * See the GNU Lesser General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU Lesser General Public License along with this
1.22 + * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
1.23 + * Boston, MA 02111-1307, USA.
1.24 + */
1.25 +
1.26 +package de.laures.cewolf;
1.27 +
1.28 +import java.util.Map;
1.29 +
1.30 +/**
1.31 + * Postprocesses a generated chart instance. Objects of this class can be used to
1.32 + * customize a generated and afterwards rendered chart instance additionally.
1.33 + * To provide a postprocessor the <chartpostprocessor> tag is used.
1.34 + * There can be an unlimited number of postprocessors registered.
1.35 + * @see de.laures.cewolf.taglib.tags.ChartPostProcessorTag
1.36 + * @author Guido Laures
1.37 + */
1.38 +public interface ChartPostProcessor {
1.39 +
1.40 + /**
1.41 + * Processes a generated chart. This method is called by the ChartProducer
1.42 + * after a chart instance is generated and before it is rendered (if so).
1.43 + * The ChartProducer is responsible for post processing a chart dependant
1.44 + * on and only on the provided parameters. This means that the same parameters
1.45 + * should result in the same post processings.
1.46 + * @param chart the chart instnce. Concrete class depends on the rendering
1.47 + * implementation. Currently a org.jfree.chart.JFreeChart is passed.
1.48 + * @param params paramters passed to the postprocessor. These are defined in the JSP
1.49 + * @see de.laures.cewolf.taglib.tags.ChartPostProcessorTag
1.50 + */
1.51 + void processChart(Object chart, Map params);
1.52 +
1.53 +}