GMF中,自动画连接线
来源:互联网 发布:pdf编辑软件下载 编辑:程序博客网 时间:2024/04/27 13:26
忘记将自动画连接线的代码贴出来了,特此补一补:
private void drawLink(ModuleEditPart sourceModuleEditPart, ModuleEditPart targetModuleEditPart) {
IElementType type = ModuleElementTypes.Link_3001; // 连接线类型
CreateConnectionViewAndElementRequest createConnectionRequest
= new CreateConnectionViewAndElementRequest(
type, ((IHintedType) type).getSemanticHint(),
PreferencesHint.USE_DEFAULTS);
org.eclipse.gef.commands.Command createConnection
= CreateConnectionViewAndElementRequest
.getCreateCommand(createConnectionRequest,
sourceModuleEditPart, targetModuleEditPart);
moduleDiagramEditPart.getDiagramEditDomain()
.getDiagramCommandStack().execute(createConnection);
}
画连接线和画节点的不同之处在于画连接线的时候要指定源和目标节点。
- GMF中,自动画连接线
- table中做连接线
- 连接线
- 使用GMF开发可视化界面编辑器(三)——连接线的绘制
- GMF
- gmf
- GMF中,创建向导页
- GMF中修改的内容
- 通过USB连接线ssh到iOS中
- XMind中主题连接线格式修改教程
- viso2003下动态连接线的自带文本框位置移动
- GMF中,获得当前editor的EditPart
- GMF中,禁止delete from diagram
- GMF中,如何给属性排序
- TreeView控件在IE7中连接线 对不齐
- 在 Windows 7 中通过 USB 连接线安装备用驱动程序
- visio 中取消 交叉连接线的拱形的方法
- Visio中连接线交叉时跨线小弯的去掉方法
- JSON数据的解析
- 使用maven部署项目到tomcat 7
- 高内聚 低耦合
- jQuery.ajax异步变成同步的请求JSON数据例子
- mybatis 报错
- GMF中,自动画连接线
- JBPM配置
- Hibernate Duplicate entry 解决方法
- 用命令创建ODBC数据源
- Oracle 游标使用全解
- 关于Oracle过程,函数的经典例子及解析
- MapReuce 算法设计(一)---Combiner 和 In-Mapper Combing
- B-Tree B+Tree mysql索引(MyISAM,InnoDB)
- Ruby学习之路——编程实践【5】 选择排序