Ext.create('Ext.panel.Panel', {
title: '组合图像',
renderTo: 'ComplexDiagram',
items: [{
xtype: 'button',
text: '缩放的字',
margin:'5px',
handler: function (btn) {
Ext.create('Ext.window.Window', {
layout: 'fit',
width: ,
height: ,
items: Ext.create('Ext.draw.Component', {
viewBox: false,
items: [{
type: 'circle',
fill: '#0066CC', //blue
radius: ,
x: ,
y:
},{
type: 'circle',
fill: '#00CC66', //green
radius: ,
x: ,
y:
},{
type: 'circle',
fill: '#FF9933', //orange
radius: ,
x: ,
y:
},{type: 'text',
text: 'Model',
fill: '#000', //black
font: '12px "Arial"',
x: ,
y:
},{
type: 'text',
text: 'View',
fill: '#000',
font: '12px "Arial"',
x: ,
y:
},{
type: 'text',
text: 'Controller',
fill: '#000',
font: '12px "Arial"',
x: ,
y:
},{
type: 'rect',
fill: '#CC0000', //red
width: ,
height: ,
x: ,
y:
},{
type: 'rect',
fill: '#CC0000',
width: ,
height: ,
x: ,
y: ,
rotate: {
degrees: // line in diagonal \
}
},{
type: 'rect',
fill: '#CC0000',
width: ,
height: ,
x: ,
y: ,
rotate: {
degrees: // line in diagonal /
}
}]
})
}).show();
}
}]
})

显示效果:

最新文章

  1. tomcat黑/白名单设置
  2. Sprint2-3.0
  3. C语言文法的理解
  4. json处理复杂对象jsonConfig
  5. SqlSugar简单工模式数据访问简单Demo
  6. 製程能力介紹(SPC introduction) ─ Cp之製程能力解釋
  7. TCP/UDP简易通信
  8. C#:.net/方法/字符串/数组
  9. iOS 一个方法首次安装滚播图 展示应用简介
  10. 如何将mysql数据导入Hadoop之Sqoop安装
  11. 前端开发【第1篇:HTML】
  12. hive高级数据类型
  13. sas 基础(1)-关于数据格式的SAS函数
  14. (1.2)mysql 索引概念
  15. 一个简单的批量更新oracle 数据库中 最近的服务商名称的数据
  16. 使用electron开发一个h5的客户端应用创建http服务模拟后台接口mock
  17. (39)JS运动之缓冲运动
  18. Linux基础知识之history的详细说明
  19. S EAI 客户主数据导入_test(detail)
  20. Linux下ping命令参数详细解析

热门文章

  1. 云平台服务运行情况检测脚本V0.1
  2. python os用法精简版
  3. [centos6.5] yum makecache 连接错误的解决办法
  4. 原生js编写设为首页兼容ie、火狐和谷歌
  5. CF 990C. Bracket Sequences Concatenation Problem【栈/括号匹配】
  6. HDU 2547 无剑无我(数学)
  7. java应用高内存占用
  8. 取消Gridvie中button的焦点
  9. Bootstrap-table自定义可编辑每页显示记录数
  10. Android中使用File文件进行数据存储