- 博客(20)
- 问答 (1)
- 收藏
- 关注
原创 图像转字符 ascii文字图
关键字:ascii文字图 图像转字符下面的网站可以提供:http://www.orz6.com/photo.aspx 常常在coding的时候,要写一些注释,但用图像的表达更清晰一些。下面是一个效果图: 转化后:写道 r1 r5 SS ...
2010-11-30 18:28:23 279
原创 java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator
关键字:java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator StyledText 在RCP程序中使用StyledText的时候,发现了一个奇怪的错误总是报这个:错误信息: 写道!ENTRY org.eclipse.ui 4 0 2010-11-25 14:04:50.355 !MESSAGE Unhandl...
2010-11-25 14:00:33 1012
原创 Draw2D Flowchart的教程
关键字:Draw2D Flowchart原文链接:http://dev.csdn.net/author/ioriogami/b9194278f42843f68a495c70f2fcca9d.html源文件见附件。效果图: 里面实现了一种固定连线锚点的类: ...
2010-11-22 13:00:57 356
原创 Draw2D UML Diagram
/** * A test class to display a UMLFigure */public class UMLClassFigureTest { private static Display display = Display.getDefault(); public static void main(String args[]) { final She...
2010-11-22 11:06:16 148
原创 Draw2d 边界 边框 border
关键字:Draw2d 边界 边框 border 在Draw2d中还提供了许多的边界的选择:分组框边界:(GroupBoxBorder)标题栏边界:(TitleBarBorder)复合式边界:(CompoundBorder)框架边界:(FrameBorder)焦点边界:(FocusBorder)线条边界:(LineBorder)预配置型边界:(SchemeBord...
2010-11-20 09:55:36 449
Draw2d 拖拽 Drag and Drop
关键字:Draw2d 拖拽 Drag and Drop public class Scroller2 { IFigure getRootFigure() { Panel panel = new Panel(); panel.setLayoutManager(new XYLayout()); RectangleFigure rFigure = new Rectangl...
2010-11-19 21:10:06 316
原创 Draw2d 连线六 路由 Router
关键字:Draw2d 连线 路由 Router ManhattanConnectionRouter NullConnectionRouter : 直接的直线连接。FanRouter : 防治连线重叠的连接。BendpointConnectionRouter : 允许用户任意拖动连线中的部分的方式增加节点。ShortestPathConnectionRouter : 最短路径的连...
2010-11-19 19:42:30 581
原创 Draw2d 连线五 Locator 标示
关键字:Draw2d 连线 Locator ConnectionEndpointLocatorpublic class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.s...
2010-11-19 19:26:54 150
Draw2d 连线四 箭头 Decoration
关键字:Draw2d 、Decoration 、 箭头为连线增加箭头。public class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.setSize(200,...
2010-11-19 19:07:17 188
原创 Draw2d 连线三 锚点 TriangleAnchor
关键字:Draw2d、锚点、TriangleAnchor 连线的时候能不能连接到画的图中去,在连线二中已经提到了,简单的跟图形连在一起,但是对于特殊的图是有不同的需求的。如三角形,怎样连接端点。 public class TriangleAnchor extends ChopboxAnchor { public TriangleAnchor(Triangle trian...
2010-11-19 18:10:36 163
原创 Draw2d 连线二 ChopboxAnchor EllipseAnchor
关键字:Draw2d,连线,ChopboxAnchor EllipseAnchor连线一提到的连线其实并没有连接到图形的边框上,这个问题主要取决于锚点(Anchor)。如果将代码中的椭圆改为正圆就很容易看出来了。 public class HelloWorld2 { public static void main(String args[]) { Shell shell...
2010-11-19 16:35:09 153
原创 Draw2d 连线一
关键字:Draw2d 连线 PolylineConnection public class HelloWorld2 { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.setSize(400, 4...
2010-11-19 16:15:20 254
原创 Draw2d 学习笔记八 GridLayout ToolbarLayout布局管理器
原文:http://www.cnblogs.com/bjzhanghao/archive/2006/09/05/495747.html该文章来之“八进制”。public class Draw2DLayoutExample { static Figure canvas;//Parent figure which uses XYLayout as its layout manager ...
2010-11-19 14:36:16 197
Draw2d 学习笔记六 布局管理器 约束(Constraint)
关键字:Draw2d、布局管理器、约束(Constraint) Draw2d中的布局管理器和约束是一一对应的,也就是说不同的布局管理对应不同的约束。 XYLayoutRectanglenew Rectangle(10,10,-1,-1)BorderLayoutIntegerBorderLa...
2010-11-19 12:17:25 181
Draw2d 学习笔记七 GridLayout布局管理器
关键字:Draw2d GridLayout 布局管理器GridData public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.setSize(300,...
2010-11-18 18:22:49 165
Draw2d 学习笔记五 布局管理器 ScrollPaneLayout ScrollPane
关键字:Draw2d ScrollPaneLayout ScrollPane 布局管理器 滚动条public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.s...
2010-11-18 16:03:50 979
Draw2d 学习笔记四 XYLayout
XYLayout就是采用绝对坐标来确定子figure的位置和大小。/** * Calculates and returns the preferred size of the input figure. Since in XYLayout the * location of the child should be preserved, the preferred size would be ...
2010-11-18 15:57:33 206
原创 Draw2d 学习笔记一 helloworld
先来个hellloworld入门啊。 public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.pack(); shell.open(); ...
2010-11-18 14:02:50 111
原创 Draw2d 学习笔记三 FlowLayout
public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.pack(); shell.open(); // create content 4 s...
2010-11-18 14:01:45 117
原创 Draw2d 学习笔记二 BorderLayout
public class HelloWorld { public static void main(String args[]) { Shell shell = new Shell(); shell.setText("Draw2d Hello World"); shell.pack(); shell.open(); // create content 4 s...
2010-11-18 13:53:36 128
空空如也
是否需要getAbsoluteFile,getAbsoluteFile的作用?
2014-05-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人