在荣格(Jung)中显示弹出消息 [英] Displaying popup messgae in Jung

查看:92
本文介绍了在荣格(Jung)中显示弹出消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个由许多顶点和边组成的网络.将鼠标移到该顶点时,如何在该顶点上显示弹出消息?

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)中显示弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆