KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > laures > cewolf > event > ChartImageRenderListener


1 /**
2  * Copyright (c) 2005, Cambridge Technology Partners
3  *
4  * $Id: ChartImageRenderListener.java,v 1.1 2005/10/09 22:05:16 brianfox Exp $
5  */

6 package de.laures.cewolf.event;
7
8 import de.laures.cewolf.util.RenderedImage;
9
10 /**
11  * Event listener called back after the image is rendered. ChartPostProcessors
12  * may implement this interface to get notified when the image gets rendered.
13  * It is useful to retrieve the JFreeChart's ChartRenderingInfo object.
14  *
15  * <pre>
16  * public void onImageRendered (RenderedImage renderedImage) {
17  * ChartRenderingInfo info = (ChartRenderingInfo) renderedImage.renderingInfo;
18  * ...
19  * }
20  * </pre>
21  *
22  * @author zluspai
23  */

24 public interface ChartImageRenderListener {
25     
26     /**
27      * Callback right after a new image gets rendered.
28      *
29      * @param renderedImage The fresh image just got rendered
30      */

31     public void onImageRendered (RenderedImage renderedImage);
32     
33 }
34
Popular Tags