Package org.zkoss.zul
Class AbstractChartModel
java.lang.Object
org.zkoss.zul.AbstractChartModel
- All Implemented Interfaces:
Serializable,ChartModel
- Direct Known Subclasses:
DialModel,GanttModel,SimpleCategoryModel,SimpleHiLoModel,SimpleSingleValueCategoryModel,SimpleXYModel,WaferMapModel
A skeletal implementation for
ChartModel.- Author:
- henrichen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to the chart that's notified each time a change to the data model occurs.clone()protected voidfireEvent(int type, Comparable<?> series, Comparable<?> category, int seriesIndex, int categoryIndex, Object data) Fires aChartDataEventfor all registered listener (thruaddChartDataListener(org.zkoss.zul.event.ChartDataListener).voidRemoves a listener from the chart that's notified each time a change to the data model occurs.
-
Field Details
-
_listeners
-
-
Constructor Details
-
AbstractChartModel
public AbstractChartModel()
-
-
Method Details
-
fireEvent
protected void fireEvent(int type, Comparable<?> series, Comparable<?> category, int seriesIndex, int categoryIndex, Object data) Fires aChartDataEventfor all registered listener (thruaddChartDataListener(org.zkoss.zul.event.ChartDataListener).Note: you can invoke this method only in an event listener.
- Since:
- 7.0.1
-
addChartDataListener
Description copied from interface:ChartModelAdds a listener to the chart that's notified each time a change to the data model occurs.- Specified by:
addChartDataListenerin interfaceChartModel
-
removeChartDataListener
Description copied from interface:ChartModelRemoves a listener from the chart that's notified each time a change to the data model occurs.- Specified by:
removeChartDataListenerin interfaceChartModel
-
clone
-