Sidebar-Citrix.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. (function()
  2. {
  3. Sidebar.prototype.addCitrixPalette = function()
  4. {
  5. var w = 0.5;
  6. var h = 0.5;
  7. var s = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;aspect=fixed;html=1;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;strokeColor=none;shape=mxgraph.citrix.';
  8. var gn = 'mxgraph.citrix';
  9. var dt = '';
  10. this.addPaletteFunctions('citrix', 'Citrix', false,
  11. [
  12. this.createVertexTemplateEntry(s + '1u_2u_server;', w * 200, h * 78.2, '', '1U 2U Server', null, null, this.getTagsForStencil(gn, '1U 2U Server', dt).join(' ')),
  13. this.createVertexTemplateEntry(s + 'access_card;', w * 111, h * 150, '', 'Access Card', null, null, this.getTagsForStencil(gn, 'Access Card', dt).join(' ')),
  14. this.createVertexTemplateEntry(s + 'branch_repeater;', w * 200, h * 78, '', 'Branch Repeater', null, null, this.getTagsForStencil(gn, 'Branch Repeater', dt).join(' ')),
  15. this.createVertexTemplateEntry(s + 'browser;', w * 95, h * 145, '', 'Browser', null, null, this.getTagsForStencil(gn, 'Browser', dt).join(' ')),
  16. this.createVertexTemplateEntry(s + 'cache_server;', w * 142, h * 195, '', 'Cache Server', null, null, this.getTagsForStencil(gn, 'Cache Server', dt).join(' ')),
  17. this.createVertexTemplateEntry(s + 'calendar;', w * 150, h * 200, '', 'Calendar', null, null, this.getTagsForStencil(gn, 'Calendar', dt).join(' ')),
  18. this.createVertexTemplateEntry(s + 'cell_phone;', w * 50, h * 120, '', 'Cell Phone', null, null, this.getTagsForStencil(gn, 'Cell Phone', dt).join(' ')),
  19. this.createVertexTemplateEntry(s + 'chassis;', w * 275, h * 355, '', 'Chassis', null, null, this.getTagsForStencil(gn, 'Chassis', dt).join(' ')),
  20. this.createVertexTemplateEntry(s + 'citrix_hdx;', w * 155, h * 82, '', 'Citrix HDX', null, null, this.getTagsForStencil(gn, 'Citrix HDX', dt).join(' ')),
  21. this.createVertexTemplateEntry(s + 'citrix_logo;fillColor=#4E4F53;', w * 320, h * 125, '', 'Citrix Logo', null, null, this.getTagsForStencil(gn, 'Citrix Logo', dt).join(' ')),
  22. this.createVertexTemplateEntry(s + 'cloud;', w * 190, h * 124, '', 'Cloud', null, null, this.getTagsForStencil(gn, 'Cloud', dt).join(' ')),
  23. this.createVertexTemplateEntry(s + 'command_center;', w * 151, h * 192, '', 'Command Center', null, null, this.getTagsForStencil(gn, 'Command Center', dt).join(' ')),
  24. this.createVertexTemplateEntry(s + 'database;', w * 85, h * 100, '', 'Database', null, null, this.getTagsForStencil(gn, 'Database', dt).join(' ')),
  25. this.createVertexTemplateEntry(s + 'database_server;', w * 160, h * 180, '', 'Database Server', null, null, this.getTagsForStencil(gn, 'Database Server', dt).join(' ')),
  26. this.createVertexTemplateEntry(s + 'datacenter;', w * 255, h * 270, '', 'Datacenter', null, null, this.getTagsForStencil(gn, 'Datacenter', dt).join(' ')),
  27. this.createVertexTemplateEntry(s + 'desktop;', w * 178, h * 196, '', 'Desktop', null, null, this.getTagsForStencil(gn, 'Desktop', dt).join(' ')),
  28. this.createVertexTemplateEntry(s + 'desktop_web;', w * 153, h * 180, '', 'Desktop Web', null, null, this.getTagsForStencil(gn, 'Desktop Web', dt).join(' ')),
  29. this.createVertexTemplateEntry(s + 'dhcp_server;', w * 152, h * 180, '', 'DHCP Server', null, null, this.getTagsForStencil(gn, 'DHCP Server', dt).join(' ')),
  30. this.createVertexTemplateEntry(s + 'directory_server;', w * 130, h * 177, '', 'Directory Server', null, null, this.getTagsForStencil(gn, 'Directory Server', dt).join(' ')),
  31. this.createVertexTemplateEntry(s + 'dns_server;', w * 153, h * 185, '', 'DNS Server', null, null, this.getTagsForStencil(gn, 'DNS Server', dt).join(' ')),
  32. this.createVertexTemplateEntry(s + 'document;', w * 94, h * 144, '', 'Document', null, null, this.getTagsForStencil(gn, 'Document', dt).join(' ')),
  33. this.createVertexTemplateEntry(s + 'edgesight_server;', w * 153, h * 180, '', 'EdgeSight Server', null, null, this.getTagsForStencil(gn, 'EdgeSight Server', dt).join(' ')),
  34. this.createVertexTemplateEntry(s + 'file_server;', w * 142, h * 194, '', 'File Server', null, null, this.getTagsForStencil(gn, 'File Server', dt).join(' ')),
  35. this.createVertexTemplateEntry(s + 'firewall;', w * 150, h * 186, '', 'Firewall', null, null, this.getTagsForStencil(gn, 'Firewall', dt).join(' ')),
  36. this.createVertexTemplateEntry(s + 'ftp_server;', w * 142, h * 194, '', 'FTP Server', null, null, this.getTagsForStencil(gn, 'FTP Server', dt).join(' ')),
  37. this.createVertexTemplateEntry(s + 'geolocation_database;', w * 106, h * 98, '', 'Geolocation Database', null, null, this.getTagsForStencil(gn, 'Geolocation Database', dt).join(' ')),
  38. this.createVertexTemplateEntry(s + 'globe;', w * 157, h * 150, '', 'Globe', null, null, this.getTagsForStencil(gn, 'Globe', dt).join(' ')),
  39. this.createVertexTemplateEntry(s + 'goto_meeting;fillColor=#FAB616;gradientColor=#E12800;gradientDirection=north;', w * 74, h * 74, '', 'GoTo Meeting', null, null, this.getTagsForStencil(gn, 'GoTo Meeting', dt).join(' ')),
  40. this.createVertexTemplateEntry(s + 'government;', w * 238, h * 104, '', 'Government', null, null, this.getTagsForStencil(gn, 'Government', dt).join(' ')),
  41. this.createVertexTemplateEntry(s + 'home_office;', w * 160, h * 111, '', 'Home Office', null, null, this.getTagsForStencil(gn, 'Home Office', dt).join(' ')),
  42. this.createVertexTemplateEntry(s + 'hq_enterprise;', w * 184, h * 176, '', 'HQ / Enterprise', null, null, this.getTagsForStencil(gn, 'HQ Enterprise', dt).join(' ')),
  43. this.createVertexTemplateEntry(s + 'inspection;', w * 140, h * 130, '', 'Inspection', null, null, this.getTagsForStencil(gn, 'Inspection', dt).join(' ')),
  44. this.createVertexTemplateEntry(s + 'ip_phone;', w * 153, h * 74, '', 'IP Phone', null, null, this.getTagsForStencil(gn, 'IP Phone', dt).join(' ')),
  45. this.createVertexTemplateEntry(s + 'kiosk;', w * 130, h * 170, '', 'Kiosk', null, null, this.getTagsForStencil(gn, 'Kiosk', dt).join(' ')),
  46. this.createVertexTemplateEntry(s + 'laptop_1;', w * 182, h * 154, '', 'Laptop', null, null, this.getTagsForStencil(gn, 'Laptop', dt).join(' ')),
  47. this.createVertexTemplateEntry(s + 'laptop_2;', w * 232, h * 173, '', 'Laptop', null, null, this.getTagsForStencil(gn, 'Laptop', dt).join(' ')),
  48. this.createVertexTemplateEntry(s + 'license_server;', w * 130, h * 170, '', 'License Server', null, null, this.getTagsForStencil(gn, 'License Server', dt).join(' ')),
  49. this.createVertexTemplateEntry(s + 'merchandising_server;', w * 150, h * 180, '', 'Merchandising Server', null, null, this.getTagsForStencil(gn, 'Merchandising Server', dt).join(' ')),
  50. this.createVertexTemplateEntry(s + 'middleware;', w * 228, h * 136, '', 'Middleware', null, null, this.getTagsForStencil(gn, 'Middleware', dt).join(' ')),
  51. this.createVertexTemplateEntry(s + 'netscaler_gateway;', w * 200, h * 78, '', 'NetScaler Gateway', null, null, this.getTagsForStencil(gn, 'NetScaler Gateway', dt).join(' ')),
  52. this.createVertexTemplateEntry(s + 'netscaler_mpx;', w * 200, h * 78, '', 'NetScaler MPX', null, null, this.getTagsForStencil(gn, 'NetScaler MPX', dt).join(' ')),
  53. this.createVertexTemplateEntry(s + 'netscaler_sdx;', w * 200, h * 95, '', 'NetScaler SDX', null, null, this.getTagsForStencil(gn, 'NetScaler SDX', dt).join(' ')),
  54. this.createVertexTemplateEntry(s + 'netscaler_vpx;', w * 194, h * 72, '', 'NetScaler VPX', null, null, this.getTagsForStencil(gn, 'NetScaler VPX', dt).join(' ')),
  55. this.createVertexTemplateEntry(s + 'pbx_server;', w * 130, h * 170, '', 'PBX Server', null, null, this.getTagsForStencil(gn, 'PBX Server', dt).join(' ')),
  56. this.createVertexTemplateEntry(s + 'pda;', w * 60, h * 122, '', 'PDA', null, null, this.getTagsForStencil(gn, 'PDA', dt).join(' ')),
  57. this.createVertexTemplateEntry(s + 'podio;fillColor=#72B8DE;gradientColor=#186BA2;gradientDirection=south;', w * 74, h * 74, '', 'Podio', null, null, this.getTagsForStencil(gn, 'Podio', dt).join(' ')),
  58. this.createVertexTemplateEntry(s + 'printer;', w * 140, h * 140, '', 'Printer', null, null, this.getTagsForStencil(gn, 'Printer', dt).join(' ')),
  59. this.createVertexTemplateEntry(s + 'process;', w * 104, h * 124, '', 'Process', null, null, this.getTagsForStencil(gn, 'Process', dt).join(' ')),
  60. this.createVertexTemplateEntry(s + 'provisioning_server;', w * 152, h * 174, '', 'Provisioning Server', null, null, this.getTagsForStencil(gn, 'Provisioning Server', dt).join(' ')),
  61. this.createVertexTemplateEntry(s + 'proxy_server;', w * 153, h * 180, '', 'Proxy Server', null, null, this.getTagsForStencil(gn, 'Proxy Server', dt).join(' ')),
  62. this.createVertexTemplateEntry(s + 'radius_server;', w * 151, h * 182, '', 'Radius Server', null, null, this.getTagsForStencil(gn, 'Radius Server', dt).join(' ')),
  63. this.createVertexTemplateEntry(s + 'remote_office;', w * 184, h * 83, '', 'Remote Office', null, null, this.getTagsForStencil(gn, 'Remote Office', dt).join(' ')),
  64. this.createVertexTemplateEntry(s + 'reporting;', w * 123, h * 138, '', 'Reporting', null, null, this.getTagsForStencil(gn, 'Reporting', dt).join(' ')),
  65. this.createVertexTemplateEntry(s + 'role_appcontroller;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role AppController', null, null, this.getTagsForStencil(gn, 'Role AppController', dt).join(' ')),
  66. this.createVertexTemplateEntry(s + 'role_applications;', w * 76, h * 76, '', 'Role Applications', null, null, this.getTagsForStencil(gn, 'Role Applications', dt).join(' ')),
  67. this.createVertexTemplateEntry(s + 'role_cloudbridge;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role CloudBridge', null, null, this.getTagsForStencil(gn, 'Role CloudBridge', dt).join(' ')),
  68. this.createVertexTemplateEntry(s + 'role_desktops;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Desktops', null, null, this.getTagsForStencil(gn, 'Role Desktops', dt).join(' ')),
  69. this.createVertexTemplateEntry(s + 'role_load_testing_controller;', w * 48, h * 48, '', 'Role Load Testing Controller', null, null, this.getTagsForStencil(gn, 'Role Load Testing Controller', dt).join(' ')),
  70. this.createVertexTemplateEntry(s + 'role_load_testing_launcher;', w * 82, h * 76, '', 'Role Load Testing Launcher', null, null, this.getTagsForStencil(gn, 'Role Load Testing Launcher', dt).join(' ')),
  71. this.createVertexTemplateEntry(s + 'role_receiver;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Receiver', null, null, this.getTagsForStencil(gn, 'Role Receiver', dt).join(' ')),
  72. this.createVertexTemplateEntry(s + 'role_repeater;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Repeater', null, null, this.getTagsForStencil(gn, 'Role Repeater', dt).join(' ')),
  73. this.createVertexTemplateEntry(s + 'role_secure_access;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Secure Access', null, null, this.getTagsForStencil(gn, 'Role Secure Access', dt).join(' ')),
  74. this.createVertexTemplateEntry(s + 'role_security;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Security', null, null, this.getTagsForStencil(gn, 'Role Security', dt).join(' ')),
  75. this.createVertexTemplateEntry(s + 'role_services;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Services', null, null, this.getTagsForStencil(gn, 'Role Services', dt).join(' ')),
  76. this.createVertexTemplateEntry(s + 'role_storefront;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role StoreFront', null, null, this.getTagsForStencil(gn, 'Role StoreFront', dt).join(' ')),
  77. this.createVertexTemplateEntry(s + 'role_storefront_services;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role StoreFront Services', null, null, this.getTagsForStencil(gn, 'Role StoreFront Services', dt).join(' ')),
  78. this.createVertexTemplateEntry(s + 'role_synchronizer;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role Synchronizer', null, null, this.getTagsForStencil(gn, 'Role Synchronizer', dt).join(' ')),
  79. this.createVertexTemplateEntry(s + 'role_xenmobile;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 76, h * 76, '', 'Role XenMobile', null, null, this.getTagsForStencil(gn, 'Role XenMobile', dt).join(' ')),
  80. this.createVertexTemplateEntry(s + 'role_xenmobile_device_manager;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 70, h * 76, '', 'Role XenMobile Device Manager', null, null, this.getTagsForStencil(gn, 'Role XenMobile Device Manager', dt).join(' ')),
  81. this.createVertexTemplateEntry(s + 'router;', w * 110, h * 73, '', 'Router', null, null, this.getTagsForStencil(gn, 'Router', dt).join(' ')),
  82. this.createVertexTemplateEntry(s + 'security;', w * 81, h * 142, '', 'Security', null, null, this.getTagsForStencil(gn, 'Security', dt).join(' ')),
  83. this.createVertexTemplateEntry(s + 'sharefile;fillColor=#386510;gradientColor=#C6CF2B;gradientDirection=south;', w * 76, h * 76, '', 'ShareFile', null, null, this.getTagsForStencil(gn, 'ShareFile', dt).join(' ')),
  84. this.createVertexTemplateEntry(s + 'site;', w * 214, h * 202, '', 'Site', null, null, this.getTagsForStencil(gn, 'Site', dt).join(' ')),
  85. this.createVertexTemplateEntry(s + 'smtp_server;', w * 152, h * 184, '', 'SMTP Server', null, null, this.getTagsForStencil(gn, 'SMTP Server', dt).join(' ')),
  86. this.createVertexTemplateEntry(s + 'storefront_services;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 152, h * 182, '', 'Storefront Services', null, null, this.getTagsForStencil(gn, 'Storefront Services', dt).join(' ')),
  87. this.createVertexTemplateEntry(s + 'switch;', w * 184, h * 83, '', 'Switch', null, null, this.getTagsForStencil(gn, 'Switch', dt).join(' ')),
  88. this.createVertexTemplateEntry(s + 'tablet_1;', w * 122, h * 158, '', 'Tablet', null, null, this.getTagsForStencil(gn, 'Tablet', dt).join(' ')),
  89. this.createVertexTemplateEntry(s + 'tablet_2;', w * 164, h * 172, '', 'Tablet', null, null, this.getTagsForStencil(gn, 'Tablet', dt).join(' ')),
  90. this.createVertexTemplateEntry(s + 'thin_client;', w * 142, h * 142, '', 'Thin Client', null, null, this.getTagsForStencil(gn, 'Thin Client', dt).join(' ')),
  91. this.createVertexTemplateEntry(s + 'tower_server;', w * 130, h * 170, '', 'Tower Server', null, null, this.getTagsForStencil(gn, 'Tower Server', dt).join(' ')),
  92. this.createVertexTemplateEntry(s + 'users;', w * 129, h * 110, '', 'Users', null, null, this.getTagsForStencil(gn, 'Users', dt).join(' ')),
  93. this.createVertexTemplateEntry(s + 'user_control;', w * 206, h * 168, '', 'User Control', null, null, this.getTagsForStencil(gn, 'User Control', dt).join(' ')),
  94. this.createVertexTemplateEntry(s + 'web_server;', w * 153, h * 180, '', 'Web Server', null, null, this.getTagsForStencil(gn, 'Web Server', dt).join(' ')),
  95. this.createVertexTemplateEntry(s + 'web_service;', w * 126, h * 120, '', 'Web Service', null, null, this.getTagsForStencil(gn, 'Web Service', dt).join(' ')),
  96. this.createVertexTemplateEntry(s + 'worxenroll;fillColor=#386510;gradientColor=#C6CF2B;gradientDirection=south;', w * 76, h * 76, '', 'WorxEnroll', null, null, this.getTagsForStencil(gn, 'WorxEnroll', dt).join(' ')),
  97. this.createVertexTemplateEntry(s + 'worxhome;fillColor=#DB9EFF;gradientColor=#712FA2;gradientDirection=south;', w * 76, h * 76, '', 'WorxHome', null, null, this.getTagsForStencil(gn, 'WorxHome', dt).join(' ')),
  98. this.createVertexTemplateEntry(s + 'worxmail;fillColor=#112356;gradientColor=#63AFC6;gradientDirection=south;', w * 76, h * 76, '', 'WorxMail', null, null, this.getTagsForStencil(gn, 'WorxMail', dt).join(' ')),
  99. this.createVertexTemplateEntry(s + 'worxweb;fillColor=#2A3437;gradientColor=#B8B9B9;gradientDirection=south;', w * 76, h * 76, '', 'WorxWeb', null, null, this.getTagsForStencil(gn, 'WorxWeb', dt).join(' ')),
  100. this.createVertexTemplateEntry(s + 'xenapp_server;', w * 152, h * 178, '', 'XenApp Server', null, null, this.getTagsForStencil(gn, 'XenApp Server', dt).join(' ')),
  101. this.createVertexTemplateEntry(s + 'xenapp_services;', w * 152, h * 180, '', 'XenApp Services', null, null, this.getTagsForStencil(gn, 'XenApp Services', dt).join(' ')),
  102. this.createVertexTemplateEntry(s + 'xenapp_web;', w * 152, h * 180, '', 'XenApp Web', null, null, this.getTagsForStencil(gn, 'XenApp Web', dt).join(' ')),
  103. this.createVertexTemplateEntry(s + 'xencenter;', w * 152, h * 178, '', 'XenCenter', null, null, this.getTagsForStencil(gn, 'XenCenter', dt).join(' ')),
  104. this.createVertexTemplateEntry(s + 'xenclient;', w * 182, h * 154, '', 'XenClient', null, null, this.getTagsForStencil(gn, 'XenClient', dt).join(' ')),
  105. this.createVertexTemplateEntry(s + 'xenclient_synchronizer;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 152, h * 182, '', 'XenClient Synchronizer', null, null, this.getTagsForStencil(gn, 'Synchronizer', dt).join(' ')),
  106. this.createVertexTemplateEntry(s + 'xendesktop_server;', w * 150, h * 182, '', 'XenDesktop Server', null, null, this.getTagsForStencil(gn, 'XenDesktop Server', dt).join(' ')),
  107. this.createVertexTemplateEntry(s + 'xenmobile;fillColor=#CCCCCC;gradientColor=#000000;gradientDirection=south;', w * 140, h * 178, '', 'XenMobile', null, null, this.getTagsForStencil(gn, 'XenMobile', dt).join(' ')),
  108. this.createVertexTemplateEntry(s + 'xenserver;', w * 153, h * 180, '', 'XenServer', null, null, this.getTagsForStencil(gn, 'XenServer', dt).join(' '))
  109. ]);
  110. };
  111. })();