Roger D wrote: > Hi, Hello,
[snip] > 3) If I resize the graphic editor or click any button above the editor, > the ternimal reports the following error, > Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: > For input string: "50.296" > at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > at java.lang.Integer.parseInt(Integer.java:456) > at java.lang.Integer.parseInt(Integer.java:497) > at > net.sf.taverna.t2.workbench.models.graph.dot.GraphLayout.getPoint(GraphLayout.java:287) > at [snip] Yes it looks as if the method getPoint() in net.sf.taverna.t2.workbench.models.graph.dot.GraphLayout is incorrectly expecting the point to just be integers whereas http://www.graphviz.org/doc/info/attrs.html indicates that they should be floats. private Point getPoint(String value) { String[] coords = removeQuotes(value).split(","); return new Point(Integer.parseInt(coords[0]) + xOffset, flipY(Integer.parseInt(coords[1]) + yOffset)); } I wonder if earlier versions of graphviz always generated integers which is why it worked in the past. There are also problems with getRectangle. I'll check all of them. The nightly build for Taverna 2.1 should include a fix. Thanks for spotting this, Alan ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ taverna-users mailing list [email protected] [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
