net.simplace.util.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 ChartStyle.ChartType getType(); // From ChartStyle


returns the type of the chart style.
public void setType(ChartStyle.ChartType aType);

Sets the type of the chart style.
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.
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.
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.
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.
public void setObservable(FWObservable aObservable); // From ChartStyle



}



Extended by: BasicChartStyle, DefaultSimChartStyle, net.simplace.util.jfreechart.style.XMLChartStyle