Java Draw2d 目录1,helloworld (http://xmind.iteye.com/blog/814981)2,Label事件(http://xmind.iteye.com/blog/722505)3,布局管理器3.1,BorderLayout(http://xmind.iteye.com/blog/814965 )3.2,FlowLayout (http://xmind...
原创 2023-10-13 11:09:41
76阅读
/** * A test class to display a UMLFigure */public class UMLClassFigureTest { private static Display display = Display.getDefault(); public static void main(String args[]) { final She...
原创 2023-10-20 10:36:11
43阅读
关键字:Draw2d 连线 PolylineConnection public class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); hell.setSize(400, 4...
原创 2023-10-20 10:37:25
55阅读
关键字:Draw2d 拖拽 Drag and Drop public class Scroller2 { IFigure getRootFigure() { Panel panel = new Panel(); panel.setLayoutManager(new XYLayout()); RectangleFigure rFigure = new Rectangl..
转载 2023-10-20 10:36:35
74阅读
关键字:Draw2d 边界 边框 border 在Draw2d中还提供了许多的边界的选择:分组框边界:(GroupBoxBorder)标题栏边
原创 2023-10-20 10:36:17
62阅读
关键字:Draw2d 连线 路由 Router ManhattanConnectionRouter NullConnectionRouter : 直接的直线连接。FanRouter : 防治连线重叠的连接。BendpointConnectionRouter : 允许用户任意拖动连线中的部分的方式增加节点。ShortestPathConnectionRouter : 最短路径的连..
原创 2023-10-20 10:36:49
66阅读
public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2
原创 2023-10-20 10:38:07
74阅读
关键字:Draw2d 连线 Locator  ConnectionEndpointLocatorpublic class HelloWorld2 { public static void main(String args[]) {
原创 2023-10-20 10:45:59
30阅读
关键字:Draw2d 、Decoration 、 箭头为连线增加箭头。public class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.setSize(200,...
转载 2023-10-20 10:37:13
63阅读
关键字:Draw2d,连线,ChopboxAnchor  EllipseAnchor连线一提到的连线其实并没有连接到图形的边框上,这个问题主要取决于锚点(Anchor)。如果将代码中的椭圆改为正圆就很容易看出来了。 public class HelloWorld2 { public static void main(String args[]) { Shell shell...
原创 2023-10-20 10:37:21
39阅读
XYLayout就是采用绝对坐标来确定子figure的位置和大小。/** * Calculates and returns the preferred size of the input figure. Since in X
转载 2023-10-20 10:38:44
29阅读
代码:package com.iteye.xmind.draw2d.version2;import org.eclipse.draw2d.Button;import org.eclipse.draw2d.LightweightSystem;import org.eclipse.draw2d.ScalableFreeformLayeredPane;import org.ec...
原创 2023-10-13 11:09:33
3900阅读
 先来个hellloworld入门啊。 public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.pack(); shell.open(); ...
原创 2023-10-20 10:38:01
52阅读
public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d
原创 2023-10-20 10:38:11
59阅读
转载 2018-06-27 15:16:00
147阅读
2评论
关键字:Draw2d、锚点、TriangleAnchor 连线的时候能不能连接到画的图中去,在连线二中已经提到了,简单的跟图形连在一起,但是对于特殊的
原创 2023-10-20 10:37:17
69阅读
摘要:使用Draw2d ,画图,连线,可拖动图像,连线跟着移动。1,代码:public class Connection { public static void
原创 2023-10-20 10:43:48
69阅读
摘要:Draw2d 实现按钮和标签一样的小控件。public class Draw2D_Example { public static void main(String args[]) { final
原创 2023-10-20 10:43:29
56阅读
连接点PathFigure 连接点从PolylineConnection继承下来,在构造函数中设置目标对象连接点的装饰类,也就是示例中的三角形(PolylineDecoration),以及设定连接线路由样式,这里设置为ManhattanConnectionRouter   view sourceprint?
原创 2010-11-23 16:02:00
1638阅读
在GEF(Graphical Editing Framework)介绍中已经对Draw2D进行了一些概要介绍,本篇从一个流程图的编写来学习Draw2D的是GEF的基础。 练习要求 做一个图下图所示流程图,流程图中的各个图例可以移动,每个不同类型的图例也不一样。 源码下载:flowchart-Draw2D.zip 基础概念     图例Figure
原创 2010-11-23 16:02:00
1799阅读
  • 1
  • 2
  • 3
  • 4
  • 5