11/25/2007

Prefuse Tips

1. Set Label Size
 Iterator iter = vis.items("graph.nodes");
 while ( iter.hasNext() ) {
   VisualItem item = (VisualItem)iter.next();
   item.setSize(4)
 }

2. Read Data
 Iterator iter = vis.items("graph.nodes");
 while ( iter.hasNext() ) {
   VisualItem item = (VisualItem)iter.next();
   double tw = item.getDouble("weight");
 }

0 comments: