|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.chart.facade.ChartManager
public class ChartManager
Singleton class. The instance can be obtained by the getInstance static method. Global access point to the currently used charts objects. Charts are identified by their name which is of type String.
Creation date: 16 d�c. 2005
Method Summary | |
---|---|
void |
addChart(java.lang.String name,
Chart chart)
Add a chart to the manager |
java.lang.String[] |
getAllChartsName()
|
Chart |
getChart(java.lang.String name)
return a chart given its name |
static ChartManager |
getInstance()
return the instance of the singleton class ChartManager |
void |
removeChart(java.lang.String name)
remove a chart from manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ChartManager getInstance()
public void addChart(java.lang.String name, Chart chart) throws ChartParameterException
name
- Name of the chart.chart
-
ChartParameterException
public Chart getChart(java.lang.String name) throws NoSuchChartException
name
-
NoSuchChartException
- if the chart does not existspublic java.lang.String[] getAllChartsName()
public void removeChart(java.lang.String name) throws NoSuchChartException
name
-
NoSuchChartException
- if the chart did not exists in the manager.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |