gephi/trunk — Issue #132: Preview throws an Exception with negative edges
Author: mbastian
Created: 2011-10-22 16:42:58+00:00
State: open
Labels: Fix Released, Medium, negative, preview

Negative edges weight throws the following exception in Preview:

java.lang.IllegalArgumentException: negative width
at java.awt.BasicStroke.(BasicStroke.java:181)
at java.awt.BasicStroke.(BasicStroke.java:254)
at processing.core.PGraphicsJava2D.strokeImpl(PGraphicsJava2D.java:1417)
at processing.core.PGraphicsJava2D.strokeWeight(PGraphicsJava2D.java:1398)
at processing.core.PApplet.strokeWeight(PApplet.java:7757)
at org.gephi.desktop.preview.ProcessingPreview.renderEdge(ProcessingPreview.java:370)
at org.gephi.desktop.preview.ProcessingPreview.renderDirectedEdge(ProcessingPreview.java:362)
at org.gephi.desktop.preview.ProcessingPreview.renderGraphBidirectionalEdges(ProcessingPreview.java:246)
at org.gephi.desktop.preview.ProcessingPreview.renderGraphEdges(ProcessingPreview.java:224)
at org.gephi.desktop.preview.ProcessingPreview.renderGraph(ProcessingPreview.java:210)
at org.gephi.desktop.preview.ProcessingPreview.draw(ProcessingPreview.java:88)
at processing.core.PApplet.handleDraw(PApplet.java:1425)
at processing.core.PApplet.run(PApplet.java:1327)