jgraph note(5-17)

 

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值