How to get nodes group object from GraphBuilder
Hi
GraphBuider hasn't interface for return NodesGroup object.
I can explain in more details:
1. I extend MovePortMode and override mouseReleasedLeft.
2. Get hit info, for example: HitInfo hitInfo = getPeer().getHitInfo(x, y);
3. Get Node from hit info: Node hitNode = hitInfo.getHitNode();
4. Return node object from builder: builder.getNodeObject(hitNode)
5. I can't recieve nodes group object if hitNode is referenced to nodes group.
PS. Please, move getHitInfo method from peer to MovePortMode.
Please sign in to leave a comment.
Oleg,
Please, try GraphUtil.getGroupNode(final Graph2D graph, final Node node)
method.
Serega.
p.s. if you have any qustions don't hesistate contact me directly. (102892629)
ok
Thank you