Sidebar-Android.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. (function()
  2. {
  3. // Adds Android shapes
  4. Sidebar.prototype.addAndroidPalette = function()
  5. {
  6. var sizeX = 211; //reference size for iPhone and all other iOS shapes
  7. var sizeY = 2 * sizeX; //change only sizeX, to avoid changing aspect ratio
  8. var sb = this;
  9. var s = 'strokeWidth=1;html=1;shadow=0;dashed=0;shape=mxgraph.android.';
  10. var sm = 'strokeWidth=2;shadow=0;dashed=0;html=1;shape=mxgraph.android.';
  11. var s2 = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;html=1;shadow=0;dashed=0;strokeWidth=1;shape=mxgraph.android.';
  12. var s3 = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;html=1;shadow=0;dashed=0;strokeWidth=1;strokeColor=none;shape=';
  13. var s4 = 'rounded=1;html=1;shadow=0;dashed=0;whiteSpace=wrap;fontSize=10;fillColor=#';
  14. var s5 = 'whiteSpace=wrap;html=1;shadow=0;dashed=0;fontSize=10;align=left;fillColor=#';
  15. var s6 = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;html=1;shadow=0;dashed=0;strokeWidth=2;shape=mxgraph.android.';
  16. var s7 = 'strokeWidth=1;html=1;shadow=0;dashed=0;shape=';
  17. var inh = 'strokeColor=inherit;fillColor=inherit;gradientColor=inherit;';
  18. //default tags
  19. var dt = 'android ';
  20. var fns =
  21. [
  22. this.createVertexTemplateEntry(s2 + 'phone2;fillColor=#ffffff;strokeColor=#c0c0c0;',
  23. 200, 390, '', 'Phone', null, null, dt + 'phone mobile portrait'),
  24. this.createVertexTemplateEntry(s2 + 'phone2;fillColor=#ffffff;strokeColor=#c0c0c0;direction=south;',
  25. 390, 200, '', 'Phone (landscape)', null, null, dt + 'phone mobile landscape'),
  26. this.createVertexTemplateEntry(s2 + 'tab2;fillColor=#ffffff;strokeColor=#c0c0c0;',
  27. 472, 686, '', 'Tab', null, null, dt + 'tab tablet portrait'),
  28. this.createVertexTemplateEntry(s2 + 'tab2;fillColor=#ffffff;strokeColor=#c0c0c0;direction=north;',
  29. 686, 472, '', 'Tab (landscape)', null, null, dt + 'tab tablet landscape'),
  30. this.createVertexTemplateEntry(s + 'action_bar;fillColor=#1A1A1A;strokeColor=#c0c0c0;strokeWidth=2;fontColor=#FFFFFF;',
  31. 185, 30, '', 'Action Bar', null, null, dt + 'action bar dark portrait'),
  32. this.createVertexTemplateEntry(s + 'action_bar;fillColor=#E6E6E6;strokeColor=#c0c0c0;strokeWidth=2;',
  33. 185, 30, '', 'Action Bar (Bright)', null, null, dt + 'action bar bright portrait'),
  34. this.createVertexTemplateEntry(s + 'action_bar_landscape;fillColor=#1A1A1A;strokeColor=#c0c0c0;strokeWidth=2;fontColor=#FFFFFF;',
  35. 320, 30, '', 'Action Bar Landscape', null, null, dt + 'action bar landscape dark'),
  36. this.createVertexTemplateEntry(s + 'action_bar_landscape;fillColor=#E6E6E6;strokeColor=#c0c0c0;strokeWidth=2;',
  37. 320, 30, '', 'Action Bar Landscape (Bright)', null, null, dt + 'action bar bright landscape'),
  38. this.createVertexTemplateEntry(s4 + '666666;align=center;strokeColor=#4D4D4D;fontColor=#ffffff;',
  39. sizeX * 0.5, sizeY * 0.04, 'Normal', 'Button (Normal)', null, null, dt + 'button normal'),
  40. this.createVertexTemplateEntry(s4 + '666666;align=center;strokeColor=#999999;fontColor=#ffffff;',
  41. sizeX * 0.5, sizeY * 0.04, 'Focused', 'Button (Focused)', null, null, dt + 'button focused'),
  42. this.createVertexTemplateEntry(s4 + '999999;align=center;strokeColor=#666666;fontColor=#ffffff;strokeWidth=2;',
  43. sizeX * 0.5, sizeY * 0.04, 'Pressed', 'Button (Pressed)', null, null, dt + 'button pressed'),
  44. this.createVertexTemplateEntry(s4 + '333333;align=center;strokeColor=#4D4D4D;fontColor=#666666;',
  45. sizeX * 0.5, sizeY * 0.04, 'Focused disabled', 'Button (Focused, Disabled)', null, null, dt + 'button focused disabled'),
  46. this.createVertexTemplateEntry(s4 + '333333;align=center;strokeColor=#333333;fontColor=#666666;',
  47. sizeX * 0.5, sizeY * 0.04, 'Disabled', 'Button (Disabled)', null, null, dt + 'button disabled'),
  48. this.createVertexTemplateEntry(s4 + 'E6E6E6;align=center;strokeColor=#E6E6E6;fontColor=#333333;',
  49. sizeX * 0.5, sizeY * 0.04, 'Normal', 'Button (Normal, Bright)', null, null, dt + 'button normal bright'),
  50. this.createVertexTemplateEntry(s4 + 'E6E6E6;align=center;strokeColor=#B3B3B3;fontColor=#333333;',
  51. sizeX * 0.5, sizeY * 0.04, 'Focused', 'Button (Focused, Bright)', null, null, dt + 'button focused bright'),
  52. this.createVertexTemplateEntry(s4 + 'B3B3B3;align=center;strokeColor=#E6E6E6;fontColor=#333333;strokeWidth=2;',
  53. sizeX * 0.5, sizeY * 0.04, 'Pressed', 'Button (Pressed, Bright)', null, null, dt + 'button pressed bright'),
  54. this.createVertexTemplateEntry(s4 + 'F4F4F4;align=center;strokeColor=#E6E6E6;fontColor=#CCCCCC;',
  55. sizeX * 0.5, sizeY * 0.04, 'Focused disabled', 'Button (Focused, Disabled, Bright)', null, null, dt + 'button focused disabled bright'),
  56. this.createVertexTemplateEntry(s4 + 'F4F4F4;align=center;strokeColor=#F4F4F4;fontColor=#CCCCCC;',
  57. sizeX * 0.5, sizeY * 0.04, 'Disabled', 'Button (Disabled, Bright)', null, null, dt + 'button disabled bright'),
  58. this.addEntry(dt + 'checkboxes checkbox', function()
  59. {
  60. var bg = new mxCell('', new mxGeometry(0, 0, 165, 50), s7 + 'transparent;strokeColor=#33b5e5;fillColor=#ffffff');
  61. bg.vertex = true;
  62. var button1 = new mxCell('Setting 1', new mxGeometry(0, 0, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  63. button1.vertex = true;
  64. bg.insert(button1);
  65. var anchor1 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  66. anchor1.vertex = true;
  67. button1.insert(anchor1);
  68. var radio1 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + s + 'rrect;rSize=0;resizable=0;');
  69. radio1.vertex = true;
  70. anchor1.insert(radio1);
  71. var button2 = new mxCell('Setting 2', new mxGeometry(0, 12.5, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  72. button2.vertex = true;
  73. bg.insert(button2);
  74. var anchor2 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  75. anchor2.vertex = true;
  76. button2.insert(anchor2);
  77. var radio2 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + s + 'rrect;rSize=0;resizable=0;');
  78. radio2.vertex = true;
  79. anchor2.insert(radio2);
  80. var button3 = new mxCell('Setting 3', new mxGeometry(0, 25, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  81. button3.vertex = true;
  82. bg.insert(button3);
  83. var anchor3 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  84. anchor3.vertex = true;
  85. button3.insert(anchor3);
  86. var radio3 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + s + 'checkbox;rSize=0;resizable=0;');
  87. radio3.vertex = true;
  88. anchor3.insert(radio3);
  89. var button4 = new mxCell('Setting 4', new mxGeometry(0, 37.5, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  90. button4.vertex = true;
  91. bg.insert(button4);
  92. var anchor4 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  93. anchor4.vertex = true;
  94. button4.insert(anchor4);
  95. var radio4 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + s + 'rrect;rSize=0;resizable=0;');
  96. radio4.vertex = true;
  97. anchor4.insert(radio4);
  98. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Checkboxes');
  99. }),
  100. this.addEntry(dt + 'radiobuttons radiobutton', function()
  101. {
  102. var bg = new mxCell('', new mxGeometry(0, 0, 165, 50), s7 + 'transparent;strokeColor=#33b5e5;fillColor=#ffffff;');
  103. bg.vertex = true;
  104. var button1 = new mxCell('Option 1', new mxGeometry(0, 0, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  105. button1.vertex = true;
  106. bg.insert(button1);
  107. var anchor1 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  108. anchor1.vertex = true;
  109. button1.insert(anchor1);
  110. var radio1 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + 'shape=ellipse;resizable=0;html=1;');
  111. radio1.vertex = true;
  112. anchor1.insert(radio1);
  113. var button2 = new mxCell('Option 2', new mxGeometry(0, 12.5, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  114. button2.vertex = true;
  115. bg.insert(button2);
  116. var anchor2 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  117. anchor2.vertex = true;
  118. button2.insert(anchor2);
  119. var radio2 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + 'shape=ellipse;resizable=0;html=1;');
  120. radio2.vertex = true;
  121. anchor2.insert(radio2);
  122. var button3 = new mxCell('Option 3', new mxGeometry(0, 25, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  123. button3.vertex = true;
  124. bg.insert(button3);
  125. var anchor3 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  126. anchor3.vertex = true;
  127. button3.insert(anchor3);
  128. var radio3 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), 'shape=ellipse;strokeColor=inherit;resizable=0;fillColor=#33b5e5;html=1;');
  129. radio3.vertex = true;
  130. anchor3.insert(radio3);
  131. var button4 = new mxCell('Option 4', new mxGeometry(0, 37.5, 165, 12.5), inh + 'shape=transparent;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  132. button4.vertex = true;
  133. bg.insert(button4);
  134. var anchor4 = new mxCell('', new mxGeometry(0, 6, 0, 0), inh + 'shape=transparent;');
  135. anchor4.vertex = true;
  136. button4.insert(anchor4);
  137. var radio4 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), inh + 'shape=ellipse;resizable=0;html=1;');
  138. radio4.vertex = true;
  139. anchor4.insert(radio4);
  140. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Radiobuttons');
  141. }),
  142. this.createVertexTemplateEntry(s2 + 'contact_badge_focused;', 40, 40, '', 'Contact Badge Focused', null, null, dt + 'contact badge focused'),
  143. this.createVertexTemplateEntry(s2 + 'contact_badge_focused;', 60, 60, '', 'Contact Badge Focused', null, null, dt + 'contact badge focused'),
  144. this.createVertexTemplateEntry(s2 + 'contact_badge_normal;', 40, 40, '', 'Contact Badge Normal', null, null, dt + 'contact badge normal'),
  145. this.createVertexTemplateEntry(s2 + 'contact_badge_normal;', 60, 60, '', 'Contact Badge Normal', null, null, dt + 'contact badge normal'),
  146. this.createVertexTemplateEntry(s2 + 'contact_badge_pressed;', 40, 40, '', 'Contact Badge Pressed', null, null, dt + 'contact badge pressed'),
  147. this.createVertexTemplateEntry(s2 + 'contact_badge_pressed;', 60, 60, '', 'Contact Badge Pressed', null, null, dt + 'contact badge pressed'),
  148. this.addEntry(dt + 'contextual action bar dark portrait', function()
  149. {
  150. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'contextual_action_bar;fillColor=#002E3E;');
  151. bg.vertex = true;
  152. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), 'shape=transparent;align=left;fontStyle=1;fontColor=#ffffff;');
  153. text1.vertex = true;
  154. bg.insert(text1);
  155. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar');
  156. }),
  157. this.addEntry(dt + 'contextual action bar bright portrait', function()
  158. {
  159. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'contextual_action_bar_white;fillColor=#E6E6E6;');
  160. bg.vertex = true;
  161. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), 'shape=transparent;align=left;fontStyle=1;');
  162. text1.vertex = true;
  163. bg.insert(text1);
  164. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar (Bright)');
  165. }),
  166. this.addEntry(dt + 'contextual action bar landscape dark', function()
  167. {
  168. var bg = new mxCell('', new mxGeometry(0, 0, 320, 30), s + 'contextual_action_bar_landscape;fillColor=#002E3E;');
  169. bg.vertex = true;
  170. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), 'shape=transparent;align=left;fontStyle=1;fontColor=#ffffff;');
  171. text1.vertex = true;
  172. bg.insert(text1);
  173. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar Landscape');
  174. }),
  175. this.addEntry(dt + 'contextual action bar landscape bright', function()
  176. {
  177. var bg = new mxCell('', new mxGeometry(0, 0, 320, 30), s + 'contextual_action_bar_landscape_white;fillColor=#E6E6E6;');
  178. bg.vertex = true;
  179. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), 'shape=transparent;align=left;fontStyle=1;');
  180. text1.vertex = true;
  181. bg.insert(text1);
  182. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar Landscape (Bright)');
  183. }),
  184. this.addEntry(dt + 'contextual split action bar dark', function()
  185. {
  186. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'contextual_split_action_bar;fillColor=#002E3E;fontColor=#FFFFFF;');
  187. bg.vertex = true;
  188. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 185, 30), 'shape=transparent;fontStyle=1;fontColor=#ffffff;');
  189. text1.vertex = true;
  190. bg.insert(text1);
  191. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), 'shape=transparent;fontStyle=1;fontColor=#ffffff;');
  192. text2.vertex = true;
  193. bg.insert(text2);
  194. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar');
  195. }),
  196. this.addEntry(dt + 'contextual split action bar bright', function()
  197. {
  198. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'contextual_split_action_bar_white;fillColor=#E6E6E6;');
  199. bg.vertex = true;
  200. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 185, 30), 'shape=transparent;fontStyle=1;');
  201. text1.vertex = true;
  202. bg.insert(text1);
  203. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), 'shape=transparent;fontStyle=1;');
  204. text2.vertex = true;
  205. bg.insert(text2);
  206. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar (Bright)');
  207. }),
  208. this.addEntry(dt + 'contextual split action bar landscape dark', function()
  209. {
  210. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'contextual_split_action_bar_landscape;fillColor=#002E3E;fontColor=#FFFFFF;');
  211. bg.vertex = true;
  212. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 320, 30), 'shape=transparent;fontStyle=1;fontColor=#ffffff;');
  213. text1.vertex = true;
  214. bg.insert(text1);
  215. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), 'shape=transparent;fontStyle=1;fontColor=#ffffff;');
  216. text2.vertex = true;
  217. bg.insert(text2);
  218. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar Landscape');
  219. }),
  220. this.addEntry(dt + 'contextual split action bar landscape bright', function()
  221. {
  222. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'contextual_split_action_bar_landscape_white;fillColor=#E6E6E6;');
  223. bg.vertex = true;
  224. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 320, 30), 'shape=transparent;fontStyle=1;');
  225. text1.vertex = true;
  226. bg.insert(text1);
  227. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), 'shape=transparent;fontStyle=1;');
  228. text2.vertex = true;
  229. bg.insert(text2);
  230. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar Landscape (Bright)');
  231. }),
  232. this.createVertexTemplateEntry(s2 + 'indeterminate_progress_bar;strokeColor=#33B5E5;',
  233. 149, 5, '', 'Indeterminate Progress Bar', null, null, dt + 'indeterminate progress bar'),
  234. this.createVertexTemplateEntry(s2 + 'indeterminateSpinner;',
  235. 50, 50, '', 'Indeterminate Spinner', null, null, dt + 'indeterminate spinner'),
  236. this.createVertexTemplateEntry(s2 + 'keyboard;',
  237. 185, 100, '', 'Keyboard', null, null, dt + 'keyboard'),
  238. this.addEntry(dt + 'menu bar', function()
  239. {
  240. var bg = new mxCell('', new mxGeometry(0, 0, 185, 50), s + 'rrect;rSize=0;strokeColor=#888888;fillColor=#444444;');
  241. bg.vertex = true;
  242. var button1 = new mxCell('Menu Item 1', new mxGeometry(0, 0, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  243. button1.vertex = true;
  244. bg.insert(button1);
  245. var button2 = new mxCell('Menu Item 2', new mxGeometry(0, 12.5, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  246. button2.vertex = true;
  247. bg.insert(button2);
  248. var button3 = new mxCell('Menu Item 3', new mxGeometry(0, 25, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  249. button3.vertex = true;
  250. bg.insert(button3);
  251. var button4 = new mxCell('Menu Item 4', new mxGeometry(0, 37.5, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  252. button4.vertex = true;
  253. bg.insert(button4);
  254. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Menu bar');
  255. }),
  256. this.addEntry(dt + 'menu bar', function()
  257. {
  258. var bg = new mxCell('', new mxGeometry(0, 0, 185, 50), s + 'rrect;rSize=0;strokeColor=#eeeeee;fillColor=#ffffff;gradientColor=none;');
  259. bg.vertex = true;
  260. var button1 = new mxCell('Menu Item 1', new mxGeometry(0, 0, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  261. button1.vertex = true;
  262. bg.insert(button1);
  263. var button2 = new mxCell('Menu Item 2', new mxGeometry(0, 12.5, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  264. button2.vertex = true;
  265. bg.insert(button2);
  266. var button3 = new mxCell('Menu Item 3', new mxGeometry(0, 25, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  267. button3.vertex = true;
  268. bg.insert(button3);
  269. var button4 = new mxCell('Menu Item 4', new mxGeometry(0, 37.5, 185, 12.5), inh + s + 'rrect;rSize=0;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  270. button4.vertex = true;
  271. bg.insert(button4);
  272. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Menu bar');
  273. }),
  274. this.createVertexTemplateEntry(s6 + 'navigation_bar_1;fillColor=#1A1A1A;strokeColor=#999999;',
  275. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar portrait horizontal'),
  276. this.createVertexTemplateEntry(s6 + 'navigation_bar_1_landscape;fillColor=#1A1A1A;strokeColor=#999999;',
  277. 320, 30, '', 'Navigation Bar Landscape', null, null, dt + 'navigation bar landscape horizontal'),
  278. this.createVertexTemplateEntry(s6 + 'navigation_bar_1_vertical;fillColor=#1A1A1A;strokeColor=#999999;',
  279. 30, 320, '', 'Navigation Bar Vertical', null, null, dt + 'navigation bar vertical'),
  280. this.createVertexTemplateEntry(s6 + 'navigation_bar_2;fillColor=#1A1A1A;strokeColor=#999999;',
  281. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  282. this.createVertexTemplateEntry(s6 + 'navigation_bar_3;fillColor=#1A1A1A;strokeColor=#999999;',
  283. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar portrait horizontal'),
  284. this.createVertexTemplateEntry(s6 + 'navigation_bar_3_landscape;fillColor=#1A1A1A;strokeColor=#999999;',
  285. 320, 30, '', 'Navigation Bar Landscape', null, null, dt + 'navigation bar landscape horizontal'),
  286. this.createVertexTemplateEntry(s6 + 'navigation_bar_4;fillColor=#1A1A1A;strokeColor=#999999;',
  287. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  288. this.createVertexTemplateEntry(s6 + 'navigation_bar_5;fillColor=#1A1A1A;strokeColor=#999999;',
  289. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  290. this.createVertexTemplateEntry(s6 + 'navigation_bar_5_vertical;fillColor=#1A1A1A;strokeColor=#999999;',
  291. 30, 320, '', 'Navigation Bar Vertical', null, null, dt + 'navigation bar vertical'),
  292. this.createVertexTemplateEntry(s6 + 'navigation_bar_6;fillColor=#1A1A1A;strokeColor=#999999;',
  293. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  294. this.createVertexTemplateEntry(s2 + 'progressBar;strokeColor=#33b5e5;dx1=0.8;dx2=0.6;strokeWidth=2;',
  295. 185, 5, '', 'Progress Bar', null, null, dt + 'progress bar'),
  296. this.createVertexTemplateEntry(s2 + 'progressScrubberDisabled;dx=0.3;fillColor=#33b5e5;',
  297. 185, 16, '', 'Progress Scrubber Disabled', null, null, dt + 'progress scrubber disabled'),
  298. this.createVertexTemplateEntry(s2 + 'progressScrubberFocused;dx=0.3;fillColor=#33b5e5;',
  299. 185, 16, '', 'Progress Scrubber Focused', null, null, dt + 'progress scrubber focused'),
  300. this.createVertexTemplateEntry(s2 + 'progressScrubberPressed;dx=0.3;fillColor=#33b5e5;',
  301. 185, 16, '', 'Progress Scrubber Pressed', null, null, dt + 'progress scrubber pressed'),
  302. this.createVertexTemplateEntry(s2 + 'quickscroll2;dy=0.5;fillColor=#33b5e5;strokeColor=#66D5F5;',
  303. 58, 320, '', 'Quickscroll', null, null, dt + 'quickscroll quick scroll'),
  304. this.createVertexTemplateEntry(s2 + 'quickscroll3;dy=0.5;fillColor=#33b5e5;strokeColor=#66D5F5;',
  305. 6, 320, '', 'Quickscroll', null, null, dt + 'quickscroll quick scroll'),
  306. this.addEntry(dt + 'quick contact', function()
  307. {
  308. var bg = new mxCell('', new mxGeometry(0, 0, 150, 165), s + 'quick_contact;');
  309. bg.vertex = true;
  310. var text1 = new mxCell('Name', new mxGeometry(0, 65, 150, 18), s + 'anchor;rSize=0;fontStyle=1;fontColor=#FFFFFF;');
  311. text1.vertex = true;
  312. bg.insert(text1);
  313. var text2 = new mxCell('Item 1', new mxGeometry(0, 108, 120, 28), s + 'anchor;rSize=0;align=left;spacingLeft=10;');
  314. text2.vertex = true;
  315. bg.insert(text2);
  316. var text3 = new mxCell('Item 2', new mxGeometry(0, 136, 120, 28), s + 'anchor;rSize=0;align=left;spacingLeft=10;');
  317. text3.vertex = true;
  318. bg.insert(text3);
  319. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Quick Contact');
  320. }),
  321. this.addEntry(dt + 'scrollable tab scroll', function()
  322. {
  323. var bg = new mxCell('', new mxGeometry(0, 0, 185, 15), s + 'rrect;rSize=0;fillColor=#444444;strokeColor=none;');
  324. bg.vertex = true;
  325. var text1 = new mxCell('One', new mxGeometry(0, 0, 46.25, 15), s + 'anchor;align=left;fontColor=#FFFFFF;');
  326. text1.vertex = true;
  327. bg.insert(text1);
  328. var text2 = new mxCell('Tab Two', new mxGeometry(46.25, 0, 92.5, 15), s + 'anchor;fontColor=#FFFFFF;');
  329. text2.vertex = true;
  330. bg.insert(text2);
  331. var text3 = new mxCell('Tab', new mxGeometry(138.75, 0, 46.25, 15), s + 'anchor;align=right;fontColor=#FFFFFF;');
  332. text3.vertex = true;
  333. bg.insert(text3);
  334. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Scrollable Tab');
  335. }),
  336. this.createVertexTemplateEntry(s + 'scrollbars2;fillColor=#999999;strokeColor=none;',
  337. 56, 56, '', 'Scrollbars', null, null, dt + 'scrollbar scroll bar'),
  338. this.createVertexTemplateEntry(s5 + '1A1A1A;strokeColor=#1A1A1A;fontColor=#FFFFFF;',
  339. sizeX * 0.8, sizeY * 0.04, 'Normal', 'Section Header (Normal)', null, null, dt + 'section header normal dark'),
  340. this.createVertexTemplateEntry(s5 + '4D4D4D;strokeColor=#4D4D4D;fontColor=#FFFFFF;',
  341. sizeX * 0.8, sizeY * 0.04, 'Pressed', 'Section Header (Pressed)', null, null, dt + 'section header pressed dark'),
  342. this.createVertexTemplateEntry(s5 + '33b5e5;strokeColor=#33B5E5;fontColor=#FFFFFF;',
  343. sizeX * 0.8, sizeY * 0.04, 'Activated', 'Section Header (Activated)', null, null, dt + 'section header activated dark'),
  344. this.createVertexTemplateEntry(s5 + '006699;strokeColor=#33B5E5;fontColor=#FFFFFF;',
  345. sizeX * 0.8, sizeY * 0.04, 'Focused', 'Section Header (Focused)', null, null, dt + 'section header focused dark'),
  346. this.createVertexTemplateEntry(s5 + '006699;strokeColor=#33B5E5;fontColor=#B3B3B3;',
  347. sizeX * 0.8, sizeY * 0.04, 'Disabled focused', 'Section Header (Disabled focused)', null, null, dt + 'section header disabled focused dark'),
  348. this.createVertexTemplateEntry(s5 + '1A1A1A;strokeColor=#1A1A1A;fontColor=#B3B3B3;',
  349. sizeX * 0.8, sizeY * 0.04, 'Disabled', 'Section Header (Disabled)', null, null, dt + 'section header disabled dark'),
  350. this.createVertexTemplateEntry(s5 + 'FFFFFF;strokeColor=#FFFFFF;fontColor=#4D4D4D;',
  351. sizeX * 0.8, sizeY * 0.04, 'Normal', 'Section Header (Normal, Bright)', null, null, dt + 'section header normal bright'),
  352. this.createVertexTemplateEntry(s5 + 'f6f6f6;strokeColor=#f6f6f6;fontColor=#4D4D4D;',
  353. sizeX * 0.8, sizeY * 0.04, 'Pressed', 'Section Header (Pressed, Bright)', null, null, dt + 'section header pressed bright'),
  354. this.createVertexTemplateEntry(s5 + '33b5e5;strokeColor=#33B5E5;fontColor=#4D4D4D;',
  355. sizeX * 0.8, sizeY * 0.04, 'Activated', 'Section Header (Activated, Bright)', null, null, dt + 'section header activated bright'),
  356. this.createVertexTemplateEntry(s5 + '99e5ff;strokeColor=#33B5E5;fontColor=#4D4D4D;',
  357. sizeX * 0.8, sizeY * 0.04, 'Focused', 'Section Header (Focused, Bright)', null, null, dt + 'section header focused bright'),
  358. this.createVertexTemplateEntry(s5 + '99e5ff;strokeColor=#33B5E5;fontColor=#B3B3B3;',
  359. sizeX * 0.8, sizeY * 0.04, 'Disabled focused', 'Section Header (Disabled focused, Bright)', null, null, dt + 'section header disabled focused bright'),
  360. this.createVertexTemplateEntry(s5 + 'FFFFFF;strokeColor=#FFFFFF;fontColor=#B3B3B3;',
  361. sizeX * 0.8, sizeY * 0.04, 'Disabled', 'Section Header (Disabled, Bright)', null, null, dt + 'section header disabled bright'),
  362. this.createVertexTemplateEntry(s + 'spinner2;align=center;fillColor=#999999;strokeColor=#999999;verticalAlign=bottom',
  363. 110, 10, 'Item', 'Spinner Normal', null, null, dt + 'spinner normal'),
  364. this.createVertexTemplateEntry(s + 'spinner2;align=center;fillColor=#33b5e5;strokeColor=#33b5e5;verticalAlign=bottom',
  365. 110, 10, 'Item', 'Spinner Focused', null, null, dt + 'spinner focused'),
  366. this.addEntry(dt + 'spinner disabled focused', function()
  367. {
  368. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#207585;strokeColor=#33b5e5;');
  369. bg.vertex = true;
  370. var text1 = new mxCell('Item', new mxGeometry(3, 4, 110, 20), s + 'spinner2;fontStyle=1;fontColor=#ffffff;align=center;verticalAlign=middle;strokeColor=#999999;fillColor=#999999;');
  371. text1.vertex = true;
  372. bg.insert(text1);
  373. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Disabled Focused');
  374. }),
  375. this.addEntry(dt + 'spinner disabled focused light bright', function()
  376. {
  377. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#ccf2ff;strokeColor=#88c5f5;');
  378. bg.vertex = true;
  379. var text1 = new mxCell('Item', new mxGeometry(3, 4, 110, 20), s + 'spinner2;fontStyle=0;fontColor=#666666;align=center;verticalAlign=middle;strokeColor=#cccccc;fillColor=#cccccc;');
  380. text1.vertex = true;
  381. bg.insert(text1);
  382. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Disabled Focused Bright');
  383. }),
  384. this.addEntry(dt + 'spinner pressed', function()
  385. {
  386. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#33b5e5;strokeColor=#33b5e5;');
  387. bg.vertex = true;
  388. var text1 = new mxCell('Item', new mxGeometry(3, 4, 110, 20), s + 'spinner2;fontStyle=0;fontColor=#ffffff;align=center;verticalAlign=middle;strokeColor=#aaeeff;fillColor=#aaeeff;');
  389. text1.vertex = true;
  390. bg.insert(text1);
  391. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Pressed');
  392. }),
  393. this.addEntry(dt + 'spinner pressed light bright', function()
  394. {
  395. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#33b5e5;strokeColor=#33b5e5;');
  396. bg.vertex = true;
  397. var text1 = new mxCell('Item', new mxGeometry(3, 4, 110, 20), s + 'spinner2;fontStyle=0;fontColor=#ffffff;align=center;verticalAlign=middle;strokeColor=#666666;fillColor=#666666;');
  398. text1.vertex = true;
  399. bg.insert(text1);
  400. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Pressed Bright');
  401. }),
  402. this.addEntry(dt + 'split action bar dark', function()
  403. {
  404. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'split_action_bar;fillColor=#1A1A1A;');
  405. bg.vertex = true;
  406. var text1 = new mxCell('Split', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  407. text1.vertex = true;
  408. bg.insert(text1);
  409. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  410. text2.vertex = true;
  411. bg.insert(text2);
  412. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar');
  413. }),
  414. this.addEntry(dt + 'split action bar bright', function()
  415. {
  416. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'split_action_bar;fillColor=#E6E6E6;');
  417. bg.vertex = true;
  418. var text1 = new mxCell('Split', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;');
  419. text1.vertex = true;
  420. bg.insert(text1);
  421. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;');
  422. text2.vertex = true;
  423. bg.insert(text2);
  424. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar (Bright)');
  425. }),
  426. this.addEntry(dt + 'split action bar landscape dark', function()
  427. {
  428. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'split_action_bar_landscape;fillColor=#1A1A1A;');
  429. bg.vertex = true;
  430. var text1 = new mxCell('Split', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  431. text1.vertex = true;
  432. bg.insert(text1);
  433. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  434. text2.vertex = true;
  435. bg.insert(text2);
  436. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar Landscape');
  437. }),
  438. this.addEntry(dt + 'split action bar landscape bright', function()
  439. {
  440. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'split_action_bar_landscape;fillColor=#E6E6E6;');
  441. bg.vertex = true;
  442. var text1 = new mxCell('Split', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;');
  443. text1.vertex = true;
  444. bg.insert(text1);
  445. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;');
  446. text2.vertex = true;
  447. bg.insert(text2);
  448. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar Landscape (Bright)');
  449. }),
  450. this.createVertexTemplateEntry(s + 'statusBar;align=center;fillColor=#000000;strokeColor=#ffffff;fontColor=#ffffff;fontSize=10;',
  451. sizeX * 0.87, sizeY * 0.0375, '', 'Status bar (portrait)', null, null, dt + 'status bar portrait'),
  452. this.createVertexTemplateEntry(s + 'statusBar;align=center;fillColor=#000000;strokeColor=#ffffff;fontColor=#ffffff;fontSize=10;',
  453. sizeX * 1.517, sizeY * 0.0375, '', 'Status bar (landscape)', null, null, dt + 'status bar landscape'),
  454. this.createVertexTemplateEntry(s2 + 'switch_off;fillColor=#666666;',
  455. 80, 20, '', 'Switch Off', null, null, dt + 'switch off'),
  456. this.createVertexTemplateEntry(s2 + 'switch_off;fillColor=#E6E6E6;',
  457. 80, 20, '', 'Switch Off', null, null, dt + 'switch off'),
  458. this.createVertexTemplateEntry(s2 + 'switch_on;fillColor=#666666;',
  459. 80, 20, '', 'Switch On', null, null, dt + 'switch on'),
  460. this.createVertexTemplateEntry(s2 + 'switch_on;fillColor=#E6E6E6;',
  461. 80, 20, '', 'Switch On', null, null, dt + 'switch on'),
  462. this.addDataEntry(dt + 'tab tabulator bar dark', 185, 30, 'Tab Bar Dark',
  463. '3ZZfb8IgEMA/Da8NhdY/r+02n/bkkj1jQSGjxVCc7T79KMVpp81qnG6RhIS744D7cVwAOM2rmSZr/qwokwA/ApxqpUw7yquUSQkQFBTgB4AQtB2gpx5r6KxwTTQrzBAH1Dq8E7lhraZVlKaWXlEard7Yq6CGW0UIcMJNLv2w5ISqrRWgFSgpOaNesJZ1s0JerZroAlJQrQQNtGaZPVqi5+KD+blLIWWqpNJuRxy51qzhtt5ZClVYh8SfmGnDqt6oncqHPGMqZ0bXdsrWR9HMmMStG2dixb0bbmlBUrby6st1z9AOPMbTSPER0heysIrw2mRJkfEGVLJUhZn7bUIvH+BdujaUJPqRZDQK0JVYRj0s/yZLv2PtZi2E02mW9WXtNe6gOuJ/m1uJ/2PRwHgRs/iiohGdxlz7SxgPZnw54lFP4uO7KiLeYYqCm+bvuAdudI9wQzwJxjfFOxlQHjwgKdzr7D7ZQwBUNC9fqMLqS7VpTv87UMJdytWdmnb4QYDHeND5eKy4/845W+e39wk='),
  464. this.addDataEntry(dt + 'tab tabulator bar dark', 185, 30, 'Tab Bar Dark',
  465. '3ZZRb4MgEIB/Da9GQdvuVbf1aU9dsmdaaCFDaZCuul8/1OtqV81cOrulJCbcHQfcx3k5RJK0mBu6FU+acYXIAyKJ0do2s7RIuFII+5Ihco8w9t2H8GOPNait/pYantkhDrhxeKNqxxtNo8htqUCRW6Nf+YtkVjhFgEgsbKpgmgvK9N4JvhMYzQVnIDjLttohLTZVdB7NmNGSecbwlbtabBbyncPatVQq0Uqb+kQS1qPaoz76YMl05hxiuDE3lhe9UdcqCHnOdcqtKd2SPURRrZhFjZvgciPAjTS0fJo38ubT9cjQTQBjN1JyhvSZLp0iGJsszVaiAhWvdWYXcEwAcgvvuh5DSeJvSYYTD4/EMuxh+TdZ+hVrK2shNzsTdgz8xRn66zxI9B/rBSHLiEcX1YuwG3MJjzAdzPhyxJOenCc3VT/A4Q57V83faQ/c8BbhBmTmTa+KdzagPAAgJTsqZhsAk9WfL3Xm9LneVbf/HSjBIeXKk5rW7g38czz453iceOzkattJo/cB'),
  466. this.addDataEntry(dt + 'tab tabulator bar bright', 185, 30, 'Tab Bar Bright',
  467. '3ZZfb4MgEMA/Da9GQdvutW7r0566ZM+0YCFDaJCuuk8/QLr+cWYuXbulJCbcHSfc784TgPKynmm8Zk+KUAHQA0C5Vsq0s7LOqRAAxpwAdA8gjO0D4GOPNfHWeI01lWaIA2wd3rDY0FbTKirTiKCojFav9IUTw6wiAWjKTCnCtGKYqK0VYisQXDFKgmAta/eGsl656CIsiVacRFrTpT3aVM/5Ow1rCy5EroTSfkdE/XDv8FvvLFJJpwwnptrQujdqrwohz6gqqdGNXbINUbgVk6x1Y5SvWHBDLa0YV628+nTdM7STgPFrpKiD9BkvrCK5NFksl8yBmhZKmnnYJgnyAd6RH0NJwm9JpqMIXohl2sPyb6r0FOtx1abpMiuyvqo9yUHhx5k5qDv8r5OV7D82DYQWGe3FPwhz+jXmJiRhPJjx+YhHPYWPbqqJBIc7GF21fsc9cNNbhJugSTS+Kt7JgPYQAAkuu//5QwCEuy+fK2n1ldq40/8OlGRXcs1RTzu8IMRdPPDneKy4v85529Ft7wM='),
  468. this.addDataEntry(dt + 'tab tabulator bar bright', 185, 30, 'Tab Bar Bright',
  469. '3Zbfb8IgEMf/Gl6bFlp1r3abT3tyyZ5RUMhoMRRnu79+0J6zzjbr4nSLJE2473H8+HC9gEialTNDN+JJM64QeUAkNVrbppeVKVcK4VAyRO4RxqH7EH7s8Ua1N9xQw3M7JAA3AW9UbXmjNEJhKwVCYY1+5S+SWeGECJGpsJmCbiEo0ztnhM5gtBCcgeE8Gz9DVq796QKaM6MlC4zhS7e1qZnLdw5jV1KpVCtt6hUJr5ufo15678l17kXYMTeWl72nriU48ozrjFtTuSE7OIUfMUmaMMHlWkAYaWiFtGjs9WfogaHrAMZupOQE6TNdOCG6NFmaL4UHNV3p3M5hmQjsFt5R3YaSxN+SjEcBvhDLuIfl32TpV6ytrIXc7EzYS+AvT9Bf50KS/1gvCFkkPDmrXsTdmCu4hPFgxucjHvXkPLmp+gEBdzi4av6Oe+DGtwg3IpNgfFW8kwHlAQAp2VEx2wCY9H++1LnTC731u/8dKNE+5aqjmtZ+G4SnePDP8Tjz8JKrfUcPvQ8='),
  470. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#4D4D4D;',
  471. 174, 30, '', 'Textfield Disabled', null, null, dt + 'textfield disabled'),
  472. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#999999;',
  473. 174, 30, '', 'Textfield Normal', null, null, dt + 'textfield normal'),
  474. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#33b5e5;',
  475. 174, 30, '', 'Textfield Activated', null, null, dt + 'textfield activated'),
  476. this.createVertexTemplateEntry(s2 + 'text_insertion_point;',
  477. 20, 30, '', 'Text Insertion Point', null, null, dt + 'textfield insertion point'),
  478. this.createVertexTemplateEntry(s2 + 'textSelHandles;fillColor=#33b5e5;strokeColor=#0099cc;',
  479. sizeX * 0.8, sizeY * 0.1, '', 'Text Selection Handles', null, null, dt + 'text selection handle'),
  480. this.createVertexTemplateEntry(s2 + 'time_picker;',
  481. 150, 230, '', 'Time Picker (Bright)', null, null, dt + 'time picker bright'),
  482. this.createVertexTemplateEntry(s2 + 'time_picker_dark;',
  483. 150, 230, '', 'Time Picker (Dark)', null, null, dt + 'time picker dark'),
  484. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#33b5e5;',
  485. 50, 50, '', 'Color', null, null, dt + 'color'),
  486. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#0099cc;',
  487. 50, 50, '', 'Color', null, null, dt + 'color'),
  488. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#aa66cc;',
  489. 50, 50, '', 'Color', null, null, dt + 'color'),
  490. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#9933cc;',
  491. 50, 50, '', 'Color', null, null, dt + 'color'),
  492. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#99cc00;',
  493. 50, 50, '', 'Color', null, null, dt + 'color'),
  494. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#669900;',
  495. 50, 50, '', 'Color', null, null, dt + 'color'),
  496. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ffbb33;',
  497. 50, 50, '', 'Color', null, null, dt + 'color'),
  498. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ff8800;',
  499. 50, 50, '', 'Color', null, null, dt + 'color'),
  500. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ff4444;',
  501. 50, 50, '', 'Color', null, null, dt + 'color'),
  502. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#cc0000;',
  503. 50, 50, '', 'Color', null, null, dt + 'color')
  504. ];
  505. this.addPalette('android', mxResources.get('android'), false, mxUtils.bind(this, function(content)
  506. {
  507. for (var i = 0; i < fns.length; i++)
  508. {
  509. content.appendChild(fns[i](content));
  510. }
  511. }));
  512. };
  513. })();