GMF:图形定义模型(Graphical definition model)介绍

  在GMF:示例Mindmap 练习一中我介绍了官方网站上的一个脑图示例第一步的练习,其中我们在第二步生成了一个图形定义模型( Graphical Definition Model)。图形定义模型包含一些图形元素信息,但是并没有直接与领域模型关联,它定义figures、nodes、links等显示在图形上的元素。

  本篇介绍一下图形定义模型,后续学习过程中还会不断完善这几篇blog。
 

三层

  1. diagram elements are defined for use in the mapping model and can contain element-specific layout information.
  2. figure descriptors and accessors reference figures in the first layer for use in the next.
  3. figures define visual representations of diagram elements

使用这三层来定义图形模型,主要是为了可以重用。Figures可以在其他figures中使用,figure descriptors可以被多个diagram元素使用,同一个diagram元素可以在多个映射中使用

Graphical definition model—figures、figure descriptors

 Graphical definition model—canvas

Figure

 

推荐:你可能需要的在线电子书

 

欢迎转载,转载请注明:转载自周金根 [ http://zhoujg.cnblogs.com/ ]

posted on 2010-10-29 09:35  周 金根  阅读(3178)  评论(1编辑  收藏  举报

导航