Package net.simplace.core.ui.jfreechart
Interface ChartStyle
- All Known Implementing Classes:
AbstractChartStyle,BasicChartStyle,DefaultSimChartStyle,XMLChartStyle
public interface ChartStyle
This interface is a general super class for a design style of a
JFreeChart.
Sub classes should read the style from an xml element or something like that.
Maybe there could be a general implementation representing a style for
basic charts (bar, line and area charts) and special implementations for
special chart types (e.g. financial, statistical oder spider charts).- Version:
- 1.0
- Author:
- Martin Schmitz
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnum representing the style type of a chart (bar, line, area) -
Method Summary
Modifier and TypeMethodDescriptionorg.jfree.chart.JFreeChartapplyToDataset(List<org.jfree.data.general.Dataset> aDatasetList) getTitle()Returns the title for the chart.getType()Returns the type of the chart style.Returns the title for the chart's x-axis.Returns the title for the chart's y-axis.booleanbooleanbooleanhasURLs()voidsetObservable(FWObservable aObservable) voidReturns the title for the chart.
-
Method Details
-
getType
ChartStyle.ChartType getType()Returns the type of the chart style.- Returns:
- the type of the chart style
-
getTitle
String getTitle()Returns the title for the chart.- Returns:
- empty string if no title is set
-
setTitle
Returns the title for the chart.- Parameters:
aTitle-
-
getXAxisTitle
String getXAxisTitle()Returns the title for the chart's x-axis.- Returns:
- empty string if no title is set
-
getYAxisTitle
String getYAxisTitle()Returns the title for the chart's y-axis.- Returns:
- empty string if no title is set
-
hasLegend
boolean hasLegend()- Returns:
- Returns whether the chart is configured to generate a legend.
-
hasTooltips
boolean hasTooltips()- Returns:
- Returns whether the chart is configured to generate tooltips for the data.
-
hasURLs
boolean hasURLs()- Returns:
- Returns whether the chart is configured to generate URLs.
-
applyToDataset
- Parameters:
aDatasetList- the data for the chart- Returns:
- a chart using the given data and the style represented by this class.
- Throws:
UnsupportedOperationException- if the style can not be applied to the given dataset
-
setObservable
- Parameters:
aObservable-
-