Package org.zkoss.chart.model
Class ChartsDataEventImpl
- java.lang.Object
-
- org.zkoss.chart.model.ChartsDataEventImpl
-
- All Implemented Interfaces:
ChartsDataEvent
- Direct Known Subclasses:
DialChartsDataEventImpl
public class ChartsDataEventImpl extends Object implements ChartsDataEvent
Defines an event that encapsulates changes to a charts' data model.- Author:
- jumperchen
-
-
Field Summary
-
Fields inherited from interface org.zkoss.chart.model.ChartsDataEvent
ADDED, CHANGED, REMOVED
-
-
Constructor Summary
Constructors Constructor Description ChartsDataEventImpl(ChartsModel model, int type, Comparable series, Comparable category, int seriesIndex, int categoryIndex, Object data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparablegetCategory()Returns the category of the chart data model.intgetCategoryIndex()Returns the category index, if any.ObjectgetData()Returns customer data.ChartsModelgetModel()Returns the chart model that fires this event.ComparablegetSeries()Returns the series of the chart data model.intgetSeriesIndex()Returns the series index, if any.intgetType()Returns the event type: CHANGED, ADDED, REMOVED.
-
-
-
Constructor Detail
-
ChartsDataEventImpl
public ChartsDataEventImpl(ChartsModel model, int type, Comparable series, Comparable category, int seriesIndex, int categoryIndex, Object data)
-
-
Method Detail
-
getSeriesIndex
public int getSeriesIndex()
Description copied from interface:ChartsDataEventReturns the series index, if any.- Specified by:
getSeriesIndexin interfaceChartsDataEvent
-
getCategoryIndex
public int getCategoryIndex()
Description copied from interface:ChartsDataEventReturns the category index, if any.- Specified by:
getCategoryIndexin interfaceChartsDataEvent
-
getCategory
public Comparable getCategory()
Description copied from interface:ChartsDataEventReturns the category of the chart data model.- Specified by:
getCategoryin interfaceChartsDataEvent
-
getModel
public ChartsModel getModel()
Description copied from interface:ChartsDataEventReturns the chart model that fires this event.- Specified by:
getModelin interfaceChartsDataEvent
-
getType
public int getType()
Description copied from interface:ChartsDataEventReturns the event type: CHANGED, ADDED, REMOVED.- Specified by:
getTypein interfaceChartsDataEvent
-
getSeries
public Comparable getSeries()
Description copied from interface:ChartsDataEventReturns the series of the chart data model.- Specified by:
getSeriesin interfaceChartsDataEvent
-
getData
public Object getData()
Description copied from interface:ChartsDataEventReturns customer data. Depends on the implementation.- Specified by:
getDatain interfaceChartsDataEvent
-
-