public class DefaultChartRenderer extends Object implements ChartRenderer
Modifier and Type | Field and Description |
---|---|
protected AbstractRenderer |
catRenderer |
protected boolean |
isXYPlot |
protected Plot |
plot |
protected AbstractRenderer |
xyRenderer |
Constructor and Description |
---|
DefaultChartRenderer() |
DefaultChartRenderer(Object renderer) |
DefaultChartRenderer(Object catrenderer,
Object xyrenderer) |
Modifier and Type | Method and Description |
---|---|
Font |
getBaseItemLabelFont()
Obtains the default Font of the labels
|
AbstractRenderer |
getCatRenderer() |
Object |
getChartRenderer()
Useful to swing part.
|
String |
getChartRendererName()
Gets the name that represent the ChartRenderer
|
AbstractRenderer |
getXYRenderer() |
void |
setBaseItemLabelFont(Font font)
Sets the Default Font for the labels
|
void |
setBaseItemLabelsVisible(boolean visible)
Set visibles the data labels
|
void |
setBasePositiveItemLabelPosition(String b) |
void |
setCategoryItemLabelGenerator(boolean b) |
void |
setCatRenderer(AbstractRenderer catRenderer) |
void |
setIsXYPlot(boolean b) |
void |
setItemMargin(float f) |
void |
setRenderer(Object renderer) |
void |
setSeriesPaint(int i,
Paint p) |
void |
setXYRenderer(AbstractRenderer xyRenderer) |
protected AbstractRenderer catRenderer
protected AbstractRenderer xyRenderer
protected Plot plot
protected boolean isXYPlot
public DefaultChartRenderer(Object renderer)
public DefaultChartRenderer()
public AbstractRenderer getCatRenderer()
getCatRenderer
in interface ChartRenderer
public void setCatRenderer(AbstractRenderer catRenderer)
public AbstractRenderer getXYRenderer()
getXYRenderer
in interface ChartRenderer
public void setXYRenderer(AbstractRenderer xyRenderer)
public Object getChartRenderer()
ChartRenderer
ChartService
with his own renderers
using an underlaying library, the main object can be reached by
this method. In our case, the object will be a JFreeChart renderer, but
if not, the Swing library can make its own cast.getChartRenderer
in interface ChartRenderer
public void setRenderer(Object renderer)
public void setSeriesPaint(int i, Paint p)
setSeriesPaint
in interface ChartRenderer
public Font getBaseItemLabelFont()
ChartRenderer
getBaseItemLabelFont
in interface ChartRenderer
public String getChartRendererName()
ChartRenderer
getChartRendererName
in interface ChartRenderer
public void setIsXYPlot(boolean b)
setIsXYPlot
in interface ChartRenderer
public void setItemMargin(float f)
setItemMargin
in interface ChartRenderer
public void setBaseItemLabelsVisible(boolean visible)
ChartRenderer
setBaseItemLabelsVisible
in interface ChartRenderer
public void setBaseItemLabelFont(Font font)
ChartRenderer
setBaseItemLabelFont
in interface ChartRenderer
public void setCategoryItemLabelGenerator(boolean b)
setCategoryItemLabelGenerator
in interface ChartRenderer
public void setBasePositiveItemLabelPosition(String b)
setBasePositiveItemLabelPosition
in interface ChartRenderer