public abstract class AbstractXYChart extends AbstractChart
AbstractChart.RegisterPersistence
Modifier and Type | Field and Description |
---|---|
protected ChartServiceManager |
serviceManager |
protected Dataset |
XYDataSet |
chart, chartEditorWrapper, chartManager, chartProperties, chartRenderer, chartRenderingInfo, dataSet, dataSetEmpty, domainAxis, isAChartSymbol, isDirty, isVisible, legend, NO_DATA_MESSAGE, observers, rangeAxis
Constructor and Description |
---|
AbstractXYChart(ChartProperties props) |
Modifier and Type | Method and Description |
---|---|
protected CategoryItemRenderer |
create3DLegendRenderer() |
protected DefaultCategoryDataset |
createCategoriesCollection(DefaultCategoryDataset previous,
boolean isCurrent) |
protected CategoryItemRenderer |
createLegendRenderer() |
protected AbstractXYDataset |
createSeriesCollection() |
protected void |
defineChartDataSet() |
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 LegendItemSource |
getPlotRenderer() |
protected ProviderManager |
getProviderManager()
Returns the reference to the
ProviderManager . |
ChartRenderer |
getRenderer()
It gets the renderer used to drawn the chart.
|
protected String |
getType() |
boolean |
hasDomainAxis()
Check if it has a DomainAxis (
ChartAxis ) |
boolean |
hasRangeAxis()
Check if it has a RangeAxis (
ValueAxis ) |
boolean |
isXYPlot() |
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 |
setAxisVisibility(boolean visible) |
protected void |
updateChartService() |
addChartRenderer, addDefaultChartRenderer, addObserver, canBeOverlayed, 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, initializeRenderers, 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
protected ChartServiceManager serviceManager
protected Dataset XYDataSet
public AbstractXYChart(ChartProperties props)
public boolean isXYPlot()
public Manager getManager()
Service
Manager
which manages this server.Manager
protected ProviderManager getProviderManager()
AbstractService
ProviderManager
.getProviderManager
in class AbstractService
protected void setAxisVisibility(boolean visible)
public ChartRenderer getRenderer()
ChartService
getRenderer
in interface ChartService
getRenderer
in class AbstractChart
public boolean hasDomainAxis()
ChartService
ChartAxis
)public boolean hasRangeAxis()
ChartService
ValueAxis
)protected LegendItemSource getPlotRenderer()
public LegendItemCollection getLegendItemCollection()
getLegendItemCollection
in class AbstractChart
protected DefaultCategoryDataset createCategoriesCollection(DefaultCategoryDataset previous, boolean isCurrent)
protected AbstractXYDataset createSeriesCollection()
protected void defineChartDataSet()
protected void updateChartService()
updateChartService
in class AbstractChart
protected CategoryItemRenderer createLegendRenderer()
protected CategoryItemRenderer create3DLegendRenderer()
public void draw(Graphics2D g, Rectangle r)
ChartService
protected String getType()
public void scaleFonts(double ratio)
ChartService
scaleFonts
in interface ChartService
scaleFonts
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