Chapter 1
0. JGraph has a simple, yet powerful API enabling you to visualize(Graph Visualization), interact with(Graph Interaction), automatically layoutand perform analysis of graphs(JGraph Layout Pro?) .
1. Vertices may be shapes, images, other Swing components(including JGraphs),animations, virtually any graphical operations available in Swing.
2. JGraph compiles with all of Swings standards, such as pluggable L & F, data-transfer, accessibility, internationalizaition and serialization. JGraph itself is an extensiong of JComponent, which is Swings base class for all components.
3. JGraph Packages:
Java Package Name | Functionality |
org.jgraph | Basic JGraph class |
org.jgraph.event | Graph Event Models |
org.jgraph.graph | Graph Structure and Nodes |
org.jgraph.plaf | Graph UI delegate component |
org.jgraph.util | General purpose utilities |
4. the use of Object types(???):
1. Any object can be used as a cell in a GraphModel. It is not required that cells implement an interface.
2. The Edge and Port interfaces are only used in the DefaultGraphModel. They are a contract between the default model and its cells.(they aer not used anywhere else in JGraph).
3. The Graph structure should only be accessed through the GraphModel Interface, not through the Edge or Port interfaces,
4. Neither the JGraph components nor one of the algorithms for graph traversal uses the Edge or Port interface, they all use the GraphModel interface which in turn uses the Edge and Port interface to retrieve the Graph structure from the cells. This way, the storage structure can be hidden from the GraphModel client.
Chapter 2
1. JGraph's MVC: in simple terms, the model holds the data about the graph and provides various methods to access that data. the view(s) are one or more layers logically above the model that perform the task of visually presenting the graph and these are updated automatically when the model data changes.