隨筆-109  評(píng)論-187  文章-25  trackbacks-0
          ?

          1:GEF mvc framework

          2:policy 所有的POLICY應(yīng)該是注冊(cè)在visual....part中的
          ? 每一個(gè)POLICY來生命相應(yīng)的COMMMAND,可能會(huì)對(duì)應(yīng)多個(gè)COMMMAND
          3:visualGraph -->rootEditpart--->

          ? configureGraphviewer()
          ???? ---super.configureGraphviewer()
          ???? ---getGraphicalViewer().setRootEditPart(rootEditPart);
          ???? ---getGraphicalViewer().setEditPartFactory(new GraphEdirPartFactory());
          ?? 以上屬于把ROOTEDITPART和EDIRPARTFACTORY()注冊(cè)到當(dāng)前的Graphicalviewer當(dāng)中
          ?? 內(nèi)部已經(jīng)已經(jīng)封裝好了監(jiān)聽,就跟STRUT一樣,你配置好,提交的時(shí)候就會(huì)又相應(yīng)的ACTION去執(zhí)行他,

          ??? CONFIG--->STRUTS-CONFIG? =======? 當(dāng)前的REISTRY graphicalView().set()....
          ??? control核心? -->strust-actionServlet 和requestProcessor =======?? 當(dāng)前的editpart 的GraphEditPartFactory();
          ??? 實(shí)際的action?? struts-action =========每個(gè)editpart --->policy -- >可能對(duì)應(yīng)多格COMMAND

          4:commmandstack.addCommandStackListner();
          ?? getSite().getWorkBenchWindow().getSelectionService().addSelectionListener(this)

          ?? rootEidtpart.getZoomManger();

          ?? ZoomManger也是ACTION所以就注冊(cè)在了EDITPART中了
          ???
          5:我的疑問:
          ?? FIGURE和VERTEX GROUP,EDGE,GRAP的關(guān)系,是最小的????
          ?? FIGURE是未來顯示在EDITOR里面的最小單元???

          6:EDITOR里面的CreateGraphicalViewer(Composite composite)


          7:editpart initialize the editdomain,viewers,palette,
          ? editpart bootstraps the editpartviewers as content;

          8:
          ???? Model:
          ????????? The model should be changed using commands

          ???? View:
          ????????? View can bi several things
          ????????? (1) visual part,which serves as the primary represention for model object??
          ????????? (2) the most flexible visual part are Figures form drar2d
          ???? Cotroler:
          ????????? (1)a controller is an editpart,Editparts are the bread-and-butter of GEF
          ????????? (2) the entire view is managed by Editpart
          ????????? (3) editPart's responsibility is to manipulate the model with commands,complex model can lead to

          complex commands
          ????????? (4)to make editpart's job easier,each role is implemented by a pluggable object called editpolicy


          9: Result:
          ??? (1)edit part reprents a single conceptual object with which user can use direct or indirect interact
          ?????? but an editpart itself is not visible to user,but will represent itself through it's view??????????????
          ?

          10:
          ??? (1)
          ?? each editpart istall one or more editpolicies,editpart foward edit request to every installed editPolicy

          =================================11:Using EditPolicies,request,roles===============


          ?(1)Editpolicy

          ??? an editpart iterates over all it's policies to handle requests,but editpolicy ignore the request

          ?(2)role
          ??? as i understand ,role is string ,like COMPONENT_ROLE..
          ?(3)request
          ??? are used to communicate with an editpart


          ?(4) role and editpolicies in GEF are partitioned into two basic types:graphical and non-graphical

          ??

          posted on 2006-04-13 08:55 小小程序程序員混口飯吃 閱讀(215) 評(píng)論(0)  編輯  收藏 所屬分類: java
          主站蜘蛛池模板: 广元市| 阆中市| 读书| 绵竹市| 聂拉木县| 安达市| 靖西县| 华蓥市| 宁明县| 江安县| 夏邑县| 东乌| 阆中市| 浏阳市| 东至县| 黎城县| 革吉县| 沾化县| 黎川县| 墨竹工卡县| 清原| 新沂市| 台湾省| 永川市| 武安市| 武冈市| 通江县| 皮山县| 行唐县| 松江区| 滨州市| 德庆县| 崇信县| 鄂托克前旗| 绥阳县| 内江市| 鹤峰县| 宜黄县| 神池县| 且末县| 嘉义县|