jsynoptic.plugins.jfreechart
Class JSynopticXYItemRendererHelper

java.lang.Object
  extended by jsynoptic.plugins.jfreechart.JSynopticXYItemRendererHelper
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class JSynopticXYItemRendererHelper
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Extended XY Item Renderer that makes distiction between primary, secondary, etc... sources of information. Color and legend items change according to the x_ary parameter.

See Also:
Serialized Form

Nested Class Summary
protected  class JSynopticXYItemRendererHelper.XAryLegendItem
           
 
Field Summary
protected  java.util.Vector colorMappers
          the color mappers for the series
static MenuResourceBundle resources
           
protected  java.util.Vector sources
          the data sources used together with the color mappers for the series
protected  DrawingSupplier supplier
          only used to avoid creating the same object multiple times
protected  int x_ary
           
 
Constructor Summary
JSynopticXYItemRendererHelper()
          Default is to build a renderer for the primary source of information
JSynopticXYItemRendererHelper(int x_ary)
           
 
Method Summary
 JSynopticXYItemRendererHelper cloneHelper()
           
 ColorMapper getColorMapper(int i)
           
 DataSource getDataSource(int i)
           
 DrawingSupplier getDrawingSupplier()
           
 java.awt.Paint getItemPaint(JSynopticXYItemRenderer renderer, int row, int column)
           
 LegendItem getLegendItem(JSynopticXYItemRenderer renderer, int datasetIndex, int series)
           
 java.awt.Paint getSeriesPaint(JSynopticXYItemRenderer renderer, int series)
           
 ColorMapper removeColorMapper(int i)
           
 DataSource removeDataSource(int i)
           
 void setColorMapper(int i, ColorMapper colorMapper)
           
 void setDataSource(int i, DataSource ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

public static MenuResourceBundle resources

x_ary

protected int x_ary

supplier

protected transient DrawingSupplier supplier
only used to avoid creating the same object multiple times


colorMappers

protected java.util.Vector colorMappers
the color mappers for the series


sources

protected transient java.util.Vector sources
the data sources used together with the color mappers for the series

Constructor Detail

JSynopticXYItemRendererHelper

public JSynopticXYItemRendererHelper()
Default is to build a renderer for the primary source of information


JSynopticXYItemRendererHelper

public JSynopticXYItemRendererHelper(int x_ary)
Parameters:
x_ary - Set to 1,2,3... if the renderer is destinated to primary, secondary, tertiary... information
Method Detail

getColorMapper

public ColorMapper getColorMapper(int i)
Returns:

setColorMapper

public void setColorMapper(int i,
                           ColorMapper colorMapper)
Parameters:
colorMapper -

getDataSource

public DataSource getDataSource(int i)
Returns:

setDataSource

public void setDataSource(int i,
                          DataSource ds)
Parameters:
-

removeColorMapper

public ColorMapper removeColorMapper(int i)
Returns:

removeDataSource

public DataSource removeDataSource(int i)
Returns:

getDrawingSupplier

public DrawingSupplier getDrawingSupplier()

getLegendItem

public LegendItem getLegendItem(JSynopticXYItemRenderer renderer,
                                int datasetIndex,
                                int series)

getItemPaint

public java.awt.Paint getItemPaint(JSynopticXYItemRenderer renderer,
                                   int row,
                                   int column)

getSeriesPaint

public java.awt.Paint getSeriesPaint(JSynopticXYItemRenderer renderer,
                                     int series)

cloneHelper

public JSynopticXYItemRendererHelper cloneHelper()