40 likes | 256 Views
Diagrammer. Takes a GraphML file and displays a diagram from it The following are the meaningful concepts for the diagrammer: Graph (the graph being displayed) Node (a shape on the diagram – currently a GlideWindow shown as a rectangle) Edge (a line between a source and target node).
E N D
Diagrammer • Takes a GraphML file and displays a diagram from it • The following are the meaningful concepts for the diagrammer: • Graph (the graph being displayed) • Node (a shape on the diagram – currently a GlideWindow shown as a rectangle) • Edge (a line between a source and target node)
Diagrammer - client side classes GwtDiagram Represents the graph/diagram GwtDiagramNode Represents a node (extends GlideWindow) GwtDiagramEdge Represents an edge between two nodes GraphML Serialize and deserialize GraphML xml format (the graphml ‘key’ support is optional and pretty much ignored right now) GwtDiagramSelected Utility class that makes it easy to determine what is currently selected Gwt*Layout Diagram layouts (GwtDiagramLayout is the base class and layouts are built as extended classes)
Diagrammer – server side • AJAX Processor used to ‘get’ the graphML representation of a graph/diagram • See BSMProcessor.java and WorkflowDiagramProcessor.java for examples • Diagram.java used to serialize/parse graphML xml format expected by client-side diagrammer Diagram GraphML serializer/parser DiagramElement An element of a diagram DiagramNode DiagramEdge A node of a diagram An edge of a diagram