[ 
https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010699#comment-13010699
 ] 

C.S. Nirmal J. Fernando commented on TUSCANY-3496:
--------------------------------------------------

Hi,

After studying about the idea, I came up with the following design proposal.

Please refer the attached proposed_design_1 image.

Composite XML should be generated using the Tuscany's in-memory representation 
of the composite model.
It will then will give as an input for the Composite Analyzer. Composite 
Analyzer then analyzes the XML document
and grab the relevant DOM Elements such as Composite, Component, Service, 
Reference, Wire etc. and starts to
build the SVG document using SVG DOM API of Apache Batik. 

After Composite Analyzer built up the SVG document it will be the output which 
represents the composite diagram.

DOM elements (Composite, Component, Service, Reference, Wire etc.) possibly be 
static classes which holds the 
shape of the artifact, colour, other static properties and will be given the 
dynamic properties (such as position, size etc.)
as input, in order to create a DOM element and it will be then handover to the 
Composite Analyzer.

This may be very high level design, but I would appreciate if you can give me 
some feedback. 

Thanks. 

> Develop a simple tool that can be used to generate composite diagrams from 
> the xml files
> ----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3496
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3496
>             Project: Tuscany
>          Issue Type: Wish
>          Components: Java SCA Community Ideas
>    Affects Versions: Java-SCA-1.x
>            Reporter: Raymond Feng
>              Labels: gsoc, gsoc2010, gsoc2011, mentor
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> I'm looking a simple tool (web based or command) that can generate the 
> composite diagrams from a list of composite files. One technology we can try 
> is the Apache Batik project.
> http://xmlgraphics.apache.org/batik/
> This tool can serve multiple purposes:
> 1) Help document our tutorials and samples
> 2) Be integrated with the SCA domain manager to visualize the SCA domain 
> (contributions, composites, nodes etc)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to