Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
布局后如何在图形中获取顶点的坐标?,我正在使用 JUNG 来创建和布局图形
对于layout类型jung.algorithms.layout.AbstractLayout或任何子类,您可以调用layout.getX(vertex)and layout.getY(vertex)。vertex是您的顶点,无论您选择什么类型。
layout
jung.algorithms.layout.AbstractLayout
layout.getX(vertex)
layout.getY(vertex)
vertex
Javascript:
jQuery(document).ready(function() { jQuery('#submit').click(function() { jQuery("#LoadingImage").show(); var imgSr