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, update
getProvider, getProviderServices, getServiceParameters, init
public PieChart() throws ServiceException
ServiceException
public PieChart(PieChartProperties chartProps)
protected void initializeRenderers()
initializeRenderers
in class AbstractChart
public Manager getManager()
Service
Manager
which manages this server.Manager
protected ProviderManager getProviderManager()
AbstractService
ProviderManager
.getProviderManager
in class AbstractService
public void scaleFonts(double ratio)
ChartService
scaleFonts
in interface ChartService
scaleFonts
in class AbstractChart
public void draw(Graphics2D g, Rectangle r)
ChartService
protected void updateChartService()
updateChartService
in class AbstractChart
public ChartRenderer getRenderer()
ChartService
getRenderer
in interface ChartService
getRenderer
in class AbstractChart
public boolean hasDomainAxis()
ChartService
ChartAxis
)public boolean hasRangeAxis()
ChartService
ValueAxis
)public boolean canBeOverlayed()
ChartService
canBeOverlayed
in interface ChartService
canBeOverlayed
in class AbstractChart
public LegendItemCollection getLegendItemCollection()
getLegendItemCollection
in class AbstractChart
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractChart
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractChart
PersistenceException