01: /* ChartEngine.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Wed Aug 03 11:22:44 2006, Created by henrichen
10: }}IS_NOTE
11:
12: Copyright (C) 2006 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zul.impl;
20:
21: /**
22: * Chart engine is an engine that do the real chart rendering.
23: *
24: * This interface defines the chart engine for components like {@link org.zkoss.zul.Chart}
25: * use to get the value of each data and the size of the chart data.
26: *
27: * @author henrichen
28: * @see org.zkoss.zul.Chart
29: * @see org.zkoss.zul.ChartModel
30: * @see org.zkoss.zul.event.ChartAreaListener
31: */
32: public interface ChartEngine {
33: /**
34: * Draw the chart and render into image format as an byte array.
35: * @param data the data used in drawing a chart; depends on implementation.
36: */
37: public byte[] drawChart(Object data);
38: }
|