public class PieChart extends AbstractChart
| Modifier and Type | Class and Description |
|---|---|
static class |
PieChart.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
protected DefaultCategoryDataset |
dataSet |
chart, chartEditorWrapper, chartManager, chartProperties, chartRenderer, chartRenderingInfo, dataSetEmpty, domainAxis, isAChartSymbol, isDirty, isVisible, legend, NO_DATA_MESSAGE, observers, rangeAxis| Constructor and Description |
|---|
PieChart() |
PieChart(PieChartProperties chartProps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeOverlayed()
Determine if a Chart can share it plot area with others
|
void |
draw(Graphics2D g,
Rectangle r)
This method draws a ChartService in a specific area.
|
LegendItemCollection |
getLegendItemCollection() |
Manager |
getManager()
Returns a reference to the
Manager which manages this server. |
protected ProviderManager |
getProviderManager()
Returns the reference to the
ProviderManager. |
ChartRenderer |
getRenderer()
It gets the renderer used to drawn the chart.
|
boolean |
hasDomainAxis()
Check if it has a DomainAxis (
ChartAxis) |
boolean |
hasRangeAxis()
Check if it has a RangeAxis (
ValueAxis) |
protected void |
initializeRenderers() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
scaleFonts(double ratio)
Method used to scale the fonts to be readable when the chart is resized
|
protected void |
updateChartService() |
addChartRenderer, addDefaultChartRenderer, addObserver, clone, createChartLegendItems, createLegend, createNewChartSerieEntity, deleteObserver, deleteObservers, getCategoriesPaint, getChartDataSet, getChartEditor, getChartLegend, getChartLegendItems, getChartName, getChartProperties, getChartRenderer, getChartRenderers, getChartRenderingInfo, getChartType, getDefaultChartRenderer, getDomainAxis, getInnerChart, getInternalChart, getNullGroupIgnored, getNumber, getRangeAxis, getRequiredFieldValue, isAChartSymbol, isVisible, loadSavedChartLegendItems, notifyObservers, refreshChart, setAxisVisibles, setBackgroundPaint, setBackgroundPaint, setCategoriesPaint, setChartDataSet, setChartLegend, setChartProperties, setChartRenderingInfo, setDirty, setDomainAxis, setDomainAxis, setFontScaled, setInnerChart, setIsAChartSymbol, setNullGroupIgnored, setRangeAxis, setRangeAxis, setVisible, toCategoryValue, toSerieValue, toXPixelValue, toYPixelValue, updategetProvider, getProviderServices, getServiceParameters, initpublic PieChart()
throws ServiceException
ServiceExceptionpublic PieChart(PieChartProperties chartProps)
protected void initializeRenderers()
initializeRenderers in class AbstractChartpublic Manager getManager()
ServiceManager which manages this server.Managerprotected ProviderManager getProviderManager()
AbstractServiceProviderManager.getProviderManager in class AbstractServicepublic void scaleFonts(double ratio)
ChartServicescaleFonts in interface ChartServicescaleFonts in class AbstractChartpublic void draw(Graphics2D g, Rectangle r)
ChartServiceprotected void updateChartService()
updateChartService in class AbstractChartpublic ChartRenderer getRenderer()
ChartServicegetRenderer in interface ChartServicegetRenderer in class AbstractChartpublic boolean hasDomainAxis()
ChartServiceChartAxis)public boolean hasRangeAxis()
ChartServiceValueAxis)public boolean canBeOverlayed()
ChartServicecanBeOverlayed in interface ChartServicecanBeOverlayed in class AbstractChartpublic LegendItemCollection getLegendItemCollection()
getLegendItemCollection in class AbstractChartpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractChartPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractChartPersistenceException