org.askalon.graph.chart.base
Class AbstractChart

java.lang.Object
  extended by org.askalon.graph.chart.base.AbstractChart
All Implemented Interfaces:
Cleanable, Chart

public abstract class AbstractChart
extends Object
implements Chart

The abstract superclass for all charts, implementing some basic functionality.

Author:
Georg Schild and Franz Endstrasser

Method Summary
 void cleanUp()
          Cleans references of the chart.
 ChartConfiguration getChartConfiguration()
           
 Legend getLegend()
          Gets the legend of this chart.
 String getUnit()
          Gets the unit string displayed next to the values.
 String getXAxisText()
          Gets the text of the x-axis.
 String getYAxisText()
          Gets the text of the y-axis.
 boolean isDisableUpdate()
          Gets the state of updates (enabled/disabled) for the chart.
 boolean isEdgesVisible()
          Gets the visibility of edges.
 void refreshConfiguration()
          Refreshes the configuration of this chart, which makes changes visible.
 void setChartConfiguration(ChartConfiguration cc)
          Sets a new configuration for this chart.
 void setDisableUpdate(boolean disableUpdate)
          Disables updates for the chart.
 void setEdgesVisible(boolean edgesVisible)
          Enables/disables the visibility of edges for this chart.
 void setUnit(String unit)
          Sets the current unit of this chart and updates it accordingly.
 void setXAxisText(String x)
          Sets the text of the x-axis for this chart.
 void setYAxisText(String y)
          Sets the text of the y-axis for this chart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.askalon.graph.chart.Chart
getChartMenu, getChartName, resetConfiguration
 

Method Detail

setChartConfiguration

public void setChartConfiguration(ChartConfiguration cc)
Description copied from interface: Chart
Sets a new configuration for this chart.

Specified by:
setChartConfiguration in interface Chart
Parameters:
cc - the new chart configuration
See Also:
ChartConfiguration, Chart.resetConfiguration(), Chart.refreshConfiguration()

getChartConfiguration

public ChartConfiguration getChartConfiguration()
Specified by:
getChartConfiguration in interface Chart
Returns:
the chart's ChartConfiguration or null if none was set
See Also:
ChartConfiguration, Chart.resetConfiguration(), Chart.refreshConfiguration()

refreshConfiguration

public void refreshConfiguration()
Description copied from interface: Chart
Refreshes the configuration of this chart, which makes changes visible. Is called automatically by the supported actions.

Specified by:
refreshConfiguration in interface Chart
See Also:
ChartConfiguration, Chart.resetConfiguration(), Chart.setChartConfiguration(ChartConfiguration)

cleanUp

public void cleanUp()
Description copied from interface: Cleanable
Cleans references of the chart. Will usually be called by the finalize() Method of the chart.

Specified by:
cleanUp in interface Cleanable

getXAxisText

public String getXAxisText()
Description copied from interface: Chart
Gets the text of the x-axis.

Specified by:
getXAxisText in interface Chart
Returns:
the text of the x-axis of this chart as string
See Also:
Chart.setXAxisText(String)

getYAxisText

public String getYAxisText()
Description copied from interface: Chart
Gets the text of the y-axis.

Specified by:
getYAxisText in interface Chart
Returns:
the text of the y-axis of this chart as string
See Also:
Chart.setYAxisText(String)

getUnit

public String getUnit()
Description copied from interface: Chart
Gets the unit string displayed next to the values.

Specified by:
getUnit in interface Chart
Returns:
the unit used by this chart.
See Also:
Chart.setUnit(String)

getLegend

public Legend getLegend()
Description copied from interface: Chart
Gets the legend of this chart.

Specified by:
getLegend in interface Chart
Returns:
the legend of this chart
See Also:
Legend

setDisableUpdate

public void setDisableUpdate(boolean disableUpdate)
Description copied from interface: Chart
Disables updates for the chart.

Specified by:
setDisableUpdate in interface Chart
Parameters:
disableUpdate - true to disable updates, false to enable updates
See Also:
Chart.isDisableUpdate()

isDisableUpdate

public boolean isDisableUpdate()
Description copied from interface: Chart
Gets the state of updates (enabled/disabled) for the chart.

Specified by:
isDisableUpdate in interface Chart
Returns:
true if the chart updates are enabled, false if not
See Also:
Chart.setDisableUpdate(boolean)

setUnit

public void setUnit(String unit)
Description copied from interface: Chart
Sets the current unit of this chart and updates it accordingly.

Specified by:
setUnit in interface Chart
Parameters:
unit - the new unit string to use
See Also:
Chart.getUnit()

setXAxisText

public void setXAxisText(String x)
Description copied from interface: Chart
Sets the text of the x-axis for this chart.

Specified by:
setXAxisText in interface Chart
Parameters:
x - the new axis label for the x-axis
See Also:
Chart.getXAxisText()

setYAxisText

public void setYAxisText(String y)
Description copied from interface: Chart
Sets the text of the y-axis for this chart.

Specified by:
setYAxisText in interface Chart
Parameters:
y - the new axis label for the y-axis
See Also:
Chart.getYAxisText()

isEdgesVisible

public boolean isEdgesVisible()
Description copied from interface: Chart
Gets the visibility of edges.

Specified by:
isEdgesVisible in interface Chart
Returns:
true if edges are visible, false otherwise
See Also:
Chart.setEdgesVisible(boolean)

setEdgesVisible

public void setEdgesVisible(boolean edgesVisible)
Description copied from interface: Chart
Enables/disables the visibility of edges for this chart.

Specified by:
setEdgesVisible in interface Chart
Parameters:
edgesVisible - true to show edges, false to hide them
See Also:
Chart.isEdgesVisible()


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams