For downloads, demos, and more visit the
Client-side GChart Home Page

com.googlecode.gchart.client
Interface GChartCanvasFactory


public interface GChartCanvasFactory

By implementing this interface, and passing an instance of your class to setCanvasFactory, you can "teach" GChart how to create the canvas-based widgets it needs to render non-rectangular aspects of your charts (solid-fill pie slices, continuously connected lines, solidly filled areas) much faster and with significantly better quality.

If you use GWTCanvas from the GWT incubator project for the vector graphics library, it's mainly a matter of adding a small chunk of boilerplate code (which you can find in the setCanvasFactory method's javadocs) to your application, adding gwt-incubator.jar to your build path, and selecting GChart's "continuously filled" option for your curves via getCurve().getSymbol().setFillSpacing(0). See setCanvasFactory for full details.

See Also:
setCanvasFactory, GChartCanvasLite, setFillSpacing, setFillThickness

Method Summary
 GChartCanvasLite create()
          A method that returns a GWT Widget that implements the subset of a Mozilla canvas' features that GChart requires.
 

Method Detail

create

GChartCanvasLite create()
A method that returns a GWT Widget that implements the subset of a Mozilla canvas' features that GChart requires.

Note that the returned object must both implement GChartCanvasLite and be a GWT Widget.


For downloads, demos, and more visit the
Client-side GChart Home Page

Copyright © 2007,2008 John C. Gunther. All Rights Reserved. Portions from GWTCanvas, Copyright © Google, Inc.