Graphs and graph editors
Jean-Marc Vanel
http://jmvanel.free.fr
I work since 2003-04-01 on the development of a GUI for
simulations in electronic networks. I use JGraph, a library for graph
editors, an active project with many diverse applications, a good
documentation.
- I made a class DOMGraphModel:
wrapper of one or more DOM XML Node and its sub-tree from the same or
different DOM Document as a JGraph
GraphModel : download source code here ; download jar here ;
download zip
with all libraries ; readme file; try it
with java
com.jgraph.dom.SampleEditorApp test.xml ; see sample
screen shot (old), recent screen
shot (a build.xml file, showing new proportional layout); the latest sources are at sourceforge.net CVS
in directory [SourceForge] / jgraph
/ jgraph-research
/ jmvanel .
- I plan to show keyref associations in the XML document as links
(edges) in the graph; I did KeyRefHarvester.java, a class able to
harvest key/keyRef from PSVI (Post Schema Validation Information), to
populate the edges of the graph.
- I made UML-like diagrams
of JGraph and JGraphPad
(not uploaded, too big!) with BlueJ
- to leverage on the XML Schema to edit my XML through the graph
editor, a DOM3
validation implementation would be helpful, but I found no DOM3
validation implementation for Schema validation (2003-04-28)
- For the associations not having a tree semantic (i.e. ID
references), I thought using the XLinkrecommandation
as standard XML mechanism, but I abandonned the idea because XML Schema
is not able to validate XLink links;