How to generate a class diagram in Dart? - flutter

Is there a tool to generate a diagram of Dart classes in a project?
Not necessarily a strict UML diagram, I just want to visually represent the hierarchy of existing modules and see how they are interconnected.

I've found the dcdg package that is doing exactly what I want.
It generates PlantUML file which in order can be transformed into PNG or SVG image using PLantUML's demo web server or using other third-party tools.

Related

Illustrator add class to svg group

i have searched from hours to find a solution to export a SVG with class on the group element. Is it possible this thing?
I have found a program inkscape which can edit in XML mode and add the attribute. The problem is that inkscape insert too much garbage code to use in the web.
Can it be done in illustrator or program in which the SVG stays with clean code.
Edit - 06.12.2015
For now there is not a good program solution, the best tool to do is inkscape.
For this to work you need to use the XML ediotor in the program, so it is not very user friendly also it includes too much markup in SVG.
This is an explanation by Adobe on how to export SVG from Illustrator CC.
they don't mention classes though.
how about ID's? might be equally useful
Illustrator wraps every layer in a g element that gets his ID from the layer's name.
you could use it to construct your svg accordingly and get each group of elements with the id you want.
the latest version of AI spits pretty clean code I think.
but you could use an online tool to optimise it.

How to print a stateflow chart as svg file

I would like to print an existing stateflow chart to a svg file. I have found...
sfprint
...but sfprint does not support svg format. BUT, when I use "Export to web..." from my simulink model the generated webview has the stateflow diagrams as an SVG, so it seems this must be possible.
I am using matlab version R2010a.
Matlab Syntax : slwebview
Export Simulink models to Web views
slwebview
filename = slwebview(system_name)
filename = slwebview(system_name,Name,Value)
A Web view is an interactive rendition of a model that you can view in a Web browser. You can navigate a Web view hierarchically to examine specific subsystems and to see properties of blocks and signals.
You can use Web views to share models with people who do not have Simulink installed.
Web views require a Web browser that supports Scalable Vector Graphics (SVG).
Reference Link : http://de.mathworks.com/help/rptgenext/ug/slwebview.html

Generate dynamic web app structure J2EE

Is there any Method or API that will help me to generate the structure of dynamic web app in eclipse?
I want to generate the whole structure: /src; /WebContent/WEB-IN,.. and the web.xml.
I am trying to develop an app that takes the Model Class and generates all the basic web app for those Model Class.
That's what M2T-JET was designed for. It's a template-based generator (think JSP in Eclipse). Use these tags in the main.jet template:
ws:project creates an eclipse project with the specified name
ws:folder creates an eclipse folder with the specified path
ws:file creates a file with the given path using content derived from applying the input model to a specified .jet template
The input model is usually XML, but there are loaders in JET that can use other sources as models: Eclipse itself, EMF models and - of more interest to you - java source files. This java loader takes java source, parses it into an AST model and then passes that model on to the main.jet template.
You shoul try this development accelerator
https://sites.google.com/site/telosystutorial/
(different examples with Spring MVC, Spring Data, etc )

Searching for a pretty chart library with the ability to generate SVG charts, which will be included into a printed report

I badly need a good looking chart library to generate SVG charts, which will be included in a printed report.
The difficulty is to find such a library, because:
most of the cool ones have no SVG output ( I don't need interactive SVG for websites)
most of the cool ones are client-sided javascript ones ( it has to be automatically generate the charts and I don't want to have a web browser running on the server, seems weird )
Basically the features should be:
good looking (charts themself & after print)
SVG image output
possible to generate on a server without graphical interface
JSON based (not required but would be nice)
I can't believe there is no library out there to fulfill these conditions.
Thanks for any help

Are there any tutorials on coding a parser for SVG files to be used by box2D?

I am trying to create an iPhone game with fairly large levels. Hard coding the platforms and physics objects is very time consuming. I have seen some people have made their own parsers for svg files to use in box2D, and Riq is selling levelSVG but it is a little pricey for me at the moment, and I only need basic features. Is there a tutorial on how to code a parser available online?
Have you taken a look at SVGQuartzRenderer? It is designed to render SVG files in Quartz, so I imagine you might be able to pull out the SVG parsing code from this. It's opensource, MIT license.
I don't know about any tutorials but its fairly easy to do this using an XML parsing library. In my project I use MiniDOM to load an svg file and then I convert the elements into objects in the box2d word. The only thing that I had to do manually was the parsing of the path element.
I've written an extensive tutorial on how to parse SVG files using Apache Batik SVG library. Included with the tutorial are a set of classes and a function I wrote in Java which will generate a set of Vec2 points given the location of the SVG file. If you're using Objective C you could try to port the scripts or at least get an idea of the process involved. The scripts support multiple paths per SVG file, transformations, straight lines and quadratic splines. The first tutorial in the series can be found here.