net.simplace.core.ui.jfreechart.AbstractChartStyle
Version: 1.0
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.
public abstract class AbstractChartStyle implements ChartStyle {
// Public Constructors
public AbstractChartStyle();
public AbstractChartStyle(ChartStyle.ChartType aType);
public AbstractChartStyle(ChartStyle.ChartType aType, String aTitle, String
aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean
aURLs);
// Protected Instance Variables
protected ChartStyle.ChartType iType;
protected String iTitle;
protected String iXAxisTitle;
protected String iYAxisTitle;
protected boolean iLegend;
protected boolean iTooltips;
protected boolean iURLs;
protected FWObservable iObservable;
// Public Instance Methods public String
getTitle();
// From ChartStyle
Returns the title for the chart.
returns empty string if no title is set
public void
setTitle(String aTitle);
// From ChartStyle
Sets the title for the chart.
- aTitle the new chart's title
public String
getXAxisTitle();
// From ChartStyle
Returns the title for the chart's x-axis.
returns empty string if no title is set
public void
setXAxisTitle(String aTitle);
Sets the title for the chart's X-axis.
- aTitle the new X-axis title
public String
getYAxisTitle();
// From ChartStyle
Returns the title for the chart's y-axis.
returns empty string if no title is set
public void
setYAxisTitle(String aTitle);
Sets the title for the chart's Y-axis.
- aTitle the new Y-axis title
public boolean
hasLegend();
// From ChartStyle
Returns whether the chart is configured to generate a legend.
public void
setLegend(boolean aLegend);
Sets whether the chart is configured to generate a legend.
public boolean
hasTooltips();
// From ChartStyle
Returns whether the chart is configured to generate tooltips for the data.
public void
setTooltips(boolean aTooltips);
Sets whether the chart is configured to generate tooltips for the data.
public boolean
hasURLs();
// From ChartStyle
Returns whether the chart is configured to generate URLs.
public void
setURLs(boolean aURLs);
Sets whether the chart is configured to generate URLs.
}
Extended by: BasicChartStyle, DefaultSimChartStyle, net.simplace.core.ui.jfreechart.style.XMLChartStyle