Giant arrows

Hi! I’ve made a test class and added 20000 nodes and 10000 links. Links length increments or decrements for each. If links length gets too long arrows were drawn in giant sizes. I wish to know if is this a bug or am i doing something wrong. Source is given below. Thanks!

package test;

import com.nwoods.jgo.JGoBasicNode;
import com.nwoods.jgo.JGoBrush;
import com.nwoods.jgo.JGoLink;
import com.nwoods.jgo.JGoStroke;
import java.awt.Color;

public class test extends javax.swing.JFrame
{
public test()
{
initComponents();
int x = 0;
int y = 50;
int dec = 500000;
for(int i = 1; i <= 10000; i++)
{
x += 50;
JGoBasicNode node1 = new JGoBasicNode("" + i);
JGoBasicNode node2 = new JGoBasicNode("" + i);
node1.setBrush(new JGoBrush(JGoBrush.SOLID, Color.BLUE));
node2.setBrush(new JGoBrush(JGoBrush.SOLID, Color.RED));
node1.setLocation(x, y);
node2.setLocation(x, y + dec);
JGoLink link = new JGoLink(node1.getPort(), node2.getPort());
link.setArrowHeads(false, true);
goView.getDocument().addObjectAtTail(node1);
goView.getDocument().addObjectAtTail(node2);
goView.getDocument().addObjectAtTail(link);
dec -= 50;
}
}

private void initComponents()
{

  goView = new com.nwoods.jgo.JGoView();

  setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

  goView.setDragEnabled(true);
  goView.setInternalMouseActions(java.awt.dnd.DnDConstants.ACTION_MOVE);
  goView.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
     public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
        goViewMouseWheelMoved(evt);
     }
  });
  getContentPane().add(goView, java.awt.BorderLayout.CENTER);

  pack();

}

private void goViewMouseWheelMoved(java.awt.event.MouseWheelEvent evt)
{
    if(evt.getWheelRotation() > 0)
    {
        if(goView.getScale() < 1.0d)
        {
            goView.setScale(goView.getScale() + 0.1);
        }
    }
    else
    {
        goView.setScale(goView.getScale() - 0.1);
    }
}

public static void main(String args[])
{
    java.awt.EventQueue.invokeLater(new Runnable()
    {

        public void run()
        {
            new test().setVisible(true);
        }
    });
}

// Variables declaration - do not modify
private com.nwoods.jgo.JGoView goView;
// End of variables declaration
}

That’s a bug. Thanks for reporting it.

Are you evaluating JGo? If so, you can download an updated JGo.jar from:
http://www.nwoods.com/go/kits/JGo532a.zip

I’m using 5.2.1 and tried 5.3.2. Same problem occurs.

Is there any solution to this? My whole project depends on that… Unhappy

Edit : thanx! this update is fine ;)