teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.client.ui.minfo; raimund@3705: raimund@3705: import com.smartgwt.client.widgets.Canvas; raimund@3705: import com.smartgwt.client.widgets.events.ResizedEvent; raimund@3705: import com.smartgwt.client.widgets.events.ResizedHandler; raimund@3705: import com.smartgwt.client.widgets.layout.VLayout; raimund@3705: teichmann@5835: import org.dive4elements.river.client.client.ui.MultiPeriodPanel; raimund@3705: raimund@3705: public class BedMultiPeriodPanel raimund@3705: extends MultiPeriodPanel raimund@3705: implements ResizedHandler { raimund@3705: protected BedCampaignChart chartContainer1; raimund@3705: protected BedloadCampaignChart chartContainer2; raimund@3705: raimund@3705: public BedMultiPeriodPanel() { raimund@3705: } raimund@3705: raimund@3705: @Override raimund@3705: protected Canvas createHelper() { raimund@3705: chartContainer1 = new BedCampaignChart(artifact, this); raimund@3705: chartContainer2 = new BedloadCampaignChart(artifact, this); raimund@3705: VLayout layout = new VLayout(); raimund@3705: layout.addMember(chartContainer1); raimund@3705: layout.addMember(chartContainer2); raimund@3705: return layout; raimund@3705: } raimund@3705: raimund@3705: @Override raimund@3705: public void onResized(ResizedEvent re) { raimund@3705: chartContainer1.update(); raimund@3705: chartContainer2.update(); raimund@3705: } raimund@3705: }