资源简介

mxgraph开发包

资源截图

代码片段和文件信息

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; }
        }

    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         661  2012-10-29 20:11  mxgraph\.classpath
     文件         371  2012-10-29 20:11  mxgraph\.project
     文件      119913  2012-10-29 20:11  mxgraph\ChangeLog
     目录           0  2012-10-29 20:12  mxgraph\docs\
     目录           0  2012-10-29 20:12  mxgraph\docs\images\
     文件        6668  2012-10-29 20:11  mxgraph\docs\images\MX_MANUAL_html_1cc55dd3.png
     文件       33366  2012-10-29 20:11  mxgraph\docs\images\MX_MANUAL_html_ba4bf13.png
     文件       10973  2012-10-29 20:11  mxgraph\docs\images\MX_MANUAL_html_m75de608.png
     文件       27734  2012-10-29 20:11  mxgraph\docs\images\architecture.png
     文件       21512  2012-10-29 20:11  mxgraph\docs\images\callgraph.png
     文件        8461  2012-10-29 20:11  mxgraph\docs\images\editor.png
     文件        7480  2012-10-29 20:11  mxgraph\docs\images\graph.png
     文件        1451  2012-10-29 20:11  mxgraph\docs\images\logo.jpg
     文件       14034  2012-10-29 20:11  mxgraph\docs\images\model.png
     文件       27734  2012-10-29 20:11  mxgraph\docs\images\mx_man_architecture.png
     文件        5333  2012-10-29 20:11  mxgraph\docs\images\mx_man_collapse_swim.png
     文件       20843  2012-10-29 20:11  mxgraph\docs\images\mx_man_drill_down.png
     文件       17220  2012-10-29 20:11  mxgraph\docs\images\mx_man_drilling.png
     文件        3764  2012-10-29 20:11  mxgraph\docs\images\mx_man_edge_routing.png
     文件        9317  2012-10-29 20:11  mxgraph\docs\images\mx_man_expand_swim.png
     文件       60693  2012-10-29 20:11  mxgraph\docs\images\mx_man_graph_analysis.jpg
     文件       24247  2012-10-29 20:11  mxgraph\docs\images\mx_man_graph_interaction.png
     文件       33478  2012-10-29 20:11  mxgraph\docs\images\mx_man_graph_layout.png
     文件      602082  2012-10-29 20:11  mxgraph\docs\images\mx_man_graph_vis.png
     文件        4365  2012-10-29 20:11  mxgraph\docs\images\mx_man_hello_struct.png
     文件       20770  2012-10-29 20:11  mxgraph\docs\images\mx_man_hello_world.png
     文件       17294  2012-10-29 20:11  mxgraph\docs\images\mx_man_log_group_struct.png
     文件        1511  2012-10-29 20:11  mxgraph\docs\images\mx_man_non_realtive_edge_pos.png
     文件        5280  2012-10-29 20:11  mxgraph\docs\images\mx_man_non_relative_pos.png
     文件        1421  2012-10-29 20:11  mxgraph\docs\images\mx_man_overlap.png
     文件        7449  2012-10-29 20:11  mxgraph\docs\images\mx_man_rel_vert_pos.png
............此处省略2467个文件信息

评论

共有 条评论