Package net.simplace.core.ui.jfreechart
Klasse DefaultSimChartStyle
java.lang.Object
net.simplace.core.ui.jfreechart.AbstractChartStyle
net.simplace.core.ui.jfreechart.DefaultSimChartStyle
- Alle implementierten Schnittstellen:
ChartStyle
This class provides a basis chart style for line, area an bar charts.
- Version:
- 1.0
- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.simplace.core.ui.jfreechart.ChartStyle
ChartStyle.ChartType -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected org.jfree.chart.plot.PlotOrientationStores the orientation of the chart.Von Klasse geerbte Felder net.simplace.core.ui.jfreechart.AbstractChartStyle
iLegend, iObservable, iTitle, iTooltips, iType, iURLs, iXAxisTitle, iYAxisTitle -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a normal line style with default values.Creates a normal, vertical line, bar or area style.DefaultSimChartStyle(ChartStyle.ChartType aType, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs, Map<org.jfree.data.general.Dataset, FWSimVariable<?>> aDatasetMap, FWSimIOAdapter.FREQUENCE aFrequence) Creates a chart style. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.jfree.chart.JFreeChartapplyToDataset(List<org.jfree.data.general.Dataset> aDataset) Generates a chart using the given data and the style represented by this class.Von Klasse geerbte Methoden net.simplace.core.ui.jfreechart.AbstractChartStyle
getTitle, getType, getXAxisTitle, getYAxisTitle, hasLegend, hasTooltips, hasURLs, setLegend, setObservable, setTitle, setTooltips, setType, setURLs, setXAxisTitle, setYAxisTitle
-
Felddetails
-
iOrientation
protected org.jfree.chart.plot.PlotOrientation iOrientationStores the orientation of the chart.
-
-
Konstruktordetails
-
DefaultSimChartStyle
public DefaultSimChartStyle()Creates a normal line style with default values. -
DefaultSimChartStyle
Creates a normal, vertical line, bar or area style.- Parameter:
aType- type of the chart layout
-
DefaultSimChartStyle
public DefaultSimChartStyle(ChartStyle.ChartType aType, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs, Map<org.jfree.data.general.Dataset, FWSimVariable<?>> aDatasetMap, FWSimIOAdapter.FREQUENCE aFrequence) Creates a chart style.- Parameter:
aType- style typeaTitle- title for the chartaXTitle- title for the chart's X-axisaYTitle- title for the chart's Y-axisaLegend- flag whether a legend is generatedaTooltips- flag whether tool tips are generatedaURLs- flag whether URLs are generatedaDatasetMap-aFrequence-aStacked- flag whether the chart is stacked (ignored for line charts)aStepped- flag whether the chart is stepped (ignored for bar charts)aOrientation- orientation of the chart (orUngültige Referenz
PlotOrientation.VERTICAL)Ungültige Referenz
PlotOrientation.HORIZONTAL
-
-
Methodendetails
-
applyToDataset
Generates a chart using the given data and the style represented by this class.- Parameter:
aDataset- the data for the chart- Gibt zurück:
- JFreeChart
- Löst aus:
UnsupportedOperationException- if the style can not be applied to the given dataset
-