swtÓëopen flash chart
×òÌì¿´ÁËIBMÍøÕ¾ÉÏдµ½rcpÖÐÔËÐÐopen flash chart¾õµÃ²»´í×Ô¼º¾ÍÊÔ×ÅдÁËһϡ£
package com.chart.test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.ole.win32.OLE;
import org.eclipse.swt.ole.win32.OleAutomation;
import org.eclipse.swt.ole.win32.OleControlSite;
import org.eclipse.swt.ole.win32.OleFrame;
import org.eclipse.swt.ole.win32.Variant;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class ChartTest {
/**
* Launch the application
* @param args
*/
public static void main(String[] args) {
String file="D:\\ÎÒµÄÎĵµ\\ѧϰ×ÊÁÏ\\SWT\\open-flash-chart-2-Lug-Wyrm-Charmer\\open-flash-chart.swf";
final Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
shell.setSize(500, 375);
shell.setText("SWT Application");
OleFrame oleFrame=new OleFrame(shell,SWT.NONE);
oleFrame.setLayoutData(new GridData(GridData.FILL_BOTH));
OleControlSite controlSite =
new OleControlSite(oleFrame, SWT.NONE, "ShockwaveFlash.ShockwaveFlash");
/**
* doVerb() Requests that the OLE Document or ActiveX Control
* perform an action; actions are almost always changes to the activation state.
*/
controlSite.doVerb(OLE.OLEIVERB_SHOW); //
//
final OleAutomation automation = new OleAutomation(controlSite);
/**
* getIDsOfNames()µÃµ½¿Ø¼þ·½·¨¶ÔÓ¦µÄ id Öµ
*/
int[] methodIDs = automation.getIDsOfNames(new String[] { "LoadMovie" });
System.out.println(methodIDs.length);
System.out.println("methodIDs[0]="+methodIDs[0]);
Variant[] methodArgs = {
new Variant(0), new Variant(file+"?data-file=/bar-3d.txt") };
System.out.println(methodArgs.length);
automation.invoke(methodIDs[0], methodArgs);
shell.open();
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sle
Ïà¹ØÎĵµ£º
ÎļþÈçÏÂ
<BODY>
<SCRIPT src="swfobject.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
var flashvars = {};
flashvars.myxmlpath = 'content.xml';
flashvars.type = 'content';
flashvars.decription = '0';
flashvars.textstyle = '';
flashvars.de ......
var aa:Boolean = true;
my_btn.onPress = function() {
if (aa == true) {
fscommand("fullscreen", true);
aa = false;
} else {
fscommand("fullscreen", false);
aa = true;
}
};
my_btnÊÇÒ»¸ö°´Å¥ ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Yimin</t ......
ÔÚÆ½ÃæµÄʱºò£¬Ô²¿ÉÒÔÈÏΪÊÇÍÖÔ²Ò»¸öÌØÀý£¬¶øÇòÃæÒ²¿ÉÒÔÈÏΪÇòÍÖÇòÃæÒ»¸öÌØÀý£¬µ«ÊÇÁ½ÕßÒÀ¾É»á´æÔÚһЩ²î±ð¡£ÕâһЩ²î±ð»á²úÉú²»Í¬µÄÐÎ×´£¬²éÔÄÁËһЩ¹ØÓÚÍÖÇòÃæµÄ×ÊÁÏºÜÆ¤Ã«Á˽âһЩ¡£
ÍÖÇòÌåµÄ·½³Ì±íʾ£º x2 /a2+y2/b2+z2/c2=1;
²ÎÊý·½³Ì£º
£¨¸ÃͼƬÀ´Ô´ÓÚÍøÂ磩
ͨ³££¨a≥b≥c>0£© ( ......
3D ±êÇ©ÔÆµÄʹÓÃ
3D±êÇ©ÔÆ°üº¬Á½¸ö±ØÐëÎļþ,Ô´ÎļþÔÚÕâÏÂÔØ
http://download.csdn.net/source/2037774
1. tagcloud.swf£ºÊDZêÇ©ÔÆÏÔʾµÄÖ÷flash³ÌÐò
2. swfobject.js: flashµÄ¿ØÖƳÌÐò
ÓÐÁ½ÖÖʹÓ÷½Ê½£¬µÚÒ»ÖÖÊÇͨ¹ýÔÚÍøÒ³ÉÏÊ ......