You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

895 lines
19 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="JsDoc Toolkit" />
  7. <title>JsDoc Reference - links.Timeline.ItemBox</title>
  8. <style type="text/css">
  9. /* default.css */
  10. body
  11. {
  12. font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
  13. width: 800px;
  14. }
  15. .header
  16. {
  17. clear: both;
  18. background-color: #ccc;
  19. padding: 8px;
  20. }
  21. h1
  22. {
  23. font-size: 150%;
  24. font-weight: bold;
  25. padding: 0;
  26. margin: 1em 0 0 .3em;
  27. }
  28. hr
  29. {
  30. border: none 0;
  31. border-top: 1px solid #7F8FB1;
  32. height: 1px;
  33. }
  34. pre.code
  35. {
  36. display: block;
  37. padding: 8px;
  38. border: 1px dashed #ccc;
  39. }
  40. #index
  41. {
  42. margin-top: 24px;
  43. float: left;
  44. width: 160px;
  45. position: absolute;
  46. left: 8px;
  47. background-color: #F3F3F3;
  48. padding: 8px;
  49. }
  50. #content
  51. {
  52. margin-left: 190px;
  53. width: 600px;
  54. }
  55. .classList
  56. {
  57. list-style-type: none;
  58. padding: 0;
  59. margin: 0 0 0 8px;
  60. font-family: arial, sans-serif;
  61. font-size: 1em;
  62. overflow: auto;
  63. }
  64. .classList li
  65. {
  66. padding: 0;
  67. margin: 0 0 8px 0;
  68. }
  69. .summaryTable { width: 100%; }
  70. h1.classTitle
  71. {
  72. font-size:170%;
  73. line-height:130%;
  74. }
  75. h2 { font-size: 110%; }
  76. caption, div.sectionTitle
  77. {
  78. background-color: #7F8FB1;
  79. color: #fff;
  80. font-size:130%;
  81. text-align: left;
  82. padding: 2px 6px 2px 6px;
  83. border: 1px #7F8FB1 solid;
  84. }
  85. div.sectionTitle { margin-bottom: 8px; }
  86. .summaryTable thead { display: none; }
  87. .summaryTable td
  88. {
  89. vertical-align: top;
  90. padding: 4px;
  91. border-bottom: 1px #7F8FB1 solid;
  92. border-right: 1px #7F8FB1 solid;
  93. }
  94. /*col#summaryAttributes {}*/
  95. .summaryTable td.attributes
  96. {
  97. border-left: 1px #7F8FB1 solid;
  98. width: 140px;
  99. text-align: right;
  100. }
  101. td.attributes, .fixedFont
  102. {
  103. line-height: 15px;
  104. color: #002EBE;
  105. font-family: "Courier New",Courier,monospace;
  106. font-size: 13px;
  107. }
  108. .summaryTable td.nameDescription
  109. {
  110. text-align: left;
  111. font-size: 13px;
  112. line-height: 15px;
  113. }
  114. .summaryTable td.nameDescription, .description
  115. {
  116. line-height: 15px;
  117. padding: 4px;
  118. padding-left: 4px;
  119. }
  120. .summaryTable { margin-bottom: 8px; }
  121. ul.inheritsList
  122. {
  123. list-style: square;
  124. margin-left: 20px;
  125. padding-left: 0;
  126. }
  127. .detailList {
  128. margin-left: 20px;
  129. line-height: 15px;
  130. }
  131. .detailList dt { margin-left: 20px; }
  132. .detailList .heading
  133. {
  134. font-weight: bold;
  135. padding-bottom: 6px;
  136. margin-left: 0;
  137. }
  138. .light, td.attributes, .light a:link, .light a:visited
  139. {
  140. color: #777;
  141. font-style: italic;
  142. }
  143. .fineprint
  144. {
  145. text-align: right;
  146. font-size: 10px;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <!-- ============================== header ================================= -->
  152. <!-- begin static/header.html -->
  153. <div id="header">
  154. </div>
  155. <!-- end static/header.html -->
  156. <!-- ============================== classes index ============================ -->
  157. <div id="index">
  158. <!-- begin publish.classesIndex -->
  159. <div align="center"><a href="../index.html">Class Index</a>
  160. | <a href="../files.html">File Index</a></div>
  161. <hr />
  162. <h2>Classes</h2>
  163. <ul class="classList">
  164. <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
  165. <li><a href="../symbols/Array.html">Array</a></li>
  166. <li><a href="../symbols/links.Timeline.html">links.Timeline</a></li>
  167. <li><a href="../symbols/links.Timeline.ClusterGenerator.html">links.Timeline.ClusterGenerator</a></li>
  168. <li><a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a></li>
  169. <li><a href="../symbols/links.Timeline.ItemBox.html">links.Timeline.ItemBox</a></li>
  170. <li><a href="../symbols/links.Timeline.ItemDot.html">links.Timeline.ItemDot</a></li>
  171. <li><a href="../symbols/links.Timeline.ItemFloatingRange.html">links.Timeline.ItemFloatingRange</a></li>
  172. <li><a href="../symbols/links.Timeline.ItemRange.html">links.Timeline.ItemRange</a></li>
  173. <li><a href="../symbols/links.Timeline.StepDate.html">links.Timeline.StepDate</a></li>
  174. </ul>
  175. <hr />
  176. <!-- end publish.classesIndex -->
  177. </div>
  178. <div id="content">
  179. <!-- ============================== class title ============================ -->
  180. <h1 class="classTitle">
  181. Class links.Timeline.ItemBox
  182. </h1>
  183. <!-- ============================== class summary ========================== -->
  184. <p class="description">
  185. <br />Extends
  186. <a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a>.<br />
  187. <br /><i>Defined in: </i> <a href="../symbols/src/timeline.js.html">timeline.js</a>.
  188. </p>
  189. <!-- ============================== constructor summary ==================== -->
  190. <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class links.Timeline.ItemBox.">
  191. <caption>Class Summary</caption>
  192. <thead>
  193. <tr>
  194. <th scope="col">Constructor Attributes</th>
  195. <th scope="col">Constructor Name and Description</th>
  196. </tr>
  197. </thead>
  198. <tbody>
  199. <tr>
  200. <td class="attributes">&nbsp;</td>
  201. <td class="nameDescription" >
  202. <div class="fixedFont">
  203. <b><a href="../symbols/links.Timeline.ItemBox.html#constructor">links.Timeline.ItemBox</a></b>(data, options)
  204. </div>
  205. <div class="description"></div>
  206. </td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <!-- ============================== properties summary ===================== -->
  211. <!-- ============================== methods summary ======================== -->
  212. <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class links.Timeline.ItemBox.">
  213. <caption>Method Summary</caption>
  214. <thead>
  215. <tr>
  216. <th scope="col">Method Attributes</th>
  217. <th scope="col">Method Name and Description</th>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr>
  222. <td class="attributes">&nbsp;</td>
  223. <td class="nameDescription">
  224. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#createDOM">createDOM</a></b>()
  225. </div>
  226. <div class="description">Creates the DOM for the item, depending on its type</div>
  227. </td>
  228. </tr>
  229. <tr>
  230. <td class="attributes">&nbsp;</td>
  231. <td class="nameDescription">
  232. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#getLeft">getLeft</a></b>(timeline)
  233. </div>
  234. <div class="description">Calculate the left position of the item</div>
  235. </td>
  236. </tr>
  237. <tr>
  238. <td class="attributes">&nbsp;</td>
  239. <td class="nameDescription">
  240. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#getRight">getRight</a></b>(timeline)
  241. </div>
  242. <div class="description">Calculate the right position of the item</div>
  243. </td>
  244. </tr>
  245. <tr>
  246. <td class="attributes">&nbsp;</td>
  247. <td class="nameDescription">
  248. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#hideDOM">hideDOM</a></b>()
  249. </div>
  250. <div class="description">Remove the items DOM from the current HTML container, but keep the DOM in
  251. memory</div>
  252. </td>
  253. </tr>
  254. <tr>
  255. <td class="attributes">&nbsp;</td>
  256. <td class="nameDescription">
  257. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#isVisible">isVisible</a></b>(start, end)
  258. </div>
  259. <div class="description">Check if the item is visible in the timeline, and not part of a cluster</div>
  260. </td>
  261. </tr>
  262. <tr>
  263. <td class="attributes">&nbsp;</td>
  264. <td class="nameDescription">
  265. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#reflow">reflow</a></b>()
  266. </div>
  267. <div class="description">Reflow the Item: retrieve its actual size from the DOM</div>
  268. </td>
  269. </tr>
  270. <tr>
  271. <td class="attributes">&nbsp;</td>
  272. <td class="nameDescription">
  273. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#select">select</a></b>()
  274. </div>
  275. <div class="description">Select the item</div>
  276. </td>
  277. </tr>
  278. <tr>
  279. <td class="attributes">&nbsp;</td>
  280. <td class="nameDescription">
  281. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#setPosition">setPosition</a></b>(left, right)
  282. </div>
  283. <div class="description">Reposition the item</div>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="attributes">&nbsp;</td>
  288. <td class="nameDescription">
  289. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#showDOM">showDOM</a></b>(container)
  290. </div>
  291. <div class="description">Append the items DOM to the given HTML container.</div>
  292. </td>
  293. </tr>
  294. <tr>
  295. <td class="attributes">&nbsp;</td>
  296. <td class="nameDescription">
  297. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#unselect">unselect</a></b>()
  298. </div>
  299. <div class="description">Unselect the item</div>
  300. </td>
  301. </tr>
  302. <tr>
  303. <td class="attributes">&nbsp;</td>
  304. <td class="nameDescription">
  305. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#updateDOM">updateDOM</a></b>()
  306. </div>
  307. <div class="description">Update the DOM of the item.</div>
  308. </td>
  309. </tr>
  310. <tr>
  311. <td class="attributes">&nbsp;</td>
  312. <td class="nameDescription">
  313. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemBox.html#updatePosition">updatePosition</a></b>(timeline)
  314. </div>
  315. <div class="description">Reposition the item, recalculate its left, top, and width, using the current
  316. range of the timeline and the timeline options.</div>
  317. </td>
  318. </tr>
  319. </tbody>
  320. </table>
  321. <dl class="inheritsList">
  322. <dt>Methods borrowed from class <a href="../symbols/links.Timeline.Item.html">links.Timeline.Item</a>: </dt><dd><a href="../symbols/links.Timeline.Item.html#getImageUrls">getImageUrls</a>, <a href="../symbols/links.Timeline.Item.html#getWidth">getWidth</a>, <a href="../symbols/links.Timeline.Item.html#isRendered">isRendered</a></dd>
  323. </dl>
  324. <!-- ============================== events summary ======================== -->
  325. <!-- ============================== constructor details ==================== -->
  326. <div class="details"><a name="constructor"> </a>
  327. <div class="sectionTitle">
  328. Class Detail
  329. </div>
  330. <div class="fixedFont">
  331. <b>links.Timeline.ItemBox</b>(data, options)
  332. </div>
  333. <div class="description">
  334. </div>
  335. <dl class="detailList">
  336. <dt class="heading">Parameters:</dt>
  337. <dt>
  338. <span class="light fixedFont">{Object}</span> <b>data</b>
  339. </dt>
  340. <dd>Object containing parameters start, end
  341. content, group, type, className, editable.</dd>
  342. <dt>
  343. <span class="light fixedFont">{Object}</span> <b>options</b>
  344. <i>Optional</i>
  345. </dt>
  346. <dd>Options to set initial property values
  347. {Number} top
  348. {Number} left
  349. {Number} width
  350. {Number} height</dd>
  351. </dl>
  352. </div>
  353. <!-- ============================== field details ========================== -->
  354. <!-- ============================== method details ========================= -->
  355. <div class="sectionTitle">
  356. Method Detail
  357. </div>
  358. <a name="createDOM"> </a>
  359. <div class="fixedFont">
  360. <span class="light">{Element | undefined}</span>
  361. <b>createDOM</b>()
  362. </div>
  363. <div class="description">
  364. Creates the DOM for the item, depending on its type
  365. </div>
  366. <dl class="detailList">
  367. <dt class="heading">Returns:</dt>
  368. <dd><span class="light fixedFont">{Element | undefined}</span> </dd>
  369. </dl>
  370. <hr />
  371. <a name="getLeft"> </a>
  372. <div class="fixedFont">
  373. <span class="light">{Number}</span>
  374. <b>getLeft</b>(timeline)
  375. </div>
  376. <div class="description">
  377. Calculate the left position of the item
  378. </div>
  379. <dl class="detailList">
  380. <dt class="heading">Parameters:</dt>
  381. <dt>
  382. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  383. </dt>
  384. <dd></dd>
  385. </dl>
  386. <dl class="detailList">
  387. <dt class="heading">Returns:</dt>
  388. <dd><span class="light fixedFont">{Number}</span> left</dd>
  389. </dl>
  390. <hr />
  391. <a name="getRight"> </a>
  392. <div class="fixedFont">
  393. <span class="light">{Number}</span>
  394. <b>getRight</b>(timeline)
  395. </div>
  396. <div class="description">
  397. Calculate the right position of the item
  398. </div>
  399. <dl class="detailList">
  400. <dt class="heading">Parameters:</dt>
  401. <dt>
  402. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  403. </dt>
  404. <dd></dd>
  405. </dl>
  406. <dl class="detailList">
  407. <dt class="heading">Returns:</dt>
  408. <dd><span class="light fixedFont">{Number}</span> right</dd>
  409. </dl>
  410. <hr />
  411. <a name="hideDOM"> </a>
  412. <div class="fixedFont">
  413. <b>hideDOM</b>()
  414. </div>
  415. <div class="description">
  416. Remove the items DOM from the current HTML container, but keep the DOM in
  417. memory
  418. </div>
  419. <hr />
  420. <a name="isVisible"> </a>
  421. <div class="fixedFont">
  422. <span class="light">{Boolean}</span>
  423. <b>isVisible</b>(start, end)
  424. </div>
  425. <div class="description">
  426. Check if the item is visible in the timeline, and not part of a cluster
  427. </div>
  428. <dl class="detailList">
  429. <dt class="heading">Parameters:</dt>
  430. <dt>
  431. <span class="light fixedFont">{Date}</span> <b>start</b>
  432. </dt>
  433. <dd></dd>
  434. <dt>
  435. <span class="light fixedFont">{Date}</span> <b>end</b>
  436. </dt>
  437. <dd></dd>
  438. </dl>
  439. <dl class="detailList">
  440. <dt class="heading">Returns:</dt>
  441. <dd><span class="light fixedFont">{Boolean}</span> visible</dd>
  442. </dl>
  443. <hr />
  444. <a name="reflow"> </a>
  445. <div class="fixedFont">
  446. <span class="light">{boolean}</span>
  447. <b>reflow</b>()
  448. </div>
  449. <div class="description">
  450. Reflow the Item: retrieve its actual size from the DOM
  451. </div>
  452. <dl class="detailList">
  453. <dt class="heading">Returns:</dt>
  454. <dd><span class="light fixedFont">{boolean}</span> resized returns true if the axis is resized</dd>
  455. </dl>
  456. <hr />
  457. <a name="select"> </a>
  458. <div class="fixedFont">
  459. <b>select</b>()
  460. </div>
  461. <div class="description">
  462. Select the item
  463. </div>
  464. <hr />
  465. <a name="setPosition"> </a>
  466. <div class="fixedFont">
  467. <b>setPosition</b>(left, right)
  468. </div>
  469. <div class="description">
  470. Reposition the item
  471. </div>
  472. <dl class="detailList">
  473. <dt class="heading">Parameters:</dt>
  474. <dt>
  475. <span class="light fixedFont">{Number}</span> <b>left</b>
  476. </dt>
  477. <dd></dd>
  478. <dt>
  479. <span class="light fixedFont">{Number}</span> <b>right</b>
  480. </dt>
  481. <dd></dd>
  482. </dl>
  483. <hr />
  484. <a name="showDOM"> </a>
  485. <div class="fixedFont">
  486. <b>showDOM</b>(container)
  487. </div>
  488. <div class="description">
  489. Append the items DOM to the given HTML container. If items DOM does not yet
  490. exist, it will be created first.
  491. </div>
  492. <dl class="detailList">
  493. <dt class="heading">Parameters:</dt>
  494. <dt>
  495. <span class="light fixedFont">{Element}</span> <b>container</b>
  496. </dt>
  497. <dd></dd>
  498. </dl>
  499. <hr />
  500. <a name="unselect"> </a>
  501. <div class="fixedFont">
  502. <b>unselect</b>()
  503. </div>
  504. <div class="description">
  505. Unselect the item
  506. </div>
  507. <hr />
  508. <a name="updateDOM"> </a>
  509. <div class="fixedFont">
  510. <b>updateDOM</b>()
  511. </div>
  512. <div class="description">
  513. Update the DOM of the item. This will update the content and the classes
  514. of the item
  515. </div>
  516. <hr />
  517. <a name="updatePosition"> </a>
  518. <div class="fixedFont">
  519. <b>updatePosition</b>(timeline)
  520. </div>
  521. <div class="description">
  522. Reposition the item, recalculate its left, top, and width, using the current
  523. range of the timeline and the timeline options.
  524. </div>
  525. <dl class="detailList">
  526. <dt class="heading">Parameters:</dt>
  527. <dt>
  528. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  529. </dt>
  530. <dd></dd>
  531. </dl>
  532. <!-- ============================== event details ========================= -->
  533. <hr />
  534. </div>
  535. <!-- ============================== footer ================================= -->
  536. <div class="fineprint" style="clear:both">
  537. Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.2 on Wed Mar 04 2015 09:58:28 GMT+0100 (CET)
  538. </div>
  539. </body>
  540. </html>