Package org.zkoss.zul.event
Class ChartDataEvent
java.lang.Object
org.zkoss.zul.event.ChartDataEvent
- Direct Known Subclasses:
DialChartDataEvent
Defines an event that encapsulates changes to a chart's data model.
- Author:
- henrichen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifies the addition of one or more contiguous items to the list.static final intIdentifies one or more changes in the lists contents.static final intIdentifies the removal of one or more contiguous items from the list. -
Constructor Summary
ConstructorsConstructorDescriptionChartDataEvent(ChartModel model, int type, Comparable series, Comparable category, int seriesIndex, int categoryIndex, Object data) -
Method Summary
Modifier and TypeMethodDescriptionReturns the category of the chart data model.intReturns the category index, if any.getData()Returns customer data.getModel()Returns the chart model that fires this event.Returns the series of the chart data model.intReturns the series index, if any.intgetType()Returns the event type: CHANGED, ADDED, REMOVED.
-
Field Details
-
CHANGED
public static final int CHANGEDIdentifies one or more changes in the lists contents.- See Also:
-
ADDED
public static final int ADDEDIdentifies the addition of one or more contiguous items to the list.- See Also:
-
REMOVED
public static final int REMOVEDIdentifies the removal of one or more contiguous items from the list.- See Also:
-
-
Constructor Details
-
ChartDataEvent
public ChartDataEvent(ChartModel model, int type, Comparable series, Comparable category, int seriesIndex, int categoryIndex, Object data)
-
-
Method Details
-
getSeriesIndex
public int getSeriesIndex()Returns the series index, if any.- Since:
- 7.0.1
-
getCategoryIndex
public int getCategoryIndex()Returns the category index, if any.- Since:
- 7.0.1
-
getCategory
Returns the category of the chart data model.- Since:
- 7.0.1
-
getModel
Returns the chart model that fires this event. -
getType
public int getType()Returns the event type: CHANGED, ADDED, REMOVED. -
getSeries
Returns the series of the chart data model. -
getData
Returns customer data. Depends on the implementation.
-