public interface ChartService extends Service, Persistent, Cloneable
ChartProperties that contains its characteristics.ChartProperties| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeOverlayed()
Determine if a Chart can share it plot area with others
|
ChartService |
clone() |
void |
createChartLegendItems() |
ChartSerieEntity |
createNewChartSerieEntity(Object item) |
void |
draw(Graphics2D g,
Rectangle r)
This method draws a ChartService in a specific area.
|
ChartDataSet |
getChartDataSet()
Obtains the ChartService's data that is used on the chart
|
ChartEditor |
getChartEditor() |
ChartLegendItem |
getChartLegend() |
List<ChartSerieEntity> |
getChartLegendItems() |
String |
getChartName()
Get the name of the service
|
ChartProperties |
getChartProperties()
Get the ChartService's definition using a
ChartProperties object. |
ChartRenderer |
getChartRenderer()
Returns a ChartRenderer using its ID
|
Map<String,ChartRenderer> |
getChartRenderers()
With this method, you can get all the available renderers to this
type of ChartService.
|
ChartRenderingInfo |
getChartRenderingInfo() |
String |
getChartType()
Get the ChartService's type.
|
List<ChartAxis> |
getDomainAxis()
Useful to get the DomainAxis of a ChartService
|
Object |
getInnerChart()
Useful to swing part.
|
List<ValueAxis> |
getRangeAxis()
Get the
ValueAxis of a ChartService |
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) |
boolean |
isVisible()
Check if it's visible or not
|
void |
loadSavedChartLegendItems() |
void |
refreshChart() |
void |
scaleFonts(double myScale)
Method used to scale the fonts to be readable when the chart is resized
|
void |
setAxisVisibles(boolean b) |
void |
setBackgroundPaint(float f)
Defines the alpha value of the background (from 0.0 to 1.0)
|
void |
setBackgroundPaint(Paint p)
Defines an specific
Paint to the chart's background |
void |
setCategoriesPaint(List<Color> colors) |
void |
setChartDataSet(ChartDataSet data)
Insert a ChartDataSet to the service
|
void |
setChartLegend(ChartLegendItem legend) |
void |
setDirty(boolean dirty) |
void |
setDomainAxis(ChartAxis axis)
Assign a
ChartAxis in a ChartService |
void |
setDomainAxis(List<ChartAxis> domainAxis)
Assign a set of
ChartAxis in a ChartService |
void |
setFontScaled(Font myScale) |
void |
setIsAChartSymbol(boolean b) |
void |
setRangeAxis(List<ValueAxis> rangeAxis)
Assign a set of
ValueAxis in a ChartService |
void |
setRangeAxis(ValueAxis axis)
Assign a
ValueAxis in a ChartService |
void |
setVisible(boolean isVisible)
Set a flag to the ChartService to be visible or not
|
Object |
toCategoryValue(int idSerie,
int pixelY) |
Object |
toSerieValue(int idSerie,
int pixelX) |
int |
toXPixelValue(int idSerie,
Object value) |
int |
toYPixelValue(int idSerie,
Object value) |
void |
update()
Refresh chart information
|
getManagerloadFromState, saveToStatevoid draw(Graphics2D g, Rectangle r)
the - graphics where it will be painted and the area of it to be drawObject toSerieValue(int idSerie, int pixelX)
int toXPixelValue(int idSerie,
Object value)
Object toCategoryValue(int idSerie, int pixelY)
int toYPixelValue(int idSerie,
Object value)
ChartDataSet getChartDataSet()
ChartDataSetvoid setChartDataSet(ChartDataSet data)
the - ChartDataSet to be drawn by the ChartServiceChartProperties getChartProperties()
ChartProperties object.ChartPropertiesChartRenderingInfo getChartRenderingInfo()
ChartEditor getChartEditor()
String getChartType()
String getChartName()
Object getInnerChart()
ChartRenderer getRenderer()
Map<String,ChartRenderer> getChartRenderers()
ChartRenderer getChartRenderer()
ChartRenderer's - nameboolean hasDomainAxis()
ChartAxis)boolean hasRangeAxis()
ValueAxis)List<ChartAxis> getDomainAxis()
ChartAxis) that compounds the chartList<ValueAxis> getRangeAxis()
ValueAxis of a ChartServiceValueAxis) that compounds the chartvoid setRangeAxis(List<ValueAxis> rangeAxis)
ValueAxis in a ChartServiceList - of ValueAxisvoid setRangeAxis(ValueAxis axis)
ValueAxis in a ChartService{@link - ValueAxis}void setDomainAxis(List<ChartAxis> domainAxis)
ChartAxis in a ChartServiceList - of ChartAxisvoid setDomainAxis(ChartAxis axis)
ChartAxis in a ChartService{@link - ChartAxis}void setBackgroundPaint(Paint p)
Paint to the chart's backgroundthe - Paint set to the backgroundvoid setBackgroundPaint(float f)
f - alpha valuevoid scaleFonts(double myScale)
myScale - boolean isVisible()
void setVisible(boolean isVisible)
isVisible - List<ChartSerieEntity> getChartLegendItems()
void createChartLegendItems()
ChartLegendItem getChartLegend()
void setChartLegend(ChartLegendItem legend)
void update()
boolean canBeOverlayed()
ChartService clone()
void loadSavedChartLegendItems()
void setIsAChartSymbol(boolean b)
void setDirty(boolean dirty)
ChartSerieEntity createNewChartSerieEntity(Object item)
void setFontScaled(Font myScale)
void setAxisVisibles(boolean b)
void refreshChart()