- 浏览: 550561 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (344)
- ··············未分类············· (33)
- Eclipse 插件 (15)
- EDA 工具 (1)
- Linux/Unix (3)
- Java (43)
- Java Applet (1)
- Java Draw2d (22)
- Java Draw2d version2 (6)
- Java GEF (2)
- Java SWT (21)
- Java SWT Image 图像 (21)
- Java SWT Tree (16)
- Java SWT Table (4)
- Java SWT TableViewer (11)
- Java SWTbot (4)
- Java Test (2)
- Java Thread 多线程 (22)
- Java Zest (5)
- RC2_3S400学习笔记 (16)
- tcl 脚本 (10)
- Verilog (7)
- XML (6)
- 国家 (5)
- 感叹 (4)
- 面试题 (9)
- 生活 (36)
- 足球 世界杯 (8)
- 老公看你的 (3)
- web开发 (1)
- 数据结构——图 (7)
- c language (1)
最新评论
-
zxjlwt:
路过素人派http://surenpi.com
SWT 树的事件 SWT.Selection SWT.CHECK SWT.DefaultSelection -
hj01kkk:
1楼用法正解
JDK 7 中的 Fork/Join 模式 -
fish_no7:
使用 new SortTask().fork()
JDK 7 中的 Fork/Join 模式 -
wpf523:
mark
Java 多线程例子6 线程安全 线程同步 同步代码块 同步函数 -
uniquejava:
以前碰到过,估计是在icu包中实现了双击自动选中一段文本的功能 ...
java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator
关键字:Draw2d 连线 路由 Router ManhattanConnectionRouter
NullConnectionRouter : 直接的直线连接。
FanRouter : 防治连线重叠的连接。
BendpointConnectionRouter : 允许用户任意拖动连线中的部分的方式增加节点。
ShortestPathConnectionRouter : 最短路径的连接。
ManhattanConnectionRouter : 都以垂直和水平的方式来连接,同时回避线条重叠。
ManhattanConnectionRouter 效果:
public class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.setSize(300, 300); shell.open(); // create content 4 shell. createContent4Shell(shell); while (!shell.isDisposed ()) { if (!Display.getDefault().readAndDispatch ()) Display.getDefault().sleep (); } } private static void createContent4Shell(Shell shell) { Panel rootFigure = new Panel(); rootFigure.setLayoutManager(new XYLayout()); IFigure figure1 = new Ellipse(); Ellipse figure2 = new Ellipse(); // -------------------------------------------------------- // add connection PolylineConnection connection = new PolylineConnection(); connection.setSourceAnchor(new ChopboxAnchor(figure1)); connection.setTargetAnchor(new EllipseAnchor(figure2)); // -------------------------------------------------------- // add Decoration to Connection connection.setSourceDecoration(new PolygonDecoration()); // -------------------------------------------------------- // add Labels to Connection ConnectionEndpointLocator Locator1 = new ConnectionEndpointLocator(connection, true); Locator1.setVDistance(30); connection.add(new Label("1..*"), Locator1); ConnectionEndpointLocator Locator2 = new ConnectionEndpointLocator(connection, false); Locator2.setVDistance(15); connection.add(new Label("22..*"), Locator2); ConnectionEndpointLocator Locator3 = new ConnectionEndpointLocator(connection,true); Locator3.setUDistance(80); Locator3.setVDistance(-20); connection.add(new Label("3333..*"),Locator3); // -------------------------------------------------------- // add Router to Connection connection.setConnectionRouter(new ManhattanConnectionRouter()); rootFigure.add(figure1,new Rectangle(10,10,60,30)); rootFigure.add(figure2,new Rectangle(170,170,90,90)); rootFigure.add(connection); LightweightSystem lws = new LightweightSystem(shell); lws.setContents(rootFigure); } }
发表评论
-
ShortestPathConnectionRouter使用的例子
2013-05-16 15:29 934public class Connection { ... -
Java Draw2d 目录
2013-04-23 15:02 1055Java Draw2d 目录1,helloworld (h ... -
Draw2D Flowchart的教程
2010-11-22 13:00 1356关键字:Draw2D Flowchart 原文链接:htt ... -
Draw2D UML Diagram
2010-11-22 11:06 2095/** * A test class to displa ... -
Draw2d 边界 边框 border
2010-11-20 09:55 1906关键字:Draw2d 边界 边框 border 在Dr ... -
Draw2d 拖拽 Drag and Drop
2010-11-19 21:10 1838关键字:Draw2d 拖拽 Drag and Drop ... -
Draw2d 连线五 Locator 标示
2010-11-19 19:26 1049关键字:Draw2d 连线 Locator Connecti ... -
Draw2d 连线四 箭头 Decoration
2010-11-19 19:07 1559关键字:Draw2d 、Decoratio ... -
Draw2d 连线三 锚点 TriangleAnchor
2010-11-19 18:10 2117关键字:Draw2d、锚点、TriangleAnchor ... -
Draw2d 连线二 ChopboxAnchor EllipseAnchor
2010-11-19 16:35 1530关键字:Draw2d,连线,ChopboxAnchor El ... -
Draw2d 连线一
2010-11-19 16:15 1149关键字:Draw2d 连线 PolylineConnectio ... -
Draw2d 学习笔记八 GridLayout ToolbarLayout布局管理器
2010-11-19 14:36 2670原文:http://www.cnblogs.com/bjzha ... -
Draw2d 学习笔记六 布局管理器 约束(Constraint)
2010-11-19 12:17 1278关键字:Draw2d、布局管理器、约束(Constraint) ... -
Draw2d 学习笔记七 GridLayout布局管理器
2010-11-18 18:22 1249关键字:Draw2d GridLayout 布局管理器Grid ... -
Draw2d 学习笔记五 布局管理器 ScrollPaneLayout ScrollPane
2010-11-18 16:03 2245关键字:Draw2d ScrollPaneLayout Sc ... -
Draw2d 学习笔记四 XYLayout
2010-11-18 15:57 1408XYLayout就是采用绝对坐标来确定子figure的位置和大 ... -
Draw2d 学习笔记一 helloworld
2010-11-18 14:02 1246先来个hellloworld入门啊。 public ... -
Draw2d 学习笔记三 FlowLayout
2010-11-18 14:01 1180public class HelloWorld { p ... -
Draw2d 学习笔记二 BorderLayout
2010-11-18 13:53 1437public class HelloWorld { p ... -
Draw2d 中 Label Clickable ButtonModel的使用
2010-07-27 17:26 1416摘要:Draw2d 实现按钮和标签一样的小控件。 publi ...
相关推荐
软路由 RouterOS-5.22.hnt.1G(亲测:已完美激活、最高级L6级授权ROS).zip
vue动态路由router.txt
vue 项目初识 路由 router 并进行初步配置以及简单的组件实现,初学vue router可以参考
首先假设项目中有两个路由Profile和Posts,按写法把他们定义为一层路由,是Root的子路由,因此Root中要有router-view组件去承载子路由,才能实现子路由切换展示 一层路由 Root容器 <h1>Ro
少的朋友喜爱自制PC状态监测/RouterOS并口液晶屏用来实时显示CPU占用率、内存剩余、网络流量和C 息等,很常见的选用字符型液晶屏,其优点有:规格众多,字符数从8×2到20×4;结构简单,采用8位并行数据总线;技术...
这是一个使用uni-simple-router实现简单的路由守卫
RouterOS设置实战篇(ADSL拨号和固定IP设置) Router OS 设置 实战篇 RouteOS可以将一台普通的PC机变成一台专业的路由器,高到ISP的核心路器/认证网关—因为它功能强大稳定, 低到家庭网关防火墙—因为它免费。它...
主要介绍了React-router4路由监听的实现,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
vue3+webpack+vue-router封装路由,资源内容包含了vue3+webpack+vue-router,并且代码对vue-router路由进行了封装,资源下载下来之后项目代码需要先:npm install,之后就可以运行启动项目了,代码结构清晰,没有...
ROS软路由中不能直接使用中文,本工具可以将中文转换成RouterOS可识别的编码 本人将源码开放出来,供大家学习参考
AngularJS 嵌套路由:这是我针对同一个主题(ui-router)的第二篇文章. 如果你对第一篇文章感兴趣的话,可以访问 这里. 好了,让我们继续吧,来看看嵌套的ui-router状态是怎么回事. ui-router和同属AngularJS框架一...
摘 要:RouterOS 是一种路由操作系统,通过该软件可以将普通的PC 电脑变成专业路由器,该软件经历了多次更新和改进,其功能在不断增强和完善。特别在无线、认证、策略路由、带宽控制和防火墙过滤等方面有着非常突出...
通过API来控制RouterOS软路由系统,实例给出列出在线用记和所有用户的操作。RouterOS需3.0以上版本,且要打开API功能!
路由的注意事项,二级三级路由的引用和路由的抽离,以及router-view的复用
vue3+webpack+vue-router路由封装+axios封装+vuex封装,下载资源中包括了vue3+webpack+vue-router路由封装+axios封装+vuex封装的相关代码,分别对vue-router路由进行了封装,对axios进行了封装,对vuex进行了封装,...
今天小编就为大家分享一篇解决vue更新路由router-view复用组件内容不刷新的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
该路由操作系统广泛应用于网吧软路器的制作,具有大型网路由的功能,且可以全DIY制作路由器,仅需一台好一点的电脑就可以了,但不是太好的那种,内存大一点,,不会超过3000元人民币的
本解决方案下的ui.router项目是针对angularjs ui.router嵌套路由做的一个demo,程序代码采用VS2013开发,代码齐全,可直接运行。有需要的带走吧~v~v~
这是一个别人做好的软路由的备份包 router os
华为路由模拟器3.0 华为路由模拟器 Router Huawei Cisc