Package net.simplace.core.ui.jfreechart
Klasse BasicChartStyle
java.lang.Object
net.simplace.core.ui.jfreechart.AbstractChartStyle
net.simplace.core.ui.jfreechart.BasicChartStyle
- Alle implementierten Schnittstellen:
ChartStyle
This class provides a basis chart style for line, area an bar charts.
- Version:
- 1.0
- Autor:
- Martin Schmitz
-
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.protected booleanStores whether the chart is stacked.protected booleanStores whether the chart is stepped.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.BasicChartStyle(ChartStyle.ChartType aType, boolean aStacked, boolean aStepped, org.jfree.chart.plot.PlotOrientation aOrientation) Creates a line, area or bar chart style.BasicChartStyle(ChartStyle.ChartType aType, boolean aStacked, boolean aStepped, org.jfree.chart.plot.PlotOrientation aOrientation, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs) 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.org.jfree.chart.plot.PlotOrientationReturns the orientation of the chart.booleanReturns whether the chart is stacked.booleanReturns whether the chart is stepped.voidsetOrientation(org.jfree.chart.plot.PlotOrientation aOrientation) Sets the orientation of the chart.voidsetStacked(boolean aStacked) Sets whether the chart is stacked.voidsetStepped(boolean aStepped) Sets whether the chart is stepped.voidsetType(ChartStyle.ChartType aType) Sets the type of the chart style.Von Klasse geerbte Methoden net.simplace.core.ui.jfreechart.AbstractChartStyle
getTitle, getType, getXAxisTitle, getYAxisTitle, hasLegend, hasTooltips, hasURLs, setLegend, setObservable, setTitle, setTooltips, setURLs, setXAxisTitle, setYAxisTitle
-
Felddetails
-
iOrientation
protected org.jfree.chart.plot.PlotOrientation iOrientationStores the orientation of the chart. -
iStacked
protected boolean iStackedStores whether the chart is stacked. Line charts can never be stacked. -
iStepped
protected boolean iSteppedStores whether the chart is stepped. Bar charts are always stepped.
-
-
Konstruktordetails
-
BasicChartStyle
public BasicChartStyle()Creates a normal line style with default values. -
BasicChartStyle
Creates a normal, vertical line, bar or area style.- Parameter:
aType- type of the chart layout
-
BasicChartStyle
public BasicChartStyle(ChartStyle.ChartType aType, boolean aStacked, boolean aStepped, org.jfree.chart.plot.PlotOrientation aOrientation) Creates a line, area or bar chart style.- Parameter:
aType- style typeaStacked- 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
-
BasicChartStyle
public BasicChartStyle(ChartStyle.ChartType aType, boolean aStacked, boolean aStepped, org.jfree.chart.plot.PlotOrientation aOrientation, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs) Creates a chart style.- Parameter:
aType- style typeaStacked- 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.HORIZONTALaTitle- 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 toolstips are generatedaURLs- flag whether URLs are generated
-
-
Methodendetails
-
setType
Sets the type of the chart style.- Setzt außer Kraft:
setTypein KlasseAbstractChartStyle- Parameter:
aType- the chart type- Löst aus:
IllegalArgumentException- ifis not ofUngültige Referenz
aTypeChartStyle.ChartType.LINE,ChartStyle.ChartType.AREAorChartStyle.ChartType.BAR
-
isStacked
public boolean isStacked()Returns whether the chart is stacked.- Gibt zurück:
falsefor line charts
-
setStacked
public void setStacked(boolean aStacked) Sets whether the chart is stacked. Sets theiStackedproperty tofalsefor line charts, evenaStackedistrue.- Parameter:
aStacked-
-
isStepped
public boolean isStepped()Returns whether the chart is stepped.- Gibt zurück:
truefor bar charts
-
setStepped
public void setStepped(boolean aStepped) Sets whether the chart is stepped. Sets theiSteppedproperty totruefor bar charts, evenaSteppedisfalse.- Parameter:
aStepped-
-
getOrientation
public org.jfree.chart.plot.PlotOrientation getOrientation()Returns the orientation of the chart.- Gibt zurück:
-
setOrientation
public void setOrientation(org.jfree.chart.plot.PlotOrientation aOrientation) Sets the orientation of the chart.- Parameter:
aOrientation-
-
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
-