问题描述
我创建了一个由许多顶点和边组成的网络.将鼠标移到该顶点时,如何在该顶点上显示弹出消息?
I have created a network which consists of number of vertexes and edges. How do I show a popup message over a vertex when I move the mouse to that vertex?
推荐答案
AbstractPopupGraphMousePlugin及其子类是您想要的: http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/visualization/control/AbstractPopupGraphMousePlugin.html
AbstractPopupGraphMousePlugin and its subclasses are what you want:http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/visualization/control/AbstractPopupGraphMousePlugin.html
请在PluggableRendererDemo和GraphEditorDemo中使用它. (其他示例也使用它;这些示例说明了如何创建子类.)
Look for its use in PluggableRendererDemo and in GraphEditorDemo. (Other samples also use it; those samples show how to create subclasses.)
这篇关于在荣格(Jung)中显示弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!