首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

创设连线后点击空白区域箭头恢复成默认样式

2012-10-12 
创建连线后点击空白区域箭头恢复成默认样式关于连线创建的过程大家可以看http://blog.chinaunix.net/u2/89

创建连线后点击空白区域箭头恢复成默认样式
关于连线创建的过程大家可以看http://blog.chinaunix.net/u2/89957/showart_2068848.html

继承ConnectionCreationTool然后做如下实现就可以了:

protected boolean handleButtonDown(int button) {boolean result = super.handleButtonDown(button);if ((AbstractTool.STATE_INITIAL == button) && (isInState(AbstractTool.STATE_INITIAL)))getDomain().loadDefaultTool();return result;}[

热点排行