GEFStudy Notes (1)EclipseOfGEFProject Description
First of all, I would like to thank you for your hard work and dedication. These days GEF Interest,OctalGEFSeries It helped me to learn this very quickly. You can easily record things you learned over the weekend. Help students later. I will write out what I have learned over the past few days and hope everyone can support it. Currently, I am worried about the gossip example. Nodepart Added Resizeeditpolicy But I do not know why a gray area changes while dragging the mouse, but when the mouse is released, Nodefigure The size of does not change, is it because Refreshreceivals Fixed Size ,CodeLearning ....
EclipseOfGEFProject description.
Overview:
Draw2d:Created2Dimension graphics library(Tree widgetFigure), Responsible for displaying2Graphical display of dimensions.
GEF : ( Graphical editing framework ) Establish Standard MVC Architecture, code Exploitation Draw2d As your own View Part, the main code implements a complex tree ( Yu Model Corresponding ) Controller. The implemented framework has high reusability and other features. For example, the graphical component functions are divided into multiple Editpolicy In this way, the user can Installeditpolicy Interface to customize and expand a feature.
EMF: ( Eclipse modeling framework ) First, it is developed in a lightweight project and in the initial stage of the project, Model Often Use Property Of Java Object To express Plain old Java objects (pojos) ]. E Mf Defines a set of ecore meta-models so that Model It is easy to maintain, expand, and exchange data. Model framwork . Therefore, it is often used in large and medium-sized projects. Draw2d + GEF + EMF To achieve the overall MVC Mode. For example: Rose The latest version. IBM. Rational. Software. Architect adopts this architecture.
GMF : ( Graphical Modeling Framework ) Used GEF And EMF Has established a bridge framework between the two, and has also implemented exemplary applications in some fields, such UML Images, Gantt charts, and brain charts. (These functions are not complete yet. It can be used for reference to implement a standard GEF + EMF ).
Dependencies between projects:
For example, you can use the following methods:
EMF: ModelManagement Layer
Draw2d:2d Graphic Display
Draw2d+GEF:Simple editing module for two-dimensional images
Draw2d+GEF+EMF: 2D image editing Module
Draw2d+GEF+EMF+GMF: Based onGMFProvides graphic editing functions.