zkDiagram: interactive diagrams and visual program

[size=medium]zkDiagram是 [url=http://draw2d.org/draw2d/]draw2d[/url] 库的综合 .使用这个库可以在web程序中使用Visio-style来画图表
官方网站:[url]http://www.integratedmodelling.org/software/zk/zkdiagram.html[/url]
[/size]
代码:

<?xml version="1.0" encoding="utf-8"?>
<?page title="ZK::First Draw2D Workspace"?>
<window border="none">
<vbox id="map">
<workspace width="600px" height="600px" router="bezier">
<textnode fillColor="#bbbbbb" x="10" y="90" width="240"
height="50"
text="This is a simple demo. Try moving and connecting shapes." />
<imagenode img="flow.gif" x="100" y="200" width="48"
height="40">
<port position="left" />
<port position="right" />
</imagenode>
<imagenode img="variable.gif" x="100" y="250" width="48"
height="40">
<port position="top" />
<port position="bottom" />
</imagenode>
<imagenode img="flow.gif" x="200" y="300" width="48"
height="40">
<port position="top" />
<port position="bottom" />
</imagenode>
<zknode x="200" y="175" width="300" height="60"><!-- any ZK component... -->
<window border="none">
<listbox id="box" width="300px" multiple="true"
checkmark="true">
<listhead>
<listheader label="Name" />
<listheader label="Gender" />
<listheader label="Age" />
<listheader label="Description" />
</listhead>
<listitem>
<listcell label="Mary" />
<listcell label="FEMALE" />
<listcell label="18" />
<listcell label="A young lady." />
</listitem>
<listitem>
<listcell label="John" />
<listcell label="MALE" />
<listcell label="20" />
<listcell label="A college student." />
</listitem>
</listbox>
</window><!-- and as many ports as we want -->
<port position="left" />
<port position="left" />
<port position="right" />
</zknode>
</workspace>
</vbox>
</window>


效果图:
[img]D:\uploadimage\zkdiagram.jpg[/img]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值