2015-07-24 16:59:31 +02:00
|
|
|
package org.gcube.portlets.admin.accountingmanager.client.maindata.charts;
|
|
|
|
|
2016-05-30 18:51:08 +02:00
|
|
|
import org.gcube.portlets.admin.accountingmanager.shared.exception.ChartDrawException;
|
2015-07-24 16:59:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Accounting Chart Director
|
|
|
|
*
|
2017-05-09 17:35:45 +02:00
|
|
|
* @author Giancarlo Panichi
|
2015-07-24 16:59:31 +02:00
|
|
|
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class AccountingChartDirector {
|
|
|
|
AccountingChartBuilder accountingChartBuilder;
|
|
|
|
|
|
|
|
public void setAccountingChartBuilder(
|
|
|
|
AccountingChartBuilder accountingChartBuilder) {
|
|
|
|
this.accountingChartBuilder = accountingChartBuilder;
|
|
|
|
}
|
|
|
|
|
|
|
|
public AccountingChartPanel getAccountingChart() {
|
|
|
|
return accountingChartBuilder.getAccountingChartSpec().getChart();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-05-30 18:51:08 +02:00
|
|
|
public void constructAccountingChart() throws ChartDrawException {
|
2015-07-24 16:59:31 +02:00
|
|
|
accountingChartBuilder.createSpec();
|
|
|
|
accountingChartBuilder.buildChart();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|