public Chart() { init(); setWidth("500px"); setHeight("250px"); }
public Object clone() { final Chart clone = (Chart) super.clone(); // Due to the not unique ID of the area component creating in JFreeChartEngine, we have to clear // all its children first. clone.getChildren().clear(); clone._smartDrawChartListener = null; clone._smartDrawChart = false; clone.init(); clone.doSmartDraw(); if (clone._model != null) { if (clone._model instanceof ComponentCloneListener) { final ChartModel model = (ChartModel) ((ComponentCloneListener) clone._model).willClone(clone); if (model != null) clone._model = model; } clone._dataListener = null; clone.initDataListener(); } return clone; }