Package org.zkoss.chart.util
Class ResponseDataHandler
- java.lang.Object
-
- org.zkoss.chart.util.ResponseDataHandler
-
- All Implemented Interfaces:
org.zkoss.json.JSONAware
public class ResponseDataHandler extends Object implements org.zkoss.json.JSONAware
A response data handler forCharts
's smart update changes. The handler can merge the duplicated data changes and ignore the changes if they are unnecessary. For example add a new series with multiple points that theaddPoint
command changes are unnecessary in this case. This handler is used when the component is going to output the data in JSON string at rendering phase, so it is a good timing to merge the response data there.- Author:
- jumperchen
-
-
Constructor Summary
Constructors Constructor Description ResponseDataHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQueue(OptionDataEvent event)
void
clear()
boolean
isEmpty()
String
toJSONString()
-
-
-
Method Detail
-
addQueue
public void addQueue(OptionDataEvent event)
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.zkoss.json.JSONAware
-
-