Sidebar-Android.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  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. //default tags
  17. var dt = 'android ';
  18. var fns =
  19. [
  20. this.createVertexTemplateEntry(s2 + 'phone2;fillColor=#ffffff;strokeColor=#c0c0c0;',
  21. 200, 390, '', 'Phone', null, null, dt + 'phone mobile portrait'),
  22. this.createVertexTemplateEntry(s2 + 'phone2;fillColor=#ffffff;strokeColor=#c0c0c0;direction=south;',
  23. 390, 200, '', 'Phone (landscape)', null, null, dt + 'phone mobile landscape'),
  24. this.createVertexTemplateEntry(s2 + 'tab2;fillColor=#ffffff;strokeColor=#c0c0c0;',
  25. 472, 686, '', 'Tab', null, null, dt + 'tab tablet portrait'),
  26. this.createVertexTemplateEntry(s2 + 'tab2;fillColor=#ffffff;strokeColor=#c0c0c0;direction=north;',
  27. 686, 472, '', 'Tab (landscape)', null, null, dt + 'tab tablet landscape'),
  28. this.createVertexTemplateEntry(s + 'action_bar;fillColor=#1A1A1A;strokeColor=#c0c0c0;strokeWidth=2;fontColor=#FFFFFF;',
  29. 185, 30, '', 'Action Bar', null, null, dt + 'action bar dark portrait'),
  30. this.createVertexTemplateEntry(s + 'action_bar;fillColor=#E6E6E6;strokeColor=#c0c0c0;strokeWidth=2;',
  31. 185, 30, '', 'Action Bar (Bright)', null, null, dt + 'action bar bright portrait'),
  32. this.createVertexTemplateEntry(s + 'action_bar_landscape;fillColor=#1A1A1A;strokeColor=#c0c0c0;strokeWidth=2;fontColor=#FFFFFF;',
  33. 320, 30, '', 'Action Bar Landscape', null, null, dt + 'action bar landscape dark'),
  34. this.createVertexTemplateEntry(s + 'action_bar_landscape;fillColor=#E6E6E6;strokeColor=#c0c0c0;strokeWidth=2;',
  35. 320, 30, '', 'Action Bar Landscape (Bright)', null, null, dt + 'action bar bright landscape'),
  36. this.createVertexTemplateEntry(s4 + '666666;align=center;strokeColor=#4D4D4D;fontColor=#ffffff;',
  37. sizeX * 0.5, sizeY * 0.04, 'Normal', 'Button (Normal)', null, null, dt + 'button normal'),
  38. this.createVertexTemplateEntry(s4 + '666666;align=center;strokeColor=#999999;fontColor=#ffffff;',
  39. sizeX * 0.5, sizeY * 0.04, 'Focused', 'Button (Focused)', null, null, dt + 'button focused'),
  40. this.createVertexTemplateEntry(s4 + '999999;align=center;strokeColor=#666666;fontColor=#ffffff;strokeWidth=2;',
  41. sizeX * 0.5, sizeY * 0.04, 'Pressed', 'Button (Pressed)', null, null, dt + 'button pressed'),
  42. this.createVertexTemplateEntry(s4 + '333333;align=center;strokeColor=#4D4D4D;fontColor=#666666;',
  43. sizeX * 0.5, sizeY * 0.04, 'Focused disabled', 'Button (Focused, Disabled)', null, null, dt + 'button focused disabled'),
  44. this.createVertexTemplateEntry(s4 + '333333;align=center;strokeColor=#333333;fontColor=#666666;',
  45. sizeX * 0.5, sizeY * 0.04, 'Disabled', 'Button (Disabled)', null, null, dt + 'button disabled'),
  46. this.createVertexTemplateEntry(s4 + 'E6E6E6;align=center;strokeColor=#E6E6E6;fontColor=#333333;',
  47. sizeX * 0.5, sizeY * 0.04, 'Normal', 'Button (Normal, Bright)', null, null, dt + 'button normal bright'),
  48. this.createVertexTemplateEntry(s4 + 'E6E6E6;align=center;strokeColor=#B3B3B3;fontColor=#333333;',
  49. sizeX * 0.5, sizeY * 0.04, 'Focused', 'Button (Focused, Bright)', null, null, dt + 'button focused bright'),
  50. this.createVertexTemplateEntry(s4 + 'B3B3B3;align=center;strokeColor=#E6E6E6;fontColor=#333333;strokeWidth=2;',
  51. sizeX * 0.5, sizeY * 0.04, 'Pressed', 'Button (Pressed, Bright)', null, null, dt + 'button pressed bright'),
  52. this.createVertexTemplateEntry(s4 + 'F4F4F4;align=center;strokeColor=#E6E6E6;fontColor=#CCCCCC;',
  53. sizeX * 0.5, sizeY * 0.04, 'Focused disabled', 'Button (Focused, Disabled, Bright)', null, null, dt + 'button focused disabled bright'),
  54. this.createVertexTemplateEntry(s4 + 'F4F4F4;align=center;strokeColor=#F4F4F4;fontColor=#CCCCCC;',
  55. sizeX * 0.5, sizeY * 0.04, 'Disabled', 'Button (Disabled, Bright)', null, null, dt + 'button disabled bright'),
  56. this.addEntry(dt + 'checkboxes checkbox', function()
  57. {
  58. var bg = new mxCell('', new mxGeometry(0, 0, 165, 50), s + 'anchor;');
  59. bg.vertex = true;
  60. var button1 = new mxCell('Setting 1', new mxGeometry(0, 0, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  61. button1.vertex = true;
  62. bg.insert(button1);
  63. var anchor1 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  64. anchor1.vertex = true;
  65. button1.insert(anchor1);
  66. var radio1 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), s + 'rrect;rSize=0;resizable=0;strokeColor=#33b5e5;');
  67. radio1.vertex = true;
  68. anchor1.insert(radio1);
  69. var button2 = new mxCell('Setting 2', new mxGeometry(0, 12.5, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  70. button2.vertex = true;
  71. bg.insert(button2);
  72. var anchor2 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  73. anchor2.vertex = true;
  74. button2.insert(anchor2);
  75. var radio2 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), s + 'rrect;rSize=0;resizable=0;strokeColor=#33b5e5;');
  76. radio2.vertex = true;
  77. anchor2.insert(radio2);
  78. var button3 = new mxCell('Setting 3', new mxGeometry(0, 25, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  79. button3.vertex = true;
  80. bg.insert(button3);
  81. var anchor3 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  82. anchor3.vertex = true;
  83. button3.insert(anchor3);
  84. var radio3 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), s + 'checkbox;rSize=0;resizable=0;strokeColor=#33b5e5;');
  85. radio3.vertex = true;
  86. anchor3.insert(radio3);
  87. var button4 = new mxCell('Setting 4', new mxGeometry(0, 37.5, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  88. button4.vertex = true;
  89. bg.insert(button4);
  90. var anchor4 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  91. anchor4.vertex = true;
  92. button4.insert(anchor4);
  93. var radio4 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), s + 'rrect;rSize=0;resizable=0;strokeColor=#33b5e5;');
  94. radio4.vertex = true;
  95. anchor4.insert(radio4);
  96. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Checkboxes');
  97. }),
  98. this.addEntry(dt + 'radiobuttons radiobutton', function()
  99. {
  100. var bg = new mxCell('', new mxGeometry(0, 0, 165, 50), s + 'anchor;');
  101. bg.vertex = true;
  102. var button1 = new mxCell('Option 1', new mxGeometry(0, 0, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  103. button1.vertex = true;
  104. bg.insert(button1);
  105. var anchor1 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  106. anchor1.vertex = true;
  107. button1.insert(anchor1);
  108. var radio1 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), 'shape=ellipse;resizable=0;strokeColor=#33b5e5;html=1;');
  109. radio1.vertex = true;
  110. anchor1.insert(radio1);
  111. var button2 = new mxCell('Option 2', new mxGeometry(0, 12.5, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  112. button2.vertex = true;
  113. bg.insert(button2);
  114. var anchor2 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  115. anchor2.vertex = true;
  116. button2.insert(anchor2);
  117. var radio2 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), 'shape=ellipse;resizable=0;strokeColor=#33b5e5;html=1;');
  118. radio2.vertex = true;
  119. anchor2.insert(radio2);
  120. var button3 = new mxCell('Option 3', new mxGeometry(0, 25, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  121. button3.vertex = true;
  122. bg.insert(button3);
  123. var anchor3 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  124. anchor3.vertex = true;
  125. button3.insert(anchor3);
  126. var radio3 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), 'shape=ellipse;resizable=0;strokeColor=#33b5e5;fillColor=#33b5e5;html=1;');
  127. radio3.vertex = true;
  128. anchor3.insert(radio3);
  129. var button4 = new mxCell('Option 4', new mxGeometry(0, 37.5, 165, 12.5), s + 'anchor;align=left;spacingLeft=10;fontSize=8;fontColor=#33b5e5;');
  130. button4.vertex = true;
  131. bg.insert(button4);
  132. var anchor4 = new mxCell('', new mxGeometry(0, 6, 0, 0), s + 'anchor;');
  133. anchor4.vertex = true;
  134. button4.insert(anchor4);
  135. var radio4 = new mxCell('', new mxGeometry(2.5, -2.5, 5, 5), 'shape=ellipse;resizable=0;strokeColor=#33b5e5;html=1;');
  136. radio4.vertex = true;
  137. anchor4.insert(radio4);
  138. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Radiobuttons');
  139. }),
  140. this.createVertexTemplateEntry(s2 + 'contact_badge_focused;', 40, 40, '', 'Contact Badge Focused', null, null, dt + 'contact badge focused'),
  141. this.createVertexTemplateEntry(s2 + 'contact_badge_focused;', 60, 60, '', 'Contact Badge Focused', null, null, dt + 'contact badge focused'),
  142. this.createVertexTemplateEntry(s2 + 'contact_badge_normal;', 40, 40, '', 'Contact Badge Normal', null, null, dt + 'contact badge normal'),
  143. this.createVertexTemplateEntry(s2 + 'contact_badge_normal;', 60, 60, '', 'Contact Badge Normal', null, null, dt + 'contact badge normal'),
  144. this.createVertexTemplateEntry(s2 + 'contact_badge_pressed;', 40, 40, '', 'Contact Badge Pressed', null, null, dt + 'contact badge pressed'),
  145. this.createVertexTemplateEntry(s2 + 'contact_badge_pressed;', 60, 60, '', 'Contact Badge Pressed', null, null, dt + 'contact badge pressed'),
  146. this.addEntry(dt + 'contextual action bar dark portrait', function()
  147. {
  148. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'contextual_action_bar;fillColor=#002E3E;');
  149. bg.vertex = true;
  150. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), s + 'anchor;align=left;fontStyle=1;fontColor=#ffffff;');
  151. text1.vertex = true;
  152. bg.insert(text1);
  153. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar');
  154. }),
  155. this.addEntry(dt + 'contextual action bar bright portrait', function()
  156. {
  157. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'contextual_action_bar_white;fillColor=#E6E6E6;');
  158. bg.vertex = true;
  159. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), s + 'anchor;align=left;fontStyle=1;');
  160. text1.vertex = true;
  161. bg.insert(text1);
  162. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar (Bright)');
  163. }),
  164. this.addEntry(dt + 'contextual action bar landscape dark', function()
  165. {
  166. var bg = new mxCell('', new mxGeometry(0, 0, 320, 30), s + 'contextual_action_bar_landscape;fillColor=#002E3E;');
  167. bg.vertex = true;
  168. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), s + 'anchor;align=left;fontStyle=1;fontColor=#ffffff;');
  169. text1.vertex = true;
  170. bg.insert(text1);
  171. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar Landscape');
  172. }),
  173. this.addEntry(dt + 'contextual action bar landscape bright', function()
  174. {
  175. var bg = new mxCell('', new mxGeometry(0, 0, 320, 30), s + 'contextual_action_bar_landscape_white;fillColor=#E6E6E6;');
  176. bg.vertex = true;
  177. var text1 = new mxCell('Action', new mxGeometry(40, 0, 100, 30), s + 'anchor;align=left;fontStyle=1;');
  178. text1.vertex = true;
  179. bg.insert(text1);
  180. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Action Bar Landscape (Bright)');
  181. }),
  182. this.addEntry(dt + 'contextual split action bar dark', function()
  183. {
  184. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'contextual_split_action_bar;fillColor=#002E3E;fontColor=#FFFFFF;');
  185. bg.vertex = true;
  186. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  187. text1.vertex = true;
  188. bg.insert(text1);
  189. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  190. text2.vertex = true;
  191. bg.insert(text2);
  192. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar');
  193. }),
  194. this.addEntry(dt + 'contextual split action bar bright', function()
  195. {
  196. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'contextual_split_action_bar_white;fillColor=#E6E6E6;');
  197. bg.vertex = true;
  198. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;');
  199. text1.vertex = true;
  200. bg.insert(text1);
  201. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;');
  202. text2.vertex = true;
  203. bg.insert(text2);
  204. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar (Bright)');
  205. }),
  206. this.addEntry(dt + 'contextual split action bar landscape dark', function()
  207. {
  208. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'contextual_split_action_bar_landscape;fillColor=#002E3E;fontColor=#FFFFFF;');
  209. bg.vertex = true;
  210. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  211. text1.vertex = true;
  212. bg.insert(text1);
  213. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  214. text2.vertex = true;
  215. bg.insert(text2);
  216. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar Landscape');
  217. }),
  218. this.addEntry(dt + 'contextual split action bar landscape bright', function()
  219. {
  220. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'contextual_split_action_bar_landscape_white;fillColor=#E6E6E6;');
  221. bg.vertex = true;
  222. var text1 = new mxCell('Contextual', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;');
  223. text1.vertex = true;
  224. bg.insert(text1);
  225. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;');
  226. text2.vertex = true;
  227. bg.insert(text2);
  228. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Contextual Split Action Bar Landscape (Bright)');
  229. }),
  230. this.createVertexTemplateEntry(s2 + 'indeterminate_progress_bar;strokeColor=#33B5E5;',
  231. 149, 5, '', 'Indeterminate Progress Bar', null, null, dt + 'indeterminate progress bar'),
  232. this.createVertexTemplateEntry(s2 + 'indeterminateSpinner;',
  233. 50, 50, '', 'Indeterminate Spinner', null, null, dt + 'indeterminate spinner'),
  234. this.createVertexTemplateEntry(s2 + 'keyboard;',
  235. 185, 100, '', 'Keyboard', null, null, dt + 'keyboard'),
  236. this.addEntry(dt + 'menu bar', function()
  237. {
  238. var bg = new mxCell('', new mxGeometry(0, 0, 185, 50), s + 'rrect;rSize=0;strokeColor=#888888;fillColor=#444444;');
  239. bg.vertex = true;
  240. var button1 = new mxCell('Menu Item 1', new mxGeometry(0, 0, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#888888;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  241. button1.vertex = true;
  242. bg.insert(button1);
  243. var button2 = new mxCell('Menu Item 2', new mxGeometry(0, 12.5, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#888888;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  244. button2.vertex = true;
  245. bg.insert(button2);
  246. var button3 = new mxCell('Menu Item 3', new mxGeometry(0, 25, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#888888;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  247. button3.vertex = true;
  248. bg.insert(button3);
  249. var button4 = new mxCell('Menu Item 4', new mxGeometry(0, 37.5, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#888888;align=left;spacingLeft=10;fontSize=8;fontColor=#ffffff;');
  250. button4.vertex = true;
  251. bg.insert(button4);
  252. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Menu bar');
  253. }),
  254. this.addEntry(dt + 'menu bar', function()
  255. {
  256. var bg = new mxCell('', new mxGeometry(0, 0, 185, 50), s + 'rrect;rSize=0;strokeColor=#eeeeee;fillColor=#ffffff;gradientColor=none;');
  257. bg.vertex = true;
  258. var button1 = new mxCell('Menu Item 1', new mxGeometry(0, 0, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#eeeeee;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  259. button1.vertex = true;
  260. bg.insert(button1);
  261. var button2 = new mxCell('Menu Item 2', new mxGeometry(0, 12.5, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#eeeeee;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  262. button2.vertex = true;
  263. bg.insert(button2);
  264. var button3 = new mxCell('Menu Item 3', new mxGeometry(0, 25, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#eeeeee;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  265. button3.vertex = true;
  266. bg.insert(button3);
  267. var button4 = new mxCell('Menu Item 4', new mxGeometry(0, 37.5, 185, 12.5), s + 'rrect;rSize=0;fillColor=none;strokeColor=#eeeeee;align=left;spacingLeft=10;fontSize=8;fontColor=#333333;');
  268. button4.vertex = true;
  269. bg.insert(button4);
  270. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Menu bar');
  271. }),
  272. this.createVertexTemplateEntry(s6 + 'navigation_bar_1;fillColor=#1A1A1A;strokeColor=#999999;',
  273. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar portrait horizontal'),
  274. this.createVertexTemplateEntry(s6 + 'navigation_bar_1_landscape;fillColor=#1A1A1A;strokeColor=#999999;',
  275. 320, 30, '', 'Navigation Bar Landscape', null, null, dt + 'navigation bar landscape horizontal'),
  276. this.createVertexTemplateEntry(s6 + 'navigation_bar_1_vertical;fillColor=#1A1A1A;strokeColor=#999999;',
  277. 30, 320, '', 'Navigation Bar Vertical', null, null, dt + 'navigation bar vertical'),
  278. this.createVertexTemplateEntry(s6 + 'navigation_bar_2;fillColor=#1A1A1A;strokeColor=#999999;',
  279. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  280. this.createVertexTemplateEntry(s6 + 'navigation_bar_3;fillColor=#1A1A1A;strokeColor=#999999;',
  281. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar portrait horizontal'),
  282. this.createVertexTemplateEntry(s6 + 'navigation_bar_3_landscape;fillColor=#1A1A1A;strokeColor=#999999;',
  283. 320, 30, '', 'Navigation Bar Landscape', null, null, dt + 'navigation bar landscape horizontal'),
  284. this.createVertexTemplateEntry(s6 + 'navigation_bar_4;fillColor=#1A1A1A;strokeColor=#999999;',
  285. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  286. this.createVertexTemplateEntry(s6 + 'navigation_bar_5;fillColor=#1A1A1A;strokeColor=#999999;',
  287. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  288. this.createVertexTemplateEntry(s6 + 'navigation_bar_5_vertical;fillColor=#1A1A1A;strokeColor=#999999;',
  289. 30, 320, '', 'Navigation Bar Vertical', null, null, dt + 'navigation bar vertical'),
  290. this.createVertexTemplateEntry(s6 + 'navigation_bar_6;fillColor=#1A1A1A;strokeColor=#999999;',
  291. 185, 30, '', 'Navigation Bar', null, null, dt + 'navigation bar horizontal'),
  292. this.createVertexTemplateEntry(s2 + 'progressBar;strokeColor=#33b5e5;dx1=0.8;dx2=0.6;strokeWidth=2;',
  293. 185, 5, '', 'Progress Bar', null, null, dt + 'progress bar'),
  294. this.createVertexTemplateEntry(s2 + 'progressScrubberDisabled;dx=0.3;fillColor=#33b5e5;',
  295. 185, 16, '', 'Progress Scrubber Disabled', null, null, dt + 'progress scrubber disabled'),
  296. this.createVertexTemplateEntry(s2 + 'progressScrubberFocused;dx=0.3;fillColor=#33b5e5;',
  297. 185, 16, '', 'Progress Scrubber Focused', null, null, dt + 'progress scrubber focused'),
  298. this.createVertexTemplateEntry(s2 + 'progressScrubberPressed;dx=0.3;fillColor=#33b5e5;',
  299. 185, 16, '', 'Progress Scrubber Pressed', null, null, dt + 'progress scrubber pressed'),
  300. this.createVertexTemplateEntry(s2 + 'quickscroll2;dy=0.5;fillColor=#33b5e5;strokeColor=#66D5F5;',
  301. 58, 320, '', 'Quickscroll', null, null, dt + 'quickscroll quick scroll'),
  302. this.createVertexTemplateEntry(s2 + 'quickscroll3;dy=0.5;fillColor=#33b5e5;strokeColor=#66D5F5;',
  303. 6, 320, '', 'Quickscroll', null, null, dt + 'quickscroll quick scroll'),
  304. this.addEntry(dt + 'quick contact', function()
  305. {
  306. var bg = new mxCell('', new mxGeometry(0, 0, 150, 165), s + 'quick_contact;');
  307. bg.vertex = true;
  308. var text1 = new mxCell('Name', new mxGeometry(0, 65, 150, 18), s + 'anchor;rSize=0;fontStyle=1;fontColor=#FFFFFF;');
  309. text1.vertex = true;
  310. bg.insert(text1);
  311. var text2 = new mxCell('Item 1', new mxGeometry(0, 108, 120, 28), s + 'anchor;rSize=0;align=left;spacingLeft=10;');
  312. text2.vertex = true;
  313. bg.insert(text2);
  314. var text3 = new mxCell('Item 2', new mxGeometry(0, 136, 120, 28), s + 'anchor;rSize=0;align=left;spacingLeft=10;');
  315. text3.vertex = true;
  316. bg.insert(text3);
  317. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Quick Contact');
  318. }),
  319. this.addEntry(dt + 'scrollable tab scroll', function()
  320. {
  321. var bg = new mxCell('', new mxGeometry(0, 0, 185, 15), s + 'rrect;rSize=0;fillColor=#444444;strokeColor=none;');
  322. bg.vertex = true;
  323. var text1 = new mxCell('One', new mxGeometry(0, 0, 46.25, 15), s + 'anchor;align=left;fontColor=#FFFFFF;');
  324. text1.vertex = true;
  325. bg.insert(text1);
  326. var text2 = new mxCell('Tab Two', new mxGeometry(46.25, 0, 92.5, 15), s + 'anchor;fontColor=#FFFFFF;');
  327. text2.vertex = true;
  328. bg.insert(text2);
  329. var text3 = new mxCell('Tab', new mxGeometry(138.75, 0, 46.25, 15), s + 'anchor;align=right;fontColor=#FFFFFF;');
  330. text3.vertex = true;
  331. bg.insert(text3);
  332. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Scrollable Tab');
  333. }),
  334. this.createVertexTemplateEntry(s + 'scrollbars2;fillColor=#999999;strokeColor=none;',
  335. 56, 56, '', 'Scrollbars', null, null, dt + 'scrollbar scroll bar'),
  336. this.createVertexTemplateEntry(s5 + '1A1A1A;strokeColor=#1A1A1A;fontColor=#FFFFFF;',
  337. sizeX * 0.8, sizeY * 0.04, 'Normal', 'Section Header (Normal)', null, null, dt + 'section header normal dark'),
  338. this.createVertexTemplateEntry(s5 + '4D4D4D;strokeColor=#4D4D4D;fontColor=#FFFFFF;',
  339. sizeX * 0.8, sizeY * 0.04, 'Pressed', 'Section Header (Pressed)', null, null, dt + 'section header pressed dark'),
  340. this.createVertexTemplateEntry(s5 + '33b5e5;strokeColor=#33B5E5;fontColor=#FFFFFF;',
  341. sizeX * 0.8, sizeY * 0.04, 'Activated', 'Section Header (Activated)', null, null, dt + 'section header activated dark'),
  342. this.createVertexTemplateEntry(s5 + '006699;strokeColor=#33B5E5;fontColor=#FFFFFF;',
  343. sizeX * 0.8, sizeY * 0.04, 'Focused', 'Section Header (Focused)', null, null, dt + 'section header focused dark'),
  344. this.createVertexTemplateEntry(s5 + '006699;strokeColor=#33B5E5;fontColor=#B3B3B3;',
  345. sizeX * 0.8, sizeY * 0.04, 'Disabled focused', 'Section Header (Disabled focused)', null, null, dt + 'section header disabled focused dark'),
  346. this.createVertexTemplateEntry(s5 + '1A1A1A;strokeColor=#1A1A1A;fontColor=#B3B3B3;',
  347. sizeX * 0.8, sizeY * 0.04, 'Disabled', 'Section Header (Disabled)', null, null, dt + 'section header disabled dark'),
  348. this.createVertexTemplateEntry(s5 + 'FFFFFF;strokeColor=#FFFFFF;fontColor=#4D4D4D;',
  349. sizeX * 0.8, sizeY * 0.04, 'Normal', 'Section Header (Normal, Bright)', null, null, dt + 'section header normal bright'),
  350. this.createVertexTemplateEntry(s5 + 'f6f6f6;strokeColor=#f6f6f6;fontColor=#4D4D4D;',
  351. sizeX * 0.8, sizeY * 0.04, 'Pressed', 'Section Header (Pressed, Bright)', null, null, dt + 'section header pressed bright'),
  352. this.createVertexTemplateEntry(s5 + '33b5e5;strokeColor=#33B5E5;fontColor=#4D4D4D;',
  353. sizeX * 0.8, sizeY * 0.04, 'Activated', 'Section Header (Activated, Bright)', null, null, dt + 'section header activated bright'),
  354. this.createVertexTemplateEntry(s5 + '99e5ff;strokeColor=#33B5E5;fontColor=#4D4D4D;',
  355. sizeX * 0.8, sizeY * 0.04, 'Focused', 'Section Header (Focused, Bright)', null, null, dt + 'section header focused bright'),
  356. this.createVertexTemplateEntry(s5 + '99e5ff;strokeColor=#33B5E5;fontColor=#B3B3B3;',
  357. sizeX * 0.8, sizeY * 0.04, 'Disabled focused', 'Section Header (Disabled focused, Bright)', null, null, dt + 'section header disabled focused bright'),
  358. this.createVertexTemplateEntry(s5 + 'FFFFFF;strokeColor=#FFFFFF;fontColor=#B3B3B3;',
  359. sizeX * 0.8, sizeY * 0.04, 'Disabled', 'Section Header (Disabled, Bright)', null, null, dt + 'section header disabled bright'),
  360. this.createVertexTemplateEntry(s + 'spinner2;align=center;fillColor=#999999;strokeColor=#999999;verticalAlign=bottom',
  361. 110, 10, 'Item', 'Spinner Normal', null, null, dt + 'spinner normal'),
  362. this.createVertexTemplateEntry(s + 'spinner2;align=center;fillColor=#33b5e5;strokeColor=#33b5e5;verticalAlign=bottom',
  363. 110, 10, 'Item', 'Spinner Focused', null, null, dt + 'spinner focused'),
  364. this.addEntry(dt + 'spinner disabled focused', function()
  365. {
  366. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#207585;strokeColor=#33b5e5;');
  367. bg.vertex = true;
  368. 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;');
  369. text1.vertex = true;
  370. bg.insert(text1);
  371. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Disabled Focused');
  372. }),
  373. this.addEntry(dt + 'spinner disabled focused light bright', function()
  374. {
  375. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#ccf2ff;strokeColor=#88c5f5;');
  376. bg.vertex = true;
  377. 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;');
  378. text1.vertex = true;
  379. bg.insert(text1);
  380. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Disabled Focused Bright');
  381. }),
  382. this.addEntry(dt + 'spinner pressed', function()
  383. {
  384. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#33b5e5;strokeColor=#33b5e5;');
  385. bg.vertex = true;
  386. 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;');
  387. text1.vertex = true;
  388. bg.insert(text1);
  389. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Pressed');
  390. }),
  391. this.addEntry(dt + 'spinner pressed light bright', function()
  392. {
  393. var bg = new mxCell('', new mxGeometry(0, 0, 117, 28), s + 'rect;rounded=1;fillColor=#33b5e5;strokeColor=#33b5e5;');
  394. bg.vertex = true;
  395. 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;');
  396. text1.vertex = true;
  397. bg.insert(text1);
  398. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Spinner Pressed Bright');
  399. }),
  400. this.addEntry(dt + 'split action bar dark', function()
  401. {
  402. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'split_action_bar;fillColor=#1A1A1A;');
  403. bg.vertex = true;
  404. var text1 = new mxCell('Split', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  405. text1.vertex = true;
  406. bg.insert(text1);
  407. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  408. text2.vertex = true;
  409. bg.insert(text2);
  410. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar');
  411. }),
  412. this.addEntry(dt + 'split action bar bright', function()
  413. {
  414. var bg = new mxCell('', new mxGeometry(0, 0, 185, 70), s + 'split_action_bar;fillColor=#E6E6E6;');
  415. bg.vertex = true;
  416. var text1 = new mxCell('Split', new mxGeometry(0, 0, 185, 30), s + 'anchor;fontStyle=1;');
  417. text1.vertex = true;
  418. bg.insert(text1);
  419. var text2 = new mxCell('Action', new mxGeometry(0, 40, 185, 30), s + 'anchor;fontStyle=1;');
  420. text2.vertex = true;
  421. bg.insert(text2);
  422. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar (Bright)');
  423. }),
  424. this.addEntry(dt + 'split action bar landscape dark', function()
  425. {
  426. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'split_action_bar_landscape;fillColor=#1A1A1A;');
  427. bg.vertex = true;
  428. var text1 = new mxCell('Split', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  429. text1.vertex = true;
  430. bg.insert(text1);
  431. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  432. text2.vertex = true;
  433. bg.insert(text2);
  434. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar Landscape');
  435. }),
  436. this.addEntry(dt + 'split action bar landscape bright', function()
  437. {
  438. var bg = new mxCell('', new mxGeometry(0, 0, 320, 70), s + 'split_action_bar_landscape;fillColor=#E6E6E6;');
  439. bg.vertex = true;
  440. var text1 = new mxCell('Split', new mxGeometry(0, 0, 320, 30), s + 'anchor;fontStyle=1;');
  441. text1.vertex = true;
  442. bg.insert(text1);
  443. var text2 = new mxCell('Action', new mxGeometry(0, 40, 320, 30), s + 'anchor;fontStyle=1;');
  444. text2.vertex = true;
  445. bg.insert(text2);
  446. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Split Action Bar Landscape (Bright)');
  447. }),
  448. this.createVertexTemplateEntry(s + 'statusBar;align=center;fillColor=#000000;strokeColor=#ffffff;fontColor=#ffffff;fontSize=10;',
  449. sizeX * 0.87, sizeY * 0.0375, '', 'Status bar (portrait)', null, null, dt + 'status bar portrait'),
  450. this.createVertexTemplateEntry(s + 'statusBar;align=center;fillColor=#000000;strokeColor=#ffffff;fontColor=#ffffff;fontSize=10;',
  451. sizeX * 1.517, sizeY * 0.0375, '', 'Status bar (landscape)', null, null, dt + 'status bar landscape'),
  452. this.createVertexTemplateEntry(s2 + 'switch_off;fillColor=#666666;',
  453. 80, 20, '', 'Switch Off', null, null, dt + 'switch off'),
  454. this.createVertexTemplateEntry(s2 + 'switch_off;fillColor=#E6E6E6;',
  455. 80, 20, '', 'Switch Off', null, null, dt + 'switch off'),
  456. this.createVertexTemplateEntry(s2 + 'switch_on;fillColor=#666666;',
  457. 80, 20, '', 'Switch On', null, null, dt + 'switch on'),
  458. this.createVertexTemplateEntry(s2 + 'switch_on;fillColor=#E6E6E6;',
  459. 80, 20, '', 'Switch On', null, null, dt + 'switch on'),
  460. this.addEntry(dt + 'tab tabulator bar dark', function()
  461. {
  462. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'rrect;rSize=0;fillColor=#444444;strokeColor=none;');
  463. bg.vertex = true;
  464. var text1 = new mxCell('Tab 1', new mxGeometry(0, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  465. text1.vertex = true;
  466. bg.insert(text1);
  467. var text2 = new mxCell('Tab 2', new mxGeometry(46.25, 0, 46.25, 30), s + 'rrect;rSize=0;fontStyle=1;fillColor=#0099cc;strokeColor=none;fontColor=#ffffff;');
  468. text2.vertex = true;
  469. bg.insert(text2);
  470. var button1 = new mxCell('', new mxGeometry(0, 27, 46.25, 3), s + 'rrect;rSize=0;fillColor=#33b5e5;strokeColor=none;');
  471. button1.vertex = true;
  472. text2.insert(button1);
  473. var text3 = new mxCell('Tab 3', new mxGeometry(92.5, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  474. text3.vertex = true;
  475. bg.insert(text3);
  476. var text4 = new mxCell('Tab 4', new mxGeometry(138.75, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  477. text4.vertex = true;
  478. bg.insert(text4);
  479. var line1 = new mxCell('', new mxGeometry(131.5, 5, 10, 20), 'shape=line;strokeColor=#ffffff;direction=south;');
  480. line1.vertex = true;
  481. bg.insert(line1);
  482. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Tab Bar Dark');
  483. }),
  484. this.addEntry(dt + 'tab tabulator bar dark', function()
  485. {
  486. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'rrect;rSize=0;fillColor=#444444;strokeColor=none;');
  487. bg.vertex = true;
  488. var text1 = new mxCell('Tab 1', new mxGeometry(0, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  489. text1.vertex = true;
  490. bg.insert(text1);
  491. var text2 = new mxCell('Tab 2', new mxGeometry(46.25, 0, 46.25, 30), s + 'rrect;rSize=0;fontStyle=1;fillColor=none;strokeColor=none;fontColor=#ffffff;');
  492. text2.vertex = true;
  493. bg.insert(text2);
  494. var button1 = new mxCell('', new mxGeometry(0, 27, 46.25, 3), s + 'rrect;rSize=0;fillColor=#33b5e5;strokeColor=none;');
  495. button1.vertex = true;
  496. text2.insert(button1);
  497. var text3 = new mxCell('Tab 3', new mxGeometry(92.5, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  498. text3.vertex = true;
  499. bg.insert(text3);
  500. var text4 = new mxCell('Tab 4', new mxGeometry(138.75, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#ffffff;');
  501. text4.vertex = true;
  502. bg.insert(text4);
  503. var line1 = new mxCell('', new mxGeometry(131.5, 5, 10, 20), 'shape=line;strokeColor=#ffffff;direction=south;');
  504. line1.vertex = true;
  505. bg.insert(line1);
  506. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Tab Bar Dark');
  507. }),
  508. this.addEntry(dt + 'tab tabulator bar bright', function()
  509. {
  510. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'rrect;rSize=0;fillColor=#eeeeee;strokeColor=none;');
  511. bg.vertex = true;
  512. var text1 = new mxCell('Tab 1', new mxGeometry(0, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  513. text1.vertex = true;
  514. bg.insert(text1);
  515. var text2 = new mxCell('Tab 2', new mxGeometry(46.25, 0, 46.25, 30), s + 'rrect;rSize=0;fontStyle=1;fillColor=#44c5f5;strokeColor=none;fontColor=#ffffff;');
  516. text2.vertex = true;
  517. bg.insert(text2);
  518. var button1 = new mxCell('', new mxGeometry(0, 27, 46.25, 3), s + 'rrect;rSize=0;fillColor=#33b5e5;strokeColor=none;');
  519. button1.vertex = true;
  520. text2.insert(button1);
  521. var text3 = new mxCell('Tab 3', new mxGeometry(92.5, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  522. text3.vertex = true;
  523. bg.insert(text3);
  524. var text4 = new mxCell('Tab 4', new mxGeometry(138.75, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  525. text4.vertex = true;
  526. bg.insert(text4);
  527. var line1 = new mxCell('', new mxGeometry(131.5, 5, 10, 20), 'shape=line;strokeColor=#666666;direction=south;');
  528. line1.vertex = true;
  529. bg.insert(line1);
  530. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Tab Bar Bright');
  531. }),
  532. this.addEntry(dt + 'tab tabulator bar bright', function()
  533. {
  534. var bg = new mxCell('', new mxGeometry(0, 0, 185, 30), s + 'rrect;rSize=0;fillColor=#eeeeee;strokeColor=none;');
  535. bg.vertex = true;
  536. var text1 = new mxCell('Tab 1', new mxGeometry(0, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  537. text1.vertex = true;
  538. bg.insert(text1);
  539. var text2 = new mxCell('Tab 2', new mxGeometry(46.25, 0, 46.25, 30), s + 'rrect;rSize=0;fontStyle=1;fillColor=none;strokeColor=none;fontColor=#666666;');
  540. text2.vertex = true;
  541. bg.insert(text2);
  542. var button1 = new mxCell('', new mxGeometry(0, 27, 46.25, 3), s + 'rrect;rSize=0;fillColor=#33b5e5;strokeColor=none;');
  543. button1.vertex = true;
  544. text2.insert(button1);
  545. var text3 = new mxCell('Tab 3', new mxGeometry(92.5, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  546. text3.vertex = true;
  547. bg.insert(text3);
  548. var text4 = new mxCell('Tab 4', new mxGeometry(138.75, 0, 46.25, 30), s + 'anchor;fontStyle=1;fontColor=#666666;');
  549. text4.vertex = true;
  550. bg.insert(text4);
  551. var line1 = new mxCell('', new mxGeometry(131.5, 5, 10, 20), 'shape=line;strokeColor=#666666;direction=south;');
  552. line1.vertex = true;
  553. bg.insert(line1);
  554. return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Tab Bar Bright');
  555. }),
  556. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#4D4D4D;',
  557. 174, 30, '', 'Textfield Disabled', null, null, dt + 'textfield disabled'),
  558. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#999999;',
  559. 174, 30, '', 'Textfield Normal', null, null, dt + 'textfield normal'),
  560. this.createVertexTemplateEntry(s + 'textfield;align=center;strokeColor=#33b5e5;',
  561. 174, 30, '', 'Textfield Activated', null, null, dt + 'textfield activated'),
  562. this.createVertexTemplateEntry(s2 + 'text_insertion_point;',
  563. 20, 30, '', 'Text Insertion Point', null, null, dt + 'textfield insertion point'),
  564. this.createVertexTemplateEntry(s2 + 'textSelHandles;fillColor=#33b5e5;strokeColor=#0099cc;',
  565. sizeX * 0.8, sizeY * 0.1, '', 'Text Selection Handles', null, null, dt + 'text selection handle'),
  566. this.createVertexTemplateEntry(s2 + 'time_picker;',
  567. 150, 230, '', 'Time Picker (Bright)', null, null, dt + 'time picker bright'),
  568. this.createVertexTemplateEntry(s2 + 'time_picker_dark;',
  569. 150, 230, '', 'Time Picker (Dark)', null, null, dt + 'time picker dark'),
  570. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#33b5e5;',
  571. 50, 50, '', 'Color', null, null, dt + 'color'),
  572. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#0099cc;',
  573. 50, 50, '', 'Color', null, null, dt + 'color'),
  574. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#aa66cc;',
  575. 50, 50, '', 'Color', null, null, dt + 'color'),
  576. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#9933cc;',
  577. 50, 50, '', 'Color', null, null, dt + 'color'),
  578. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#99cc00;',
  579. 50, 50, '', 'Color', null, null, dt + 'color'),
  580. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#669900;',
  581. 50, 50, '', 'Color', null, null, dt + 'color'),
  582. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ffbb33;',
  583. 50, 50, '', 'Color', null, null, dt + 'color'),
  584. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ff8800;',
  585. 50, 50, '', 'Color', null, null, dt + 'color'),
  586. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#ff4444;',
  587. 50, 50, '', 'Color', null, null, dt + 'color'),
  588. this.createVertexTemplateEntry(s3 + 'rect;fillColor=#cc0000;',
  589. 50, 50, '', 'Color', null, null, dt + 'color')
  590. ];
  591. this.addPalette('android', mxResources.get('android'), false, mxUtils.bind(this, function(content)
  592. {
  593. for (var i = 0; i < fns.length; i++)
  594. {
  595. content.appendChild(fns[i](content));
  596. }
  597. }));
  598. };
  599. })();