jsynoptic.plugins.jfreechart
Class JSynopticXYItemRendererHelper
java.lang.Object
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
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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()