I created a simple network following examples from the wiki, and using
HierarchicalLayoutAlgorithm, like:
view = Cytoscape.createNetworkView(net, "First net",
HierarchicalLayoutAlgorithm());
The network has about 600 nodes. When trying to visualize it in a
CyNetworkView, it renders fine(it's zoomed in to just a few nodes),
but when zooming out, I get the Exception pasted below.
A smaller network with about 20 nodes doesn't have this problem when zooming.
Also, not using HierarchicalLayoutAlgorithm doesn't have any problem
either. Something is up with
csplugins.layout.algorithms.hierarchicalLayout.HierarchicalLayoutAlgorithm
class.
I am using the jars for cytoscape 2.6.3
What could I be doing wrong? Am I missing something regarding the
application of the HierarchicalLayoutAlgorithm ?
Thanks for any help.
Albert
Exception in thread "AWT-EventQueue-0"
java.lang.ArrayIndexOutOfBoundsException: 390
at cytoscape.render.immed.GraphGraphics.computeCubicPolyEdgePath(GraphGraphics.java:2420)
at cytoscape.render.immed.GraphGraphics.drawEdgeFull(GraphGraphics.java:1585)
at cytoscape.render.stateful.GraphRenderer.renderGraph(GraphRenderer.java:455)
at ding.view.DGraphView.drawSnapshot(DGraphView.java:2168)
at ding.view.BirdsEyeView.update(BirdsEyeView.java:251)
at ding.view.BirdsEyeView.paint(BirdsEyeView.java:281)
at javax.swing.JComponent.paintChildren(JComponent.java:876)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)