public void addTimeChart ( String chartID , String xAxisLabel , String yAxisLabel ) throws ShanksException { if ( ! this . timeCharts . containsKey ( chartID ) ) { TimeSeriesChartGenerator chart = new TimeSeriesChartGenerator ( ) ; chart . setTitle ( chartID ) ; chart . setXAxisLabel ( xAxisLabel ) ; chart . setYAxisLabel ( yAxisLabel ) ; this . timeCharts . put ( chartID , chart ) ; } else { throw new DuplicatedChartIDException ( chartID ) ; } }
Add a chart to the simulation