ChartEngine.java :  » Ajax » zk » org » zkoss » zul » impl » Java Open Source

Java Open Source » Ajax » zk 
zk » org » zkoss » zul » impl » ChartEngine.java
/* ChartEngine.java

  Purpose:
    
  Description:
    
  History:
    Wed Aug 03 11:22:44     2006, Created by henrichen

Copyright (C) 2006 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
  This program is distributed under LGPL Version 3.0 in the hope that
  it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.zul.impl;

/**
 * Chart engine is an engine that do the real chart rendering.
 *
 * This interface defines the chart engine for components like {@link org.zkoss.zul.Chart}
 * use to get the value of each data and the size of the chart data.
 *
 * @author henrichen
 * @see org.zkoss.zul.Chart
 * @see org.zkoss.zul.ChartModel
 * @see org.zkoss.zul.event.ChartAreaListener
 */
public interface ChartEngine {
  /**
   * Draw the chart and render into image format as an byte array.
   * @param data the data used in drawing a chart; depends on implementation.
   */
  public byte[] drawChart(Object data);
}
    
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.