Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get Edge List from a Node
How to get Edge List from a Node [message #45766] Tue, 12 September 2006 04:34
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

I want to layout my nodes, so I overwrite the layoutLayoutNodes mothod of
AbstractLayoutNodeProvider Class,
public Runnable layoutLayoutNodes(List layoutNodes,
boolean offsetFromBoundingBox, IAdaptable layoutHint) {((Node)
viewNode).getTargetEdges(){}

the List layoutNodes contains a list of Nodes exclude Edges, I want to get
Edges from the Nodes,
ListIterator iter = layoutNodes.listIterator();
while (iter.hasNext()) {
ILayoutNode lnode = (ILayoutNode) iter.next();
Node node = (Node)lnode.getNode();
List edgeList = node.getTargetEdges();
}
but always the edgeList is a list with size 0, seems like the
getTargetEdges() method did not work...

How can I get edges from a node?
Looking forward for your helps.

Best regards,
dzh
Previous Topic:Problems persisting custom border
Next Topic:creation of children elements along with parent elements
Goto Forum:
  


Current Time: Thu May 08 15:40:16 EDT 2025

Powered by FUDForum. Page generated in 0.05459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top