資源簡介
mxgraph工作流設計,extjs框架,稍有點麻煩

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?com.mxgraph;
namespace?aspnet
{
????public?partial?class?_Hello?:?System.Web.UI.Page
????{
????????protected?string?xml;
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????//?Creates?an?instance?of?a?graph?to?add?vertices?and?edges.?The?instance?can
????????????//?then?be?used?to?create?the?corresponding?xml?using?a?codec.?Note?that?this
????????????//?is?only?required?if?a?graph?is?programmatically?created.?If?the?xml?for?the
????????????//?graph?is?already?at?hand?it?can?be?sent?directly?here.
????????????mxGraph?graph?=?new?mxGraph();
????????????object?parent?=?graph.GetDefaultParent();
????????????//?Adds?vertices?and?edges?to?the?graph.
????????????graph.Model.BeginUpdate();
????????????try
????????????{
????????????????object?v1?=?graph.InsertVertex(parent?null?“Hello“?20?20?80?30);
????????????????object?v2?=?graph.InsertVertex(parent?null?“World!“?200?150?80?30);
????????????????object?e1?=?graph.InsertEdge(parent?null?“Edge“?v1?v2);
????????????}
????????????finally
????????????{
????????????????graph.Model.EndUpdate();
????????????}
????????????//?Encodes?the?model?into?xml?and?passes?the?resulting?xml?string?into?a?page
????????????//?variable?so?it?can?be?read?when?the?page?is?rendered?on?the?server.?Note
????????????//?that?the?page?instance?is?destroyed?after?the?page?was?sent?to?the?client.
????????????mxCodec?codec?=?new?mxCodec();
????????????xml?=?mxUtils.Getxml(codec.Encode(graph.Model));
????????}
????????//?Getter?and?setter?for?the?xml?variable.
????????public?string?xml
????????{
????????????get?{?return?xml;?}
????????????set?{?xml?=?value;?}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????122722??2009-11-11?19:12??mxgraph\ChangeLog
?????目錄???????????0??2009-11-11?19:13??mxgraph\docs\
?????目錄???????????0??2009-11-11?19:13??mxgraph\docs\images\
?????文件????????6668??2009-11-11?19:12??mxgraph\docs\images\MX_MANUAL_html_1cc55dd3.png
?????文件???????33366??2009-11-11?19:12??mxgraph\docs\images\MX_MANUAL_html_ba4bf13.png
?????文件???????10973??2009-11-11?19:12??mxgraph\docs\images\MX_MANUAL_html_m75de608.png
?????文件???????27734??2009-11-11?19:12??mxgraph\docs\images\architecture.png
?????文件????????8461??2009-11-11?19:12??mxgraph\docs\images\editor.png
?????文件????????7480??2009-11-11?19:12??mxgraph\docs\images\graph.png
?????文件????????1451??2009-11-11?19:12??mxgraph\docs\images\logo.jpg
?????文件???????14034??2009-11-11?19:12??mxgraph\docs\images\model.png
?????文件????????5333??2009-11-11?19:12??mxgraph\docs\images\mx_man_collapse_swim.png
?????文件???????20843??2009-11-11?19:12??mxgraph\docs\images\mx_man_drill_down.png
?????文件???????17220??2009-11-11?19:12??mxgraph\docs\images\mx_man_drilling.png
?????文件????????3764??2009-11-11?19:12??mxgraph\docs\images\mx_man_edge_routing.png
?????文件????????9317??2009-11-11?19:12??mxgraph\docs\images\mx_man_expand_swim.png
?????文件???????60693??2009-11-11?19:12??mxgraph\docs\images\mx_man_graph_analysis.jpg
?????文件???????24247??2009-11-11?19:12??mxgraph\docs\images\mx_man_graph_interaction.png
?????文件???????33478??2009-11-11?19:12??mxgraph\docs\images\mx_man_graph_layout.png
?????文件??????602082??2009-11-11?19:12??mxgraph\docs\images\mx_man_graph_vis.png
?????文件????????4365??2009-11-11?19:12??mxgraph\docs\images\mx_man_hello_struct.png
?????文件???????20770??2009-11-11?19:12??mxgraph\docs\images\mx_man_hello_world.png
?????文件???????24419??2009-11-11?19:12??mxgraph\docs\images\mx_man_jgraph_logo.png
?????文件???????17294??2009-11-11?19:12??mxgraph\docs\images\mx_man_log_group_struct.png
?????文件????????1511??2009-11-11?19:12??mxgraph\docs\images\mx_man_non_realtive_edge_pos.png
?????文件????????5280??2009-11-11?19:12??mxgraph\docs\images\mx_man_non_relative_pos.png
?????文件????????1421??2009-11-11?19:12??mxgraph\docs\images\mx_man_overlap.png
?????文件????????7449??2009-11-11?19:12??mxgraph\docs\images\mx_man_rel_vert_pos.png
?????文件????????1770??2009-11-11?19:12??mxgraph\docs\images\mx_man_simple_graph.png
?????文件???????18864??2009-11-11?19:12??mxgraph\docs\images\mx_man_simple_workflow.png
?????文件???????17135??2009-11-11?19:12??mxgraph\docs\images\mx_man_st
............此處省略1715個文件信息
- 上一篇:DWM1000 測距源碼 定位基礎
- 下一篇:Maven 3.2.3 win 32位
評論
共有 條評論