[英]how to insert settooltiptext for one vertex in a graph?
I would like to move the mouse over an vertex which was plotted on a JFrame using JUng class and displaying some additional message for that vertex. 我想将鼠标移到使用JUng类绘制在JFrame上的顶点上,并显示该顶点的其他消息。 But I don't know how to set setToolTipText for a vertex.
但是我不知道如何为顶点设置setToolTipText。 Is there any way?
有什么办法吗? please help me with this
请在这件事上给予我帮助
You can add the following command to insert setToolTipbox to your graph 您可以添加以下命令以将setToolTipbox插入图形中
vv.setToolTipText("<html><center>Breast Neoplasms<p>"
+ "Gene interactions</p> </center></html>");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.