KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > krysalis > jcharts > test > MultiPaintRenderer


1 package org.krysalis.jcharts.test;
2
3
4 import org.krysalis.jcharts.axisChart.customRenderers.axisValue.PreAxisValueRenderListener;
5 import org.krysalis.jcharts.axisChart.customRenderers.axisValue.AxisValueRenderEvent;
6
7
8 public class MultiPaintRenderer implements PreAxisValueRenderListener
9 {
10
11     /*********************************************************************************
12      *
13      * @param axisValueRenderEvent
14      *********************************************************************************/

15     public void preRender( AxisValueRenderEvent axisValueRenderEvent )
16     {
17       axisValueRenderEvent.getGraphics2D().setPaint( TestDataGenerator.getRandomPaint() );
18     }
19
20 }
21
Popular Tags