易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

flash全屏和非全屏的转换

var aa:Boolean = true;
my_btn.onPress = function() {
 if (aa == true) {
  fscommand("fullscreen", true);
  aa = false;
 } else {
  fscommand("fullscreen", false);
  aa = true;
 }
};
my_btn是一个按钮 ......

Metal F1 USB Flash Drive

HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......

屏蔽Flash右键信息的js代码

<!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 ......

nor and nand flash desc.

NOR和NAND是现在市场上两种主要的非易失闪存技术。Intel于1988年首先开发出NOR flash技术,彻底改变了原先由EPROM和EEPROM一统天下的局面。紧接着,1989年,东芝公司发表了NAND flash结构,强调降低每比特的成本,更高的性能,并且象磁盘一样可以通过接口轻松升级。但是经过了十多年之后,仍然有相当多的硬件工程师分不清NOR和NAND ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号