Showing posts with label prefuse. Show all posts
Showing posts with label prefuse. Show all posts

12/10/2007

Tag Visualization(2)


12/03/2007

Force

1.GravitationalForce
 0:GravitationalConstant:-1.0 (正值表引力,負值表斥力)
 1:Distance:-1.0
 2:BarnesHutTheta:0.9

2. DragForce (穩定)
 0:DragCoefficient:0.01

3. SpringForce
 0:SpringCoefficient:1.0E-4
 1:DefaultSpringLength:50.0 (edge長短)

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");
 }

Tag Visualization

這是用prefuse的example先套出來的圖


沒有大小沒有顏色,所有字幾乎都黏在一起了,完全抓不到重點啊!
所以現在幫字依權重加上背景顏色的深淺,於是可以得到下圖
看出來flash最重要了耶!!




with size Effect