开发者

How to set Vertex coordinates in Java JUNG?

开发者 https://www.devze.com 2023-03-12 09:28 出处:网络
I need to spec开发者_JAVA百科ify position of all graph\'s vertices. Is it possible? Please help.If what you\'re saying is that you have existing vertex coordinates and you want to use those to lay out

I need to spec开发者_JAVA百科ify position of all graph's vertices. Is it possible? Please help.


If what you're saying is that you have existing vertex coordinates and you want to use those to lay out your graph in JUNG, that's what StaticLayout is for.


Classes in edu.uci.ics.jung.algorithms.layout used by edu.uci.ics.jung.visualization:

GraphElementAccessor: Interface for coordinate-based selection of graph components.

Layout: A generalized interface is a mechanism for returning (x,y) coordinates from vertices.

Described here.

0

精彩评论

暂无评论...
验证码 换一张
取 消