[jgrapht-users] JGraphModelAdapter - Layuot problem
Brought to you by:
barak_naveh,
perfecthash
From: Daniel A. <ago...@gm...> - 2010-07-22 13:00:36
|
Dear All, I'm experimenting with JGrapht and JGraph5 and have issues with the Layout demos included in the JGraph 5 package. (com.jgraph.layout.demo.JGraphLayoutDemo) I replaced the JGraph instance with a preaviosly tested working JGraphModelAdapter example and get the following Exception: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: org.jgraph.graph.VertexView.update(Lorg/jgraph/graph/GraphLayoutCache;)V at com.jgraph.layout.demo.JGraphLayoutMorphingManager.setCellBounds(JGraphLayoutMorphingManager.java:272) at com.jgraph.layout.demo.JGraphLayoutMorphingManager.updateCell(JGraphLayoutMorphingManager.java:253) at com.jgraph.layout.demo.JGraphLayoutMorphingManager.actionPerformed(JGraphLayoutMorphingManager.java:200) at javax.swing.Timer.fireActionPerformed(Unknown Source) at javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) at the following section of JGraphLayoutMorphing class in the same demo package: protected void setCellBounds(Object cell, Rectangle2D bounds) { Rectangle2D rect = graph.getCellBounds(cell); if (rect != null && bounds != null) { rect.setFrame(bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight()); CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if (view != null) view.update(graph.getGraphLayoutCache());// Exception is trhrown... } } I'm not sure wether this is a JGrapht or JGraph related issue any help apriciated. Regards, Daniel |