ListModelList dataModel2 = new ListModelList(databuff.get(1));
ValueGeometry vg = new DefaultValueGeometry();
vg.setGridColor("#000000");
vg.setMin(8);
vg.setMax(23);
TimeGeometry tg = new DefaultTimeGeometry();
tg.setGridStep(2 * 60 * 60 * 1000);
bugBtn.addEventListener("onClick", new EventListener()
{
@Override
public void onEvent(Event event) throws Exception
{
Date begin = format.parse("2009/01/01 13:00:00");
Date end = format.parse("2009/01/01 18:00:00");
timeplot.invalidate();
// new date reference
dfPlot1.setDataModel(generateData(new Date(begin.getTime()), end));
dfPlot2.setDataModel(generateData(new Date(begin.getTime()), end));
}
});
// ValueGeometry vg2 = new DefaultValueGeometry();
// vg2.setGridColor("#000000");
// vg2.setMin(8);
// vg2.setMax(23);
// tg.setMax((int) (new Date().getTime()+2*60*60*1000));
tg.setAxisLabelsPlacement("bottom");
tg.setGridStepRange(30 * 60 * 1000);
PlotDataSource pds = new PlotDataSource();
pds.setSeparator(" ");
dfPlot1.setRoundValues(false);
dfPlot1.setPlotDataSource(pds);
dfPlot1.setValueGeometry(vg);