Package net.simplace.core.ui.jfreechart
Klasse AbstractChartStyle
java.lang.Object
net.simplace.core.ui.jfreechart.AbstractChartStyle
- Alle implementierten Schnittstellen:
ChartStyle
- Bekannte direkte Unterklassen:
BasicChartStyle,DefaultSimChartStyle,XMLChartStyle
This class provides an abstract implementation for chart styles.
It implements the variables and methods for maintaining the type, the title(s)
and flags of the
ChartStyle interface.- 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 booleanStores whether a legend is generated for the chart (Default: true).protected FWObservableInstance of the used Observable.protected StringStores the chart title.protected booleanStores whether tool tips are generated for the chart data (Default: true).protected ChartStyle.ChartTypeStores the chart type.protected booleanStores whether URLs are generated for the chart (Default: true).protected StringStores the title of the charts X-Axis.protected StringStores the title of the charts Y-Axis. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a line style with default values.Creates a style with default values.AbstractChartStyle(ChartStyle.ChartType aType, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs) Creates a style. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetTitle()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.booleanReturns whether the chart is configured to generate a legend.booleanReturns whether the chart is configured to generate tooltips for the data.booleanhasURLs()Returns whether the chart is configured to generate URLs.voidsetLegend(boolean aLegend) Sets whether the chart is configured to generate a legend.voidsetObservable(FWObservable aObservable) voidSets the title for the chart.voidsetTooltips(boolean aTooltips) Sets whether the chart is configured to generate tooltips for the data.voidsetType(ChartStyle.ChartType aType) Sets the type of the chart style.voidsetURLs(boolean aURLs) Sets whether the chart is configured to generate URLs.voidsetXAxisTitle(String aTitle) Sets the title for the chart's X-axis.voidsetYAxisTitle(String aTitle) Sets the title for the chart's Y-axis.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden net.simplace.core.ui.jfreechart.ChartStyle
applyToDataset
-
Felddetails
-
iType
Stores the chart type.- Siehe auch:
-
iTitle
Stores the chart title. -
iXAxisTitle
Stores the title of the charts X-Axis. -
iYAxisTitle
Stores the title of the charts Y-Axis. -
iLegend
protected boolean iLegendStores whether a legend is generated for the chart (Default: true). -
iTooltips
protected boolean iTooltipsStores whether tool tips are generated for the chart data (Default: true). -
iURLs
protected boolean iURLsStores whether URLs are generated for the chart (Default: true). -
iObservable
Instance of the used Observable.
-
-
Konstruktordetails
-
AbstractChartStyle
public AbstractChartStyle()Creates a line style with default values. -
AbstractChartStyle
Creates a style with default values.- Parameter:
aType- style type
-
AbstractChartStyle
public AbstractChartStyle(ChartStyle.ChartType aType, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs) Creates a 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 toolstips are generatedaURLs- flag whether URLs are generated
-
-
Methodendetails
-
getType
Beschreibung aus Schnittstelle kopiert:ChartStyleReturns the type of the chart style.- Angegeben von:
getTypein SchnittstelleChartStyle- Gibt zurück:
- the type of the chart style.
-
setType
Sets the type of the chart style.- Parameter:
aType- the chart type
-
getTitle
Returns the title for the chart.- Angegeben von:
getTitlein SchnittstelleChartStyle- Gibt zurück:
- empty string if no title is set
-
setTitle
Sets the title for the chart.- Angegeben von:
setTitlein SchnittstelleChartStyle- Parameter:
aTitle- the new chart's title
-
getXAxisTitle
Returns the title for the chart's x-axis.- Angegeben von:
getXAxisTitlein SchnittstelleChartStyle- Gibt zurück:
- empty string if no title is set
-
setXAxisTitle
Sets the title for the chart's X-axis.- Parameter:
aTitle- the new X-axis title
-
getYAxisTitle
Returns the title for the chart's y-axis.- Angegeben von:
getYAxisTitlein SchnittstelleChartStyle- Gibt zurück:
- empty string if no title is set
-
setYAxisTitle
Sets the title for the chart's Y-axis.- Parameter:
aTitle- the new Y-axis title
-
hasLegend
public boolean hasLegend()Returns whether the chart is configured to generate a legend.- Angegeben von:
hasLegendin SchnittstelleChartStyle- Gibt zurück:
- Returns whether the chart is configured to generate a legend.
-
setLegend
public void setLegend(boolean aLegend) Sets whether the chart is configured to generate a legend.- Parameter:
aLegend-
-
hasTooltips
public boolean hasTooltips()Returns whether the chart is configured to generate tooltips for the data.- Angegeben von:
hasTooltipsin SchnittstelleChartStyle- Gibt zurück:
- Returns whether the chart is configured to generate tooltips for the data.
-
setTooltips
public void setTooltips(boolean aTooltips) Sets whether the chart is configured to generate tooltips for the data.- Parameter:
aTooltips-
-
hasURLs
public boolean hasURLs()Returns whether the chart is configured to generate URLs.- Angegeben von:
hasURLsin SchnittstelleChartStyle- Gibt zurück:
- Returns whether the chart is configured to generate URLs.
-
setURLs
public void setURLs(boolean aURLs) Sets whether the chart is configured to generate URLs.- Parameter:
aURLs-
-
setObservable
- Angegeben von:
setObservablein SchnittstelleChartStyle- Parameter:
aObservable-
-