JGo库。(JGo library. Is it possible to change the icon of the port?)
我正在使用JGo库。 我的意思是这个项目http://www.nwoods.com/components/java/jgo-overview.htm 。
我的问题是,是否可以更改节点内端口的图标。
例如,我正在使用JGoBasicNode ,我想更改其中一些图标/图片的默认节点端口形状的圆圈。 可能吗?
I am using JGo library. Exactly I mean this project http://www.nwoods.com/components/java/jgo-overview.htm.
My question is if it is possible to change the icon of the port inside a node.
For example I am using JGoBasicNode and I would like to change the circle inside which is the default node port shape for some icon/ picture. Is it possible?
最满意答案
好的,我找到了答案。 可以通过以下方式致电:
JGoPort port = new JGoPort(new Rectangle(new Dimension(10, 10)), image); setPort(port);其中image是JGoImage对象
Ok, I've found the answer. It's possible by calling:
JGoPort port = new JGoPort(new Rectangle(new Dimension(10, 10)), image); setPort(port);where image is an JGoImage object
更多推荐
发布评论