how to apply color to an edge in prefuse by using source and target node id?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suresh81
    New Member
    • Jul 2010
    • 1

    how to apply color to an edge in prefuse by using source and target node id?

    I need to apply color to an edge in prefuse by using source and target node id.

    Here i am posting the code similar to what i have done for nodes...

    Code:
    ColorAction nEdges = new ColorAction(treeEdges.source=1,treeEgdes.target=2 VisualItem.STROKECOLOR);
    	nEdges.setDefaultColor(ColorLib.red(100));

    here i assumed source node=1 and target node=2.But i got error.Here the entry in XML is
    Code:
    <edge source="1" target="2" />
    Thank u.
Working...