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 Comparable
getCategory()
Returns the category of the chart data model.int
getCategoryIndex()
Returns the category index, if any.Object
getData()
Returns customer data.ChartsModel
getModel()
Returns the chart model that fires this event.Comparable
getSeries()
Returns the series of the chart data model.int
getSeriesIndex()
Returns the series index, if any.int
getType()
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:ChartsDataEvent
Returns the series index, if any.- Specified by:
getSeriesIndex
in interfaceChartsDataEvent
-
getCategoryIndex
public int getCategoryIndex()
Description copied from interface:ChartsDataEvent
Returns the category index, if any.- Specified by:
getCategoryIndex
in interfaceChartsDataEvent
-
getCategory
public Comparable getCategory()
Description copied from interface:ChartsDataEvent
Returns the category of the chart data model.- Specified by:
getCategory
in interfaceChartsDataEvent
-
getModel
public ChartsModel getModel()
Description copied from interface:ChartsDataEvent
Returns the chart model that fires this event.- Specified by:
getModel
in interfaceChartsDataEvent
-
getType
public int getType()
Description copied from interface:ChartsDataEvent
Returns the event type: CHANGED, ADDED, REMOVED.- Specified by:
getType
in interfaceChartsDataEvent
-
getSeries
public Comparable getSeries()
Description copied from interface:ChartsDataEvent
Returns the series of the chart data model.- Specified by:
getSeries
in interfaceChartsDataEvent
-
getData
public Object getData()
Description copied from interface:ChartsDataEvent
Returns customer data. Depends on the implementation.- Specified by:
getData
in interfaceChartsDataEvent
-
-