简体   繁体   English

JUNG-MouseOver如何更改顶点和边的厚度

[英]JUNG - How can MouseOver change thicknes of Vertex and Edges

I'm developing a tool and want, that user can simply choose a vertex or edge. 我正在开发工具,并希望该用户可以简单地选择一个顶点或边。

Now, i'm looking for a way how to change the thickness(highlighting) of a vertex or edge during hovering with the mouse. 现在,我正在寻找一种方法,以便在用鼠标悬停时更改顶点或边缘的厚度(突出显示)。

And I want increase the size of a vertex or edge, if i zoom into it. 如果要放大顶点或边缘,我想增加它的大小。 At the moment, they will be smaller, i zoom near. 目前,它们会变小,我会放大。

Can anyone help me? 谁能帮我?

Thanks in advance. 提前致谢。

PS: i use vv.setVertexToolTipTransformer for showing the name of the vertex during hovering, but it don't solve my problem. PS:我使用vv.setVertexToolTipTransformer来显示悬停时顶点的名称,但这不能解决我的问题。

I have placed the code for the thickness and color into the toolTipTransformer eg vv.setVertexToolTipTransformer. 我已经将厚度和颜色的代码放入了toolTipTransformer中,例如vv.setVertexToolTipTransformer。 In this way it works, but the tooltips appear too late. 这样就可以了,但是工具提示显示为时已晚。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM