Hello,

(Google mails keyboard shortcuts are way too efficient!! Sent the first one
by mistake!)

Have a look at the net.sf.taverna.t2.ui-
>
> components.graph-model module in the SVN (inside
> http://code.google.com/p/taverna/source/browse/taverna/ui)
>
> The graphs are rendered using SVG and the 'dot' application.  The code goes
> something like this:
>
> GraphController graphController = new SVGGraphController(dataflow, false,
> null)
>
>         StringWriter stringWriter = new StringWriter();
>         DotWriter dotWriter = new DotWriter(stringWriter);
>         try {
>             dotWriter.writeGraph(graph);
>             String layout = SVGUtil.getSVG(stringWriter.toString());
>         } catch (Exception e) {

}
You could then view the SVG document straight in the browser (in theory -
your browser experience may differ!).

You will have to create the workflow in the first place which could cause
some issues with Raven although if you already have the worklfow then you
just have to use the code above to create the SVG document.  The false and
null in the SVGGraphController are for setting it to interactive (a
workbench only setting) and the svg canvas to render the graph on (you may
or may need this for your usage).

David Withers is the real expert on this stuff and can hopefully correct any
mistakes I've made here.

Cheers,

Ian

2009/12/7 Ian Dunlop <[email protected]>

> Hello,
>
> Have a look at the net.sf.taverna.t2.ui-components.graph-model module in
> the SVN (inside http://code.google.com/p/taverna/source/browse/taverna/ui)
>
> The graphs are rendered using SVG and the 'dot' application.  The code goes
> something like this:
>
> GraphController graphController = new SVGGraphController(dataflow, false,
> null)
>
>         StringWriter stringWriter = new StringWriter();
>         DotWriter dotWriter = new DotWriter(stringWriter);
>         try {
>             dotWriter.writeGraph(graph);
>             String layout = SVGUtil.getSVG(stringWriter.toString());
>         } catch (Exception e) {
>
>
>
> 2009/12/5 Wei Tan <[email protected]>
>
> Hi,
>>
>>   Does anyone know how to render a workflow graph using Taverna API? We
>> have an application that needs to display a workflow on an igoogle
>> gadget. It would be interesting to know more details of the related API,
>> or related gadgets.
>>
>>    Thanks,
>>
>> Wei
>>
>> --
>> Wei Tan, Ph.D.
>> Computation Institute
>> the University of Chicago|Argonne National Laboratory
>> http://www.mcs.anl.gov/~wtan <http://www.mcs.anl.gov/%7Ewtan>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> taverna-hackers mailing list
>> [email protected]
>> Web site: http://www.taverna.org.uk
>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>
>
>
>
> --
> Ian Dunlop
> myGrid Team
> School of Computer Science
> University of Manchester
>



-- 
Ian Dunlop
myGrid Team
School of Computer Science
University of Manchester
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to