文档库 最新最全的文档下载
当前位置:文档库 › SWT教程与常用控件

SWT教程与常用控件

SWT教程与常用控件
SWT教程与常用控件

第一章:SWT

第一节:SWT/JFace简介

SWT(Standard Widget Toolkit)即标准小窗口工具箱,是IBM公司推出的一种在Eclipse

中使用的集成开发环境,SWT提供可移植的API,并与底层本机OS GUI平台紧密集成,它是一个与本地窗口系统集成在一起的小部件集和图形库。SWT由JNI (Java Native Interface,Java 本机接口)调用操作系统的内部API,因此运行速度快,能够获得与操作系统的内部应用程序相同的外观。

JFace是一个用户界面工具箱,也是一个易用、功能强大的图形包,它简化了常见的图

形用户界面的编程任务。SWT和JFace都是Eclipse 平台上的主要组件。JFace是在SWT的基础上创建的,但JFace并不能完全覆盖SWT的功能,JFace和SWT的关系如图4.1所示。由于JFace的功能更强大,因此做图形界面开发时一般优先选用JFace。

第二节:开发SWT程序

开发SWT程序之前,需要我们在工程里导入一个包,如下:

该jar包可以在XXX\eclipse\plugins目录下找到。导入之后,即可开发SWT程序。

一个最简单的SWT程序

import org.eclipse.swt.SWT;

import org.eclipse.swt.graphics.Color;

import org.eclipse.swt.widgets.Display;

import org.eclipse.swt.widgets.Shell;

import org.eclipse.swt.widgets.Text;

class HelloSWT {

public static void main(String[] args) {

// 创建一个display对象。

Display display = new Display();

// shell是程序的主窗体

Shell shell = new Shell(display);

// 设置shell的布局方式

shell.setLayout(null);

// 声明一个可以显示多行信息的文本框

Text hello = new Text(shell, SWT.MULTI);

// 设置主窗体的标题

shell.setText("Java应用程序");

// 设置主窗体的大小

shell.setSize(200, 100);

// 声明颜色对象

Color color = new Color(Display.getCurrent(), 255, 255, 255);

// 设置窗体的背景颜色

shell.setBackground(color);

// 设置文本框信息

hello.setText("Hello, SWT World!\n\n你好,SWT世界!");

// 打开主窗体

shell.open();

// 如果主窗体没有关闭则一直循环

while (!shell.isDisposed()) {

// 如果display不忙

if (!display.readAndDispatch()) {

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

?Display类:是SWT应用程序中的基础类,它负责在应用程序和本地操作系统之间建立交互。Display类是从Device继承而来。

?Display封装了对本地操作系统资源,事件和各种控件的管理,是开发SWT应用程序的基础。

?Shell 样式

SWT常用组件

1 按钮组件

按钮(Button)组件是SWT中最常用的组件,Button类的构造方法是:

Button(Composite parent,int style)

该方法有两个参数:

1.第一个参数parent是指Button创建在哪一个容器上。Composite(面板)是最常用的

容器,Shell(窗体)继承自Composite,此参数也能接受 Shell和任何继承自 Compsite 的类。

2.第二个参数style用来指定Button的式样。SWT组件可以在构造方法中使用式样

(style)来声明组件的外观形状和文字的式样。SWT组件的构造方法和 Button类相似,参数的含义也相同。

1.Button组件常用式样

SWT.PUSH:按钮。

SWT.CHECK:多选按钮。

SWT.RADIO:单选按钮。

SWT.ARROW:箭头按钮。

SWT.NONE:默认按钮。

SWT.CENTER:文字居中,与 SWT.NONE 相同。

SWT.LEFT:文字靠左。

SWT.RIGHT:文字靠右。

SWT.BORDER:深陷型按钮。

SWT.FLAT:平面型按钮。

一个 Button也可以指定多个式样,只要将指定的各个式样用符号“|”连接起来即可。如:

Button bt=new Button(shell,SWT.CHECK|SWT.BORDER|SWT.LEFT);

表示创建的按钮bt是一个复选按钮(CHECK),深陷型(BORDER)、文字左对齐(LEFT)。

2.Button组件的常用方法

setText(String string):设置组件的标签文字。

setBounds(int x,int y,int width,int height):设置组件的坐标位置和大小(x轴坐标,y轴坐标,组件宽度width,组件高度height)。

setEnabled(Boolean enabled):设置组件是否可用。true:可用,false:不可用。setFont(Font font):设置文字的字体。

setForeground(Color color):设置前景色。

setBackgrount(Color color):设置背景色。

setImage(Image image):设置显示的图片。

setSelection(Boolean selected):设置是否选中(仅对开关按钮,复选框或单选框有效)。true:选中,false:未选中(默认值)。

setToolTipText(String string):设置鼠标停留在组件上时出现的提示信息。

以上方法在其他组件中也可使用。

按钮示例。

import org.eclipse.swt.SWT;

import org.eclipse.swt.widgets.Button;

import org.eclipse.swt.widgets.Display;

import org.eclipse.swt.widgets.Shell;

class按钮练习 {

public static void main(String[] args) {

Display display = new Display();// 创建一个display对象。

Shell shell = new Shell(display);// shell是程序的主窗体

shell.setText("按钮示例"); // 设置主窗体的标题

Button bt1 = new Button(shell, SWT.NULL); // 创建默认按钮

bt1.setText("SWT.NULL"); // 设置按钮上的文字

bt1.setBounds(10, 10, 75, 30); // 设置按钮显示位置及宽度、高度

Button bt2 = new Button(shell, SWT.PUSH | SWT.BORDER); // 创建深陷型按钮

bt2.setText("SWT.PUSH");

bt2.setBounds(90, 10, 75, 30);

Button check1 = new Button(shell, SWT.CHECK);// 创建复选按钮

check1.setText("SWT.CHECK");

check1.setBounds(10, 50, 75, 30);

Button check2 = new Button(shell, SWT.CHECK | SWT.BORDER);// 创建深陷型复选按钮

check2.setText("SWT.CHECK");

check2.setBounds(90, 50, 75, 30);

Button radio1 = new Button(shell, SWT.RADIO);// 创建单选按钮

radio1.setText("SWT.RADIO");

radio1.setBounds(10, 90, 75, 30);

Button radio2 = new Button(shell, SWT.RADIO | SWT.BORDER);// 创建深陷型单选按钮

radio2.setText("SWT.RADIO");

radio2.setBounds(90, 90, 75, 30);

Button arrowLeft = new Button(shell, SWT.ARROW | SWT.LEFT);// 创建箭头按钮(向左)

arrowLeft.setBounds(10, 130, 75, 20);

Button arrowRight = new Button(shell, SWT.ARROW | SWT.RIGHT | SWT.BORDER);

arrowRight.setBounds(90, 130, 75, 20);

shell.pack(); // 自动调整主窗体的大小

while (!shell.isDisposed()) { // 如果主窗体没有关闭

if (!display.readAndDispatch()) { // 如果display不忙

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

2 标签组件

标签(Label类)组件是SWT中最简单的组件。Label类的构造方法和 Button类相似,

参数的含义与相同,格式如下:

Label(Composite parent,int style)

Label类的常用式样有以下几种:

Label类常用的式样如下:

SWT.CENTER:文字居中。

SWT.RIGHT:文字靠右。

SWT.LEFT:文字靠左。

SWT.NONE:默认式样。

SWT.WRAP:自动换行。

SWT.BORDER:深陷型。

SWT.SEPARATOR:分栏符,默认为竖线分栏。

SWT.HORIZONTAL:横线分栏符。

label.setText("文字"):设置label上的文本

label.setFont(Font font):设置label上文本的样式

示例代码

import org.eclipse.swt.*;

import org.eclipse.swt.widgets.*;

import org.eclipse.swt.graphics.Font;

class标签 {

public static void main(String[] args) {

Display display = new Display();// 创建一个display对象。

Shell shell = new Shell(display);// shell是程序的主窗体

// shell.setLayout(null); //设置shell的布局方式

shell.setText("标签示例"); // 设置主窗体的标题

Label lb1 = new Label(shell, SWT.BORDER | SWT.RIGHT);// 深陷型、文字右对齐

lb1.setBounds(10, 10, 70, 30);

lb1.setText("标签1");

lb1.setFont(new Font(display, "黑体", 14, SWT.BOLD));// 设置文字的字体字号

lb1.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_B LUE));

Label lb2 = new Label(shell, SWT.CENTER);// 文字居中的标签

lb2.setBounds(90, 10, 70, 30);

lb2.setText("标签2");

lb2.setFont(new Font(display, "宋体", 14, SWT.NORMAL));// 设置文字的字体字号

Label lb3 = new Label(shell, SWT.SEPARATOR | SWT.BORDER);// 竖直分栏符

lb3.setBounds(10, 50, 70, 30);

Label lb4 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL | SWT.BORDER);// 水平分栏符

lb4.setBounds(90, 50, 70, 30);

shell.pack(); // 自动调整主窗体的大小

shell.open(); // 打开主窗体

while (!shell.isDisposed()) { // 如果主窗体没有关闭则一直循环if (!display.readAndDispatch()) { // 如果display不忙

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

3 文本框组件

文本框(Text类)的式样如下:

SWT.NONE:默认式样。

SWT.CENTER:文字居中。

SWT.LEFT:文字靠左。

SWT.RIGHT:文字靠右。

SWT.MULTI:可以输入多行,须回车换行。

SWT.WRAP:可以输入多行,到行尾后自动换行。

SWT.PASSWORD:密码型,输入字符显示成“*”。

SWT.BORDER:深陷型。

SWT.V_SCROLL:带垂直滚动条。

SWT.H_SCROLL:带水平滚动条。

text.setText(String str):设置文本域文本内容

各种文本框示例。

import org.eclipse.swt.*;

import org.eclipse.swt.widgets.*;

class文本框 {

public static void main(String[] args) {

Display display = new Display();// 创建一个display对象。

Shell shell = new Shell(display);// shell是程序的主窗体

shell.setText("文本框示例");

Text text1 = new Text(shell, SWT.NONE | SWT.BORDER);// 带边框

text1.setBounds(10, 10, 70, 30);

Text text2 = new Text(shell, SWT.PASSWORD);

text2.setBounds(90, 10, 70, 30);

Text text3 = new Text(shell, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);

text3.setBounds(10, 50, 70, 70);

Text text4 = new Text(shell, SWT.WRAP | SWT.V_SCROLL);

text4.setBounds(90, 50, 70, 70);

shell.pack();

shell.open();

while (!shell.isDisposed()) { // 如果主窗体没有关闭则一直循环if (!display.readAndDispatch()) { // 如果display不忙

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

4 下拉框组件

1.下拉框(Combo类)的式样

SWT.NONE:默认式样。

SWT.READ_ONLY:只读。

SWT.SIMPLE:无须单击下拉框,列表会一直显示。

2.下拉框(Combo类)的常用方法

add(String string):在Combo中增加一项。

add(String string,int index):在Combo的第 index 项后插入一项。

deselectAll():使Combo组件中的当前选择项置空。

removeAll():将Combo中的所有选项清空。

setItems(String[] items):将数组中的各项依次加入到 Combo中。

select(int index):将Combo的第 index+1 项设置为当前选择项。

setText(String str):如果列表中有与指定的文本匹配的项,则选中该项,如果没有匹配项,将内容设置为指定文本。

下拉框示例。

import org.eclipse.swt.*;

import org.eclipse.swt.widgets.*;

import org.eclipse.swt.events.*;

class下拉框 {

private static Label lb;

public static void main(String[] args) {

Display display = new Display();// 创建一个display对象。

final Shell shell = new Shell(display);// shell是程序的主窗体

shell.setText("下拉框示例");

final Combo combo = new Combo(shell, SWT.NONE);

combo.setBounds(10, 10, 100, 25);

lb = new Label(shell, SWT.WRAP); // 创建标签,可自动换行

lb.setBounds(120, 10, 100, 35);

Button bt1 = new Button(shell, SWT.NONE);

bt1.setBounds(20, 60, 100, 25);

bt1.setText("设值");

bt1.addSelectionListener(new SelectionAdapter() {

public void widgetSelected(SelectionEvent e) { // 按钮的单击事件

combo.removeAll(); // 清空combo

for (int i = 1; i <= 3; i++) {

combo.add("第" + i + "项"); // 循环添加选项

}

combo.select(0); // 设置默认选项

}

});

Button bt2 = new Button(shell, SWT.NONE);

bt2.setBounds(130, 60, 100, 25);

bt2.setText("取值");

bt2.addSelectionListener(new SelectionAdapter() {

public void widgetSelected(SelectionEvent e) { // 按钮的单击事件

lb.setText("你选择的是:" + combo.getText());

}

});

shell.pack();

shell.open();

while (!shell.isDisposed()) { // 如果主窗体没有关闭则一直循环if (!display.readAndDispatch()) { // 如果display不忙

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

5 列表框组件

列表框(List类)组件的用法和下拉框(Combo类)相似。

1.列表框(List类)的式样

SWT.NONE:默认式样。

SWT.V_SCROLL:带垂直滚动条。

SWT.MULTI:允许复选。

SWT.SINGLE:允许单选。

2.常用方法

列表框(List类)组件的方法和下拉框(Combo类)是一样的,但由于 List可选择多项,而Combo只能选择一项,所以List没有getText()方法,List的取值是用getSelection()方法,返回一个所有选项组成的String数组。

列表框示例。

import org.eclipse.swt.SWT;

import org.eclipse.swt.events.SelectionAdapter;

import org.eclipse.swt.events.SelectionEvent;

import org.eclipse.swt.widgets.Button;

import org.eclipse.swt.widgets.List;

import org.eclipse.swt.widgets.Display;

import https://www.wendangku.net/doc/155994582.html,bel;

import org.eclipse.swt.widgets.Shell;

class列表框 {

private static Label lb;

public static void main(String[] args) {

Display display = new Display();// 创建一个display对象。

final Shell shell = new Shell(display);// shell是程序的主窗体

shell.setText("列表框示例");

final List list = new List(shell, SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);

// 声明一个可复选、带垂直滚动条、有边框的列表框。

list.setBounds(10, 10, 100, 50);

lb = new Label(shell, SWT.WRAP);

lb.setBounds(120, 10, 90, 50);

Button bt1 = new Button(shell, SWT.NONE);

bt1.setBounds(20, 60, 100, 25);

bt1.setText("设值");

bt1.addSelectionListener(new SelectionAdapter() {

public void widgetSelected(SelectionEvent e) {

list.removeAll();

for (int i = 1; i <= 8; i++) {

list.add("第" + i + "项"); // 将选项循环加入到列表框中}

list.select(0);

}

});

Button bt2 = new Button(shell, SWT.NONE);

bt2.setBounds(130, 60, 100, 25);

bt2.setText("取值");

bt2.addSelectionListener(new SelectionAdapter() {

public void widgetSelected(SelectionEvent e) {

String[] selected = list.getSelection(); // 声明字符串数组保存选项

String outStr = " ";

for (int j = 0; j < selected.length; j++) {

outStr = outStr + " " + selected[j]; // 将数组中的选项加入到输出字符串

}

lb.setText("你选择的是:" + outStr);

}

});

shell.pack();

shell.open();

while (!shell.isDisposed()) { // 如果主窗体没有关闭则一直循环if (!display.readAndDispatch()) { // 如果display不忙

display.sleep(); // 休眠

}

}

display.dispose(); // 销毁display

}

}

六微调控制器

微调器常用方法

setSelection(20);//设置当前值为多少

setMinimum(10);//设置最小值

setMaximum(200);//设置最大值

setIncrement(3);//设置增量

实例:

public class SWT组件 {

public static void main(String[] args) {

Display display = new Display();

Shell shell = new Shell(display);

shell.setLayout(null);

shell.setText("Java应用程序示例");

shell.setSize(745, 270);

final Spinner spinner = new Spinner(shell, SWT.BORDER);

spinner.setBounds(84, 61, 173, 17);

spinner.setSelection(20);//设置当前值为多少

spinner.setMinimum(10);//设置最小值

spinner.setMaximum(200);//设置最大值

spinner.setIncrement(3);//设置增量

shell.open();

while (!shell.isDisposed()) {

if (!display.readAndDispatch()) {

display.sleep();

}

}

display.dispose(); // 销毁display }

}

七进度条ProgressBar

setSelection(int value);

getSelection()

八日期控件DateTime

常用样式

SWT.DATE :显示日期

SWT.TIME :显示时间

SWT.CALENDAR :显示日历

九伸缩面板和链接

示例:

public class SWT组件 {

public static void main(String[] args) {

Display display = new Display();

final Shell shell = new Shell(display);

shell.setLayout(null);

shell.setText("Java应用程序示例");

shell.setSize(745, 436);

final ExpandBar expandBar = new ExpandBar(shell, SWT.NONE);

expandBar.setBounds(85, 87, 327, 305);

final ExpandItem newItemExpandItem = new ExpandItem(expandBar, SWT.NONE);

newItemExpandItem.setHeight(100);

newItemExpandItem.setExpanded(true);

newItemExpandItem.setText("New item");

final Composite composite = new Composite(expandBar, SWT.NONE);

newItemExpandItem.setControl(composite);

final Link eclipseorgLink = new Link(composite, SWT.NONE);

eclipseorgLink.setText("功能1");

eclipseorgLink.setBounds(27, 21, 66, 12);

final Link eclipseorgLink_1 = new Link(composite, SWT.NONE);

eclipseorgLink_1.setText("功能2");

eclipseorgLink_1.setBounds(27, 53, 66, 12);

final ExpandItem newItemExpandItem_1 = new ExpandItem(expandBar, SWT.NONE);

newItemExpandItem_1.setHeight(100);

newItemExpandItem_1.setExpanded(true);

newItemExpandItem_1.setText("New item");

final Composite composite_1 = new Composite(expandBar, SWT.NONE);

newItemExpandItem_1.setControl(composite_1);

final ProgressBar progressBar = new ProgressBar(shell, SWT.NONE);

progressBar.setBounds(486, 79, 170, 17);

shell.open();

System.out.println(22);

while (!shell.isDisposed()) {

if (!display.readAndDispatch()) {

display.sleep();

}

}

display.dispose(); // 销毁display }

}

AE插件大全以及部分汉化插件

Red Giant系列官网https://www.wendangku.net/doc/155994582.html,/红巨星系列插件注册码 0、Trapcode_Suite_Win_Full_11_原版+注册机(Form更新至2.0) 1、Red.Giant.Trapcode.合集.V4.0中英文安装版32位Particular_预置(英汉双语) Form_预置(英汉双语) 2、Red.Giant.Trapcode.合集.For.AECS5中英文安装版64位也适用于AECS5.5 3、魔法子弹调色系列Red Giant Magic Bullet Suite 11 英文原版+注册机+汉化+安装教程下载 Magic Bullet Suite 11破解版安装图解 Magic Bullet Suite 11调色系列包括以下九个插件(其中Grinder用于MAC):

4、调色插件Magic_Bullet_Looks_AE_1.4.3_32bit英文版+汉化(baxianhua) MBLooks.预置(安装时直接复制粘贴即可) Magic_Bullet_Looks_PPro_1.4.3_64bit英文版+汉化(baxianhua) 5、调色师Magic.Bullet.Colorista.II.注册版+汉化(32位+64位)详细说明 6、调色插件MBMojo.32位(1.1).64位(1.2)+汉化(AE.PR.VEGAS) 7、AE降噪极品.Magic.Bullet.Denoiser.1.0.1.32bit64bit原版加汉化 8、AE视频转换Magic.Bullet.InstantHD.3264bit 9、AEPR场插件MB.Frames.(32位1.02版).(64位1.1版) 10、Red_Giant_Keying_Suite_11包括:Primatte Keyer 5.0 、Key Correct 1.2.1 和Warp 1.1.1 Keying_Suite_11.0_安装注册图文教程 11、Red.Giant.KeyCorrectWinFull.ChsPackV2.0.(32.64bit)AE抠像校正原版加汉化汉化说明 12、极品抠像插件_Primatte_Keyer_Pro_4.0_中英文安装版32位 13、Red.giant.Warp.1.1.3264bit.AEPR(三维变形反射投影) Red_Giant_Warp_1.0_中英文版(三维变形反射投影)32位 14、灯光工厂Red.Giant.Knoll.Light.Factory.2.52.英文原版(带汉化)新增100组预设ffx后缀lfp后缀 灯光工厂Knoll.Light.Factory.Win.Full.(2.5版+2.7版) 2.5版本用于32位,2.7版本用于64位 15、3D助手Red.Giant.PlaneSpace.v1.4.3264bit+汉化(曹润)汉化说明 16、天空大海滤镜.Red.Giant.Psunami.v1.4(3264bit)+32bit汉化 17、AE烟雾水火.RedGiant.Image.Lounge.1.4.5.(3264bit) 18、卡通.水墨.油画Red.Giant.ToonIt.v2.1.3264bit.注册版 AE卡通、水墨、油画Red_Giant_Toon_It_AE(带汉化1.1.1版)32位 19、极品文字特效插件.Red.Giant.Text.Anarchy.2.4.(32.64bit)(AEPR) 极品文字特效插件_Red_Giant_Text_Anarchy_V2.35中英文版32位 20、AE屏幕视觉Red.Giant.Holomatrix.1.2.(3264bit) 21、Reflector.1.5.0.PC反射倒影(32位) 22、Magic.Bullet.Steady.for.AE.1.1.1(稳定降噪) 23、Red.Giant.Film.Fix.v1.0.for.AE【修复老旧影片插件】 DigiEffects系列官网https://www.wendangku.net/doc/155994582.html,/DE系列注册破解方法 1、DE.Delirium.1.8(原版加汉化)32位 DE-DeliriumV2-64bit原版

正确使用DSC基线

Thermal Analysis Information for Users User Com 25 Introduction In thermal analysis, baselines are mostly used in connection with the integration of peaks. The peak area is determined by integrating the area between the measurement curve and a virtual or true baseline. In the same way, the peak temperature is defined as the point on the curve where the distance to the baseline is greatest. Extrapolated baselines are important for the determination of glass transition temperatures Choosing the correct baseline is crucial for the determination of the enthalpy of a transi- tion or a reaction. The baseline represents the DSC curve that would be measured if no transition or reaction occurred. The examples described in this article illustrate how to choose the right baseline for a particular evaluation. Dear Customer, We are very pleased to receive more and more articles from you for publication in UserCom. Thanks to new techniques and better performance, thermal analysis is being used in an ever-increasing number of scien- tific fields. Hyphenated techniques such as evolved gas analysis, microscopy and chemiluminescence yield much more information about samples and very often greatly simplify the interpretation of measurement results. We think this issue of UserCom will once again give you ideas for applications in new and interesting areas using the multitude of techniques now available. Choosing the right baseline Dr. Rudolf Riesen Contents 1/2007 TA Tip - Choosing the right baseline 1 Applications - Determination of the Noack evaporation loss of lubricants by TGA 7 - The characterization of poly- morphs by thermal analysis 9 - Analysis of melting processes using TOP EM? 13 - Characterization of delivery systems by thermogravimetry 18 Tips and hints - Detection and evaluation of weak sample effects in DSC 21 Dates - Exhibitions 23 - Courses and Seminars 23

AE插件particular面板中文翻译

Particular面板参数设置 Emitter 发射器 Emitter Type 发射类型Poin 线 Box 盒子 Sphere 球型 Grid 网格 Direction 发射方向uniform 统一 Directional 单向 Bi- Directional 双向 Dics 圆盘 Outwards 向外的 Velocity 速度 Velocity distribution 速度分布 Velocity from motion 速度运动 Emission extras 发射附加 Pre run 紊乱 Periodicity rud 周期 Random seed 随机种子 Particle 粒子 Life sec 生命值 Life random 生命值随机值 Particle type 粒子种类sphere 球型 Glow sphere(no dof)发光球型(无景深) Star(no dof)星星无景深 Cloudlet 云彩 Streaklet 小团图案 Sprite 子画面妖精 Sprite colorize 子画面彩色替换 Sprite fill 子画面填充 Textured polygon 多边形机理贴图 Textured polygon colorize 多边形贴图颜色替换 Textured polygon fill 多边形贴图填充

Rotation 旋转 Size 大小 Size random 大小随机值 Size over life 发射的大小和生命变化控制Opacity 透明度 Opacity random 透明度随机值 Opacity over life 发射的透明度与生命值变化控制 Set color 设置颜色 At birth 出生时 Over life 发射过程 Random from gradient 随机梯度 From light emitter 灯的反射 Color random 颜色随机 Color over life 发射的颜色与生命值控制

AE常用particular粒子中英文对照表教学文稿

A E常用p a r t i c u l a r 粒子中英文对照表

10xLinear(10x线性) 10x Smooth(10x平滑) Exact(slow)精确(慢) Direction(方向) Uniform(统一)——任一粒子发射类型发射粒子时,会向各个方向移动。 Directional(方向)——(如枪口喷射)通过调节X、Y、Z Rotation来实现。 Bi-Directional(双向)——和Directional(方向)十分相似,但是向着两个完全相反的方向发射。通常为180度。 Disc(圆形)——通常只在两个维度上,形成一个盘形。 Outwards(向外)——粒子会始终向远离发射点的方向移动。而Uniform(统一)是随机的。Direction Spread(方向伸展)—20—可以控制粒子发射方向的区域。 粒子会向整个区域的百分之几运动。(即粒子发射方向有多宽) X Rotation(X旋转) 0x0 X Rotation (Y旋转) 0x0 X Rotation (Z旋转) 0x0 Velocity(速率)—100—粒子每秒钟运动的像素数。 Velocity Random[%](随机运动【%】)20 ——每个粒子Velocity的随机性会随机增加或者减小每个粒子的Velocity。 Velocity Distribution(速度分布)—0.5— Velocity from Motion[%](继承运动速度【%】)20 ——粒子在向外运动的同时也会跟随发射器的运动方向运动。 Emitter Size X(发射器尺寸X ) 50

Emitter Size Y (发射器尺寸Y ) 50 Emitter Size Z (发射器尺寸Z) 50 Particles/sec modifier粒子数/秒修改器--- Light(灯光)下有效 Light Intensity光照强度 Shadow Darkness阴影暗部 Shadow Diffusion阴影漫射 None无 Layer Emitter(发射图层)----Layer(图层)、Layer Grid(图层网格)下有效; Layer(图层)—None无—选用哪一个图层作为发射器; Layer Sampling(图层采样)—— Current Time(当前时间) Particular Birth Time(粒子产生时间) Layer RGB Usage(图层RGB用法)—— Lightness-Size(发光-尺寸)——随着图像的明暗变化,粒子的大小也跟着变化 Lightness-Velocity(发光-速率)——随着图像的明暗变化,粒子的速度也跟着变化 Lightness-Rotation(发光-旋转)——随着图像的明暗变化,粒子的旋转也跟着变化 RGB-Size,Vel,Rot(RGB-大小、速率、旋转)——随着图像的颜色变化,粒子的大小,速度,旋转同时变化 RGB-Particle Color(RGB-粒子颜色)——随着图像的颜色变化,粒子的颜色也跟着变化 None无 Grid Emitter(网格发射)----在(网格、图层网格下有效) Particular in X(粒子在X方向上的数量)5 Particular in Y(粒子在Y方向上的数量)5 Particular in Z(粒子在Z方向上的数量)1 Type(类型)

AE中particular插件中英文对照

AE中particular插件中英文对照(一) Emitter(发射器) Particular/sec (粒子/秒)——每秒钟发射粒子得数量。 Emitter Type(发射器类型)——它决定发射粒子得区域与位置。 Point(点)——从一点发射出粒子 Box(盒子)——粒子会从立体盒子中发射出来, (Emitter Size中XYZ就是指发射器大小) Sphere(球形)——与Box很像,只不过发射区域就是球形 Grid(网格)——(在图层中虚拟网格)从网格得交叉点发射粒子 Light(灯光)——(要先新建一个Light Layer)几个Light Layer可以共用一个Particular。Layer——使用合成中得3D图层生成粒子, Layer Grid——同上,发射器从图层网格发射粒子,像Grid一样。 Direction(方向) Uniform(统一)——任一粒子发射类型发射粒子时,会向各个方向移动。 Directional(特定方向)——(如枪口喷射)通过调节X、Y、Z Rotation来实现。 Bi-Directional(相反特定方向)——与Directional十分相似,但就是向着两个完全相反得方向发射。通常为180度。 Disc(盘状)——通常只在两个维度上,形成一个盘形。 Outwards (远离中心) ——粒子会始终向远离发射点得方向移动。而Uniform就是随机得。Direction Spread(方向拓展)——可以控制粒子发射方向得区域。粒子会向整个区域得百分之几运动。 (即粒子发射方向有多宽) Velocity(速度)——粒子每秒钟运动得像素数。Velocity Random——每个粒子Velocity得随机性会随机增加或者减小每个粒子得Velocity。 Velocity Distribution()—— Velocity from Motion(速度跟随运动)——粒子在向外运动得同时也会跟随发射器得运动方向运动。 Layer Emitter(图层发射器) Layer(选用哪一个图层作为发射器) Layer Sampling()—— 2 Current Time(当前时间) Particular Birth Time(粒子生成时间) Layer RGB Usage(图层颜色使用方式) Lightness-Size——随着图像得明暗变化,粒子得大小也跟着变化

ABAP Number Ranges设置及使用

ABAP:ABAP--How to use Number Ranges' Function? 2007-08-16 14:29:20| 分类:SAP ABAP | 标签:|字号大中小订阅 在SAP系统中,号码范围用于给数据记录提供惟一标识. 1 号码范围对象分类 ?无子对象的号码范围对象 无分组 (1) one, two or several number ranges 有分组 (2) one number range, external or internal, per group (3) two number ranges, external and internal, per group ?有子对象的号码范围对象 无分组 (4) one, two or several number ranges 有不依赖子对象的分组 (5) one number range, external or internal, per group (6) two number ranges, external and internal, per group 有依赖子对象的分组 (7) one number range, external or internal, per group (8) two number ranges, external and internal, pergroup 二、如何使用号码范围 2.1 确定号码范围的类型并创建新的号码范围对象(SNRO) 需要多少个号码范围: 1, 2 或者更多? 号码范围是否需要子范围对象(如:company code, plant, controlling area等等)? 号码范围是否需要分组(如:物料类型)? 如果需要分组,那分组的是否需要子范围对象? 号码范围是否需要区分财务年度? 2.2 维护号码范围对象的间隔; 3.3 在程序中使用号码范围的函数进行记录编号或检查可用号码;

Java程序设计之swt教程

J a v a程序设计之s w t 教程 公司内部编号:(GOOD-TMMT-MMUT-UUPTY-UUYY-DTTI-

第4章 SWT图形用户界面 本章要点 1.SWT程序开发步骤。 2.SWT常用组件的使用。 3.SWT的布局。 4.SWT的事件处理。 5.SWT Designer简介。 本章难点 1.SWT常用组件的使用。 2.SWT的布局。 3.SWT的事件处理。 JFace简介 SWT(Standard Widget Toolkit)即标准小窗口工具箱,是公司推出的一种在Eclipse中使用的集成开发环境,SWT提供可移植的API,并与底层本机OS GUI平台紧密集成,它是一个与本地窗口系统集成在一起的小部件集和图形库。SWT由JNI(Java Native Interface,Java本机接口)调用操作系统的内部API,因此运行速度快,能够获得与操作系统的内部应用程序相同的外观。 JFace是一个用户界面工具箱,也是一个易用、功能强大的图形包,它简化了常见的图形用户界面的编程任务。SWT和JFace都是Eclipse平台上的主要组件。JFace是在SWT的基础上创建的,但JFace并不能完全覆盖SWT的功能,

JFace和SWT的关系如图所示。由于JFace的功能更强大,因此做图形界面开发时一般优先选用JFace。 图 JFace和SWT的关系 SWT程序开发步骤 在eclipse的plugins目录下,找到文件,文件名中中是eclipse的版本号,v3235是SWT的序列号,不同的eclipse版本这两个数字也不同。在DOS状态下,用jar命令将该文件解压,命令格式如下: jar xf 该命令将指定的文件解压到当前目录下。解压后得到四个DLL文件:,,和。这四个文件就是SWT的原生库文件。原生库文件为SWT通过JNI访问windows本地API提供了接口,为使Java程序在启动时能够访问这些文件,可以通过以下方法进行设置: 方法一:将这四个DLL文件复制到jre的bin目录下。 方法二:设置环境变量,在PATH中加入这几个dll文件所在的目录。 方法三:在eclipse的Java项目中导入原生库文件。操作方法是: 在eclipse的包资源管理器中,右单击项目名→导入→常规→文件系统→下一步→浏览→选择DLL文件所在目录→确定→勾选DLL文件→完成。 导入SWT的原生库文件后,还要在eclipse的Java项目中配置构建路径,添加外部JAR,将文件加入到项目中,操作方法是:

AE--particular插件实用讲解(一定用得到)

AE particular插件实用讲解(一定用得到) 一.Emitter:用于产生粒子 1.Particles/sec控制每秒钟产生的粒子数量 2. Emitter Type设定粒子的类型。有point、box、sphere、grid、 light、layer、layer grid等七种类型。 3 .Position XY 和 Position Z设定粒子的位置 4 .Direction用于控制粒子的运动方向。 5 .Direction Spread控制粒子束的发散程度 6 .X,Y and Z Rotation用于控制粒子发生器的方向。 7 Velocity用于设定新产生粒子的初始速度。 8. Velocity Random为粒子设定随机的初始速度。 9. Velocity from Motion粒子继承粒子发生器的速度。 10. Emitter Size X,Y and Z设定粒子发生器的大小 二.Particle设定粒子的所有外在属性 1 .Life 以秒为单位控制粒子的生命周期 2 .Life Random 为粒子的生命周期随机值 3 .Particle Type粒子类型:球形、发光球形、星形、云团(cloudlet)、烟雾、自定义形对于custom类型的粒子,如果用户选择一个动态的层作为粒子时,还有一个重要的概念: time sampling mode时间采样方式,选择自定义类型时能用。4中方式 (1)Start at Birth – Play Once 从头开始播放custom层粒子一次。(2)Start

at Birth – Loop 循环播放custom层粒子。 (3)Start at Birth – Stretch延伸播放,匹配粒子的生命周期。 (4)Random – Still Frame 随机抓取custom层中的一帧作为粒子(5)Random – Play Once随机抓取custom层中的一帧作为播放起始点,然后按照正常的速度进行播放custom层。 (6)Random – Loop随机抓取custom层中的一帧作为播放起始点,然后循环播放custom层。 (7)Split Clip – Play Once随机抽取custom层中的一个片断(clip)作为粒子,并且只播放一次。 (8)Split Clip – Loop 随机抽取custom层中的一个片断(clip)作为粒子,并进行循环播放。(9)Split Clip – Stretch 随机抽取custom层中的一个片断,并进行时间延伸,以匹配粒子的生命周期。 4.Sphere/Cloudlet/Smokelet Feather控制球形、云团和烟雾状粒子的柔和程度 5. Custom该参数组在粒子类型为custom时才起作用。 6. Rotation用来控制粒子的旋转属性 7 .Rotation Speed用来控制粒子的旋转速度。 8. Size用来控制粒子的大小。

可视化的PLC程序使用XML

Visualization of PLC Programs using XML M. Bani Younis and G. Frey Juniorprofessorship Agentenbased Automation University of Kaiserslautem P. 0. Box 3049, D-67653 Kaiserslautem, Germany Abstract - Due to the growing complexity of PLC programs there is an increasing interest in the application of formal methods in this area. Formal methods allow rigid proving of system properties in verification and validation. One way to apply formal methods is to utilize a formal design approach in PLC programming. However, for existing software that has to be optimized, changed, or ported to new systems .There is the need for an approach that can start from a given PLC program. Therefore, formalization of PLC programs is a topic of current research. The paper outlines a re-engineering approach based on the formalization of PLC programs. The transformation into a vendor independent format and the visualization of the structure of PLC programs is identified as an important intermediate step in this process. It is shown how XML and corresponding technologies can be used for the formalization and visualization of an existing PLC program. I. INTRODUCTION Programmable Logic Controllers (PLCs) are a special type of computers that are used in industrial and safety critical applications. The purpose of a PLC is to control a particular process, or a collection of processes, by producing electrical control signals in response to electrical process- related inputs signals. The systems controlled by PLCs vary tremendously, with applications in manufacturing, chemical process control, machining, transportation, power distribution, and many other fields. Automation applications can range in complexity from a simple panel to operate the lights and motorized window shades in a conference room to completely automated manufacturing lines. With the widening of their application horizon,PLC programs are being subject to increased complexity and high quality demands especially for safety-critical applications. The growing complexity of the applications within the compliance of limited development time as well as the reusability of existing software or PLC modules requires a formal approach to be developed [I]. Ensuring the high quality demands requires verification and validation procedures as well as analysis and simulation of existing systems to be carried out [2]. One of the important fields for the formalization of PLC programs that have been growing up in recent time is Reverse-engineering [3]. Reverse Engineering is a process of evaluating something to understand how it works in order to duplicate or enhance it. While the reuse of PLC codes is being established as a tool for combating the complexity of PLC programs, Reverse Engineering is supposed to receive increased importance in the coming years

particular插件教程

Trapcode公司是很有名的视频软件公司,开发了Shine、SoundKeys、Lux、3Dstroke、StarGlow、Particular整套插件(在https://www.wendangku.net/doc/155994582.html,下载),这里学习Trapcode Particular粒子插件( 3d粒子系统)。 本文是Trapcode Particular(最新版本为v1.5)的基础知识篇,主要介绍Particular 的组成、基本功能、效果的实时预览、主要参数的设置与调整。笔者列出了参数不同设置值 时的效果图,帮助读者提高动画创建效率。 一、启动 运行AfterEffect6.5。 1、建立新合成文件,Composition->New Composition,名字自取,比如Trapcode。 2、建立新层,Layer->New->Solid,取名Particular。 3、引入特效:Effect->Trapcode->Particular。 二、Particular系统的组成 如图1

(图1) 三、预设置的使用(Using Presets) 1、多达38种动画效果的预设置系统: 点击Animation Presets,可以看到Trapcode Particular配置的预设置效果。 如图2。

(图2) 这些预设置的帧大小在640*480到PALD1之间,帧速率在20-40fps。当然你完全可以根据你的喜好和需要调整参数,比如粒子的大小、速率和运动快门角度等。可以选择"Save Selection as Animation Preset"保存你自己建立的特效效果,为了避免和系统中内置的效果发生混乱,保存自定义的效果时注意不要再使用前缀名"t_"。同时还得注意在选择预设置之前,必须确保引入特效的当前时间点在时间线控制窗口工作区的开始端。也就是0秒处。 如图3。 (图3) 选择了预设置,可以在如图1的预览窗口中预览。 2、实现预览的两种方法: 一是在预览窗口中点击并按住鼠标左键不放,拖移鼠标,动画随着鼠标移动的路径而运 动; 二是按住shift,在预览窗口中点击,当前的鼠标位置点位置作为发射器的发射点,动画效果就会播放出来,松开鼠标,发射器停止发射,再按住鼠标,又继续发射粒子。 通过预览可以实时观察当前的设置效果,不需要用渲染的方式,节省了时间和系统资源, 大大提高工作效率。

使用QUARTUS II做FPGA开发全流程,傻瓜式详细教程

My First FPGA Design Tutorial 101 Innovation Drive San Jose, CA 95134 (408) 544-7000 https://www.wendangku.net/doc/155994582.html, TU-01002-1.0

Copyright ? 2007 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device des-ignations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Al-tera products are protected under numerous U.S. and foreign patents and pending applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the ap- plication or use of any information, product, or service described herein except as expressly agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device specifications before relying on any published in- formation and before placing orders for products or services. Printed on recycled paper

AE常用particular粒子中英文对照表

为什么 particular 是个粒子生成器? 在particular 中粒子有好几种类型。 1.粒子可以是particular 自己生成的一张图像。球星、发光球体、星状、云状、烟状。 2.当我们使用Custom Particular (定制粒子)时,意味着我们可以使用任何图像作为粒子。 所以什么是Particular ? Particular 就是图像。 Particular Generater(粒子生成器)是用来生成和控制粒子的工具。控制各种特性,例如速度、方向、大小和颜色、以及物理属性,如重力 turbulence(涡流)等等。 Particular界面 (默认设置) Emitter (发射器) Particular/sec (粒子数量 /秒)—100—每秒钟发射粒子的数量。 Emitter Type(发射器类型)——它决定发射粒子的区域和位置。 Point (点)——从一点发射出粒子 Box (盒子)——粒子会从立体盒子中发射出来,( Emitter Size Sphere(球体)——和 Box 很像,只不过发射区域是球形 中XYZ是指发射器大小)Grid (网格)——(在图层中虚拟网格)从网格的交叉点发射粒子 Light (灯光)——(要先新建一个Light Layer )几个 Light Layer Layer (图层)——使用合成中的3D 图层生成粒子, Layer Grid (图层网格)——同上,发射器从图层网格发射粒子,像可以共用一个Particular 。 Grid (网格)一样。 Position位置XY Position位置Z0 Position Subframe位置子帧 Linear( 线性 ) 10xLinear(10x 线性 ) 10x Smooth(10x 平滑 ) Exact(slow) 精确(慢) Direction(方向) Uniform (统一)——任一粒子发射类型发射粒子时,会向各个方向移动。 Directional (方向)——(如枪口喷射)通过调节X 、 Y 、Z Rotation 来实现。 Bi-Directional (双向)——和Directional (方向)十分相似,但是向着两个完全相反的方向发射。通常为180 度。 Disc (圆形)——通常只在两个维度上,形成一个盘形。 Outwards (向外)——粒子会始终向远离发射点的方向移动。而Uniform(统一)是随机的。 Direction Spread(方向伸展)—20—可以控制粒子发射方向的区域。 粒子会向整个区域的百分之几运动。(即粒子发射方向有多宽) X Rotation(X X Rotation (Y X Rotation (Z 旋转 ) 旋转 ) 旋转 ) 0x0 0x0 0x0 Velocity(速率)— 100—粒子每秒钟运动的像素数。 Velocity Random[%](随机运动【 % 】)20 ——每个粒子Velocity 的随机性会随机增加或者减小每个粒子的Velocity。Velocity Distribution(速度分布)— 0.5— Velocity from Motion[%] (继承运动速度【 % 】)20 ——粒子在向外运动的同时也会跟随发射器的运动方向运动。Emitter Size发射X(器尺寸X )50

solidworks二次开发全教程系列

solidworks二次开发全教程系列 solidworks二次开发-01-录制一个宏 第一步: 我们需要自己录制一个宏,然后看看程序产生了什么代码。当初学习excel时候就是这么干的。只是,solidworks要复杂一些,直接录制的宏不能使用,需要做一些调整。在没有经验的时候我们最好按照下面的建议来做。 Edit or Debug SolidWorks Macro Edit or debug SolidWorks macros using Microsoft VBA. 使用Microsoft VBA编辑或调试宏 To edit or debug a SolidWorks macro: Click Edit Macro on the Macro toolbar, or click Tools, Macro, Edit. NOTES: 注意: To automatically edit a macro after recording it, click Tools, Options, Systems Options. On the General tab, select Automatically edit macro after recording and click OK. This setting is persistent across SolidWorks sessions. 此选项Automatically edit macro after recording 顾名思义是在记录宏完毕后自动打开编辑界面。 If you recently edited the macro, you can select it from the menu when you click Tools, Macro. This menu lists the last nine macros that you edited. 已经编辑了宏,菜单中会有最近的9个宏程序列表供选择。 In the dialog box, select a macro file (.swp) and click Open. 选择一个宏swp文件 NOTE: You can also edit .swb files, which are older-style SolidWorks macro files. When you run or edit a .swb file, it is automatically converted to a .swp file. 旧的宏文件后缀为swb,你也可以打开swb,那么会自动保存为swp。 Edit or debug the macro. If it is a new macro, be sure to:如果是新的宏 Delete extra lines of code: 删除一些多余的代码: The following variables are declared automatically in a SolidWorks macro. Delete any variables not used in the macro. 这些对象的声明是自动产生的,可以将没用的删除Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim FeatureData As Object Dim Feature As Object Dim Component As Object Delete all lines of code that change the view. 删除切换试图的代码 译者注:像这样的Part.ActiveView().RotateAboutCenter 0.0662574, 0.0346621 无情的删掉吧 Delete all ModelDocExtension::SelectByID2 calls appearing immediately before ModelDoc2::ClearSelection2

相关文档