Displaying popup messgae in Jung

别说谁变了你拦得住时间么 提交于 2019-12-08 11:17:43

问题


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?


回答1:


AbstractPopupGraphMousePlugin and its subclasses are what you want: http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/visualization/control/AbstractPopupGraphMousePlugin.html

Look for its use in PluggableRendererDemo and in GraphEditorDemo. (Other samples also use it; those samples show how to create subclasses.)



来源:https://stackoverflow.com/questions/30911867/displaying-popup-messgae-in-jung

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!