Applet
Class com.gp.api.swing.applet.MxApplet is a subclass of JApplet that contains one child - an instance of MxComponent class. To access this instance you can use getChart() function. WebCharts3D Designer will produce and show in the Code pane the JSP code that produces the applet. This code uses jsp:plugin tag to generate appropriate HTML and requires JSP. You can also code HTML manually(see example below).
In order to run the licensed version of the applet you need to create webcharts3D.xml file and place it in the same folder with the applet archive. Applet's webcharts3D.xml should at least contain the (client-side) license key:
<xml license='0000-0000-0000-0000'/>
You can use either wcapplet.jar or server-side run-time wcruntime.jar files as the applet's archive. Note that while wcapplet.jar is smaller it does not contain image-generation code and cannot be used to save images.
MxApplet supports the following parameters :
WebCharts3D applet API consists of the following functions:
The following HTML code demonstates usage of the applet:
<object classid="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA" WIDTH=700 HEIGHT=480 | |
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,0"> | |
<param NAME = CODE VALUE = com.gp.api.swing.applet.MxApplet.class > | |
<param NAME=ARCHIVE value=wcapplet.jar> | |
<param NAME="type" VALUE="application/x-java-applet;jpi-version=1.4"> | |
<param NAME="scriptable" VALUE="true"> | |
<param NAME="xmlStyle" VALUE="<pieChart depth='thick' angle='320'><dataLabels style='Pattern' placement='Inside' decoration='Simple' background='#FFFAF6'/></pieChart>"> | |
<param NAME="xmlModel" VALUE="<XML type='default'> <COL>2000</COL> <COL>2001</COL> <COL>2002</COL> <COL>2003</COL> <COL>2004</COL> <ROW col0='100.0' col1='200.0' col2='100.0' col3='180.0' col4='200.0'>Sample 0:</ROW> </XML>"> | |
</object> |