JGo库。(JGo library. Is it possible to change the icon of the port?)

编程入门 行业动态 更新时间:2024-10-18 20:19:29
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

更多推荐

本文发布于:2023-08-04 13:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415998.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:library   JGo   change   port   icon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!