创设连线后点击空白区域箭头恢复成默认样式
创建连线后点击空白区域箭头恢复成默认样式
关于连线创建的过程大家可以看http://blog.chinaunix.net/u2/89957/showart_2068848.html
继承ConnectionCreationTool然后做如下实现就可以了:
关于连线创建的过程大家可以看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; }[