摘要:
网上找到的代码,基本可用,但是效率和美观不敢保证。(x1, y1)和(x2, y2)分别是线段的两端点坐标。为直线绘制箭头 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1privatevoidpaintk(GCg,intx1,inty1,intx2... 阅读全文
posted @ 2009-12-28 20:19
OurSnippets
阅读(445)
评论(0)
推荐(0)
摘要:
在我们使用Eclipse平台开发新的插件的时候,可能会用到perspectives,在plugin.xml文件中,其基本配置代码如下:plugin.xml文件配置 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<extension2point... 阅读全文
posted @ 2009-12-28 20:13
OurSnippets
阅读(479)
评论(0)
推荐(0)
摘要:
在做AutomatonDesigner的时候,使用了SWT的绘图技术,其中要把用户通过组建构建好的自动机模型保存成jpg等图片的形式,主要使用如下的代码。 需要说明的是,这段代码的基本原理是通过操作系统,向控件control发送重绘消息,让其在新构建的GC中进行重绘,因此控件需要支持WM_PRINT消息,并且暂时此函数只支持Win32系统,使用之前可以用OS.IsWin32s所获得的boolean... 阅读全文
posted @ 2009-12-28 19:56
OurSnippets
阅读(716)
评论(0)
推荐(0)
摘要:
出于方便的考虑,在本博客中出现的Snippet不需要完全是简短的可运行程序,添加足够注释的代码片段即可。 另外分类请准确添加和设置。 阅读全文
posted @ 2009-12-28 19:28
OurSnippets
阅读(52)
评论(0)
推荐(0)
摘要:
这个想法来自这个网站:http://www.eclipse.org/swt/snippets/。有兴趣的同志们可以去看看~这里摘录简单的一段 “Snippets are minimal stand-alone programs that demonstrate specific techniques or functionality. Often a small example is... 阅读全文
posted @ 2009-12-28 19:09
OurSnippets
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号