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.

893 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.ItemDot</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.ItemDot
  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.ItemDot.">
  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.ItemDot.html#constructor">links.Timeline.ItemDot</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.ItemDot.">
  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.ItemDot.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.ItemDot.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.ItemDot.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.ItemDot.html#hideDOM">hideDOM</a></b>()
  249. </div>
  250. <div class="description">Remove the items DOM from the current HTML container</div>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td class="attributes">&nbsp;</td>
  255. <td class="nameDescription">
  256. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#isVisible">isVisible</a></b>(start, end)
  257. </div>
  258. <div class="description">Check if the item is visible in the timeline, and not part of a cluster.</div>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td class="attributes">&nbsp;</td>
  263. <td class="nameDescription">
  264. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#reflow">reflow</a></b>()
  265. </div>
  266. <div class="description">Reflow the Item: retrieve its actual size from the DOM</div>
  267. </td>
  268. </tr>
  269. <tr>
  270. <td class="attributes">&nbsp;</td>
  271. <td class="nameDescription">
  272. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#select">select</a></b>()
  273. </div>
  274. <div class="description">Select the item</div>
  275. </td>
  276. </tr>
  277. <tr>
  278. <td class="attributes">&nbsp;</td>
  279. <td class="nameDescription">
  280. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#setPosition">setPosition</a></b>(left, right)
  281. </div>
  282. <div class="description">Reposition the item</div>
  283. </td>
  284. </tr>
  285. <tr>
  286. <td class="attributes">&nbsp;</td>
  287. <td class="nameDescription">
  288. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#showDOM">showDOM</a></b>(container)
  289. </div>
  290. <div class="description">Append the items DOM to the given HTML container.</div>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td class="attributes">&nbsp;</td>
  295. <td class="nameDescription">
  296. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#unselect">unselect</a></b>()
  297. </div>
  298. <div class="description">Unselect the item</div>
  299. </td>
  300. </tr>
  301. <tr>
  302. <td class="attributes">&nbsp;</td>
  303. <td class="nameDescription">
  304. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#updateDOM">updateDOM</a></b>()
  305. </div>
  306. <div class="description">Update the DOM of the item.</div>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td class="attributes">&nbsp;</td>
  311. <td class="nameDescription">
  312. <div class="fixedFont"><b><a href="../symbols/links.Timeline.ItemDot.html#updatePosition">updatePosition</a></b>(timeline)
  313. </div>
  314. <div class="description">Reposition the item, recalculate its left, top, and width, using the current
  315. range of the timeline and the timeline options.</div>
  316. </td>
  317. </tr>
  318. </tbody>
  319. </table>
  320. <dl class="inheritsList">
  321. <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>
  322. </dl>
  323. <!-- ============================== events summary ======================== -->
  324. <!-- ============================== constructor details ==================== -->
  325. <div class="details"><a name="constructor"> </a>
  326. <div class="sectionTitle">
  327. Class Detail
  328. </div>
  329. <div class="fixedFont">
  330. <b>links.Timeline.ItemDot</b>(data, options)
  331. </div>
  332. <div class="description">
  333. </div>
  334. <dl class="detailList">
  335. <dt class="heading">Parameters:</dt>
  336. <dt>
  337. <span class="light fixedFont">{Object}</span> <b>data</b>
  338. </dt>
  339. <dd>Object containing parameters start, end
  340. content, group, type, className, editable.</dd>
  341. <dt>
  342. <span class="light fixedFont">{Object}</span> <b>options</b>
  343. <i>Optional</i>
  344. </dt>
  345. <dd>Options to set initial property values
  346. {Number} top
  347. {Number} left
  348. {Number} width
  349. {Number} height</dd>
  350. </dl>
  351. </div>
  352. <!-- ============================== field details ========================== -->
  353. <!-- ============================== method details ========================= -->
  354. <div class="sectionTitle">
  355. Method Detail
  356. </div>
  357. <a name="createDOM"> </a>
  358. <div class="fixedFont">
  359. <span class="light">{Element | undefined}</span>
  360. <b>createDOM</b>()
  361. </div>
  362. <div class="description">
  363. Creates the DOM for the item, depending on its type
  364. </div>
  365. <dl class="detailList">
  366. <dt class="heading">Returns:</dt>
  367. <dd><span class="light fixedFont">{Element | undefined}</span> </dd>
  368. </dl>
  369. <hr />
  370. <a name="getLeft"> </a>
  371. <div class="fixedFont">
  372. <span class="light">{Number}</span>
  373. <b>getLeft</b>(timeline)
  374. </div>
  375. <div class="description">
  376. Calculate the left position of the item
  377. </div>
  378. <dl class="detailList">
  379. <dt class="heading">Parameters:</dt>
  380. <dt>
  381. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  382. </dt>
  383. <dd></dd>
  384. </dl>
  385. <dl class="detailList">
  386. <dt class="heading">Returns:</dt>
  387. <dd><span class="light fixedFont">{Number}</span> left</dd>
  388. </dl>
  389. <hr />
  390. <a name="getRight"> </a>
  391. <div class="fixedFont">
  392. <span class="light">{Number}</span>
  393. <b>getRight</b>(timeline)
  394. </div>
  395. <div class="description">
  396. Calculate the right position of the item
  397. </div>
  398. <dl class="detailList">
  399. <dt class="heading">Parameters:</dt>
  400. <dt>
  401. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  402. </dt>
  403. <dd></dd>
  404. </dl>
  405. <dl class="detailList">
  406. <dt class="heading">Returns:</dt>
  407. <dd><span class="light fixedFont">{Number}</span> right</dd>
  408. </dl>
  409. <hr />
  410. <a name="hideDOM"> </a>
  411. <div class="fixedFont">
  412. <b>hideDOM</b>()
  413. </div>
  414. <div class="description">
  415. Remove the items DOM from the current HTML container
  416. </div>
  417. <hr />
  418. <a name="isVisible"> </a>
  419. <div class="fixedFont">
  420. <span class="light">{boolean}</span>
  421. <b>isVisible</b>(start, end)
  422. </div>
  423. <div class="description">
  424. Check if the item is visible in the timeline, and not part of a cluster.
  425. </div>
  426. <dl class="detailList">
  427. <dt class="heading">Parameters:</dt>
  428. <dt>
  429. <span class="light fixedFont">{Date}</span> <b>start</b>
  430. </dt>
  431. <dd></dd>
  432. <dt>
  433. <span class="light fixedFont">{Date}</span> <b>end</b>
  434. </dt>
  435. <dd></dd>
  436. </dl>
  437. <dl class="detailList">
  438. <dt class="heading">Returns:</dt>
  439. <dd><span class="light fixedFont">{boolean}</span> visible</dd>
  440. </dl>
  441. <hr />
  442. <a name="reflow"> </a>
  443. <div class="fixedFont">
  444. <span class="light">{boolean}</span>
  445. <b>reflow</b>()
  446. </div>
  447. <div class="description">
  448. Reflow the Item: retrieve its actual size from the DOM
  449. </div>
  450. <dl class="detailList">
  451. <dt class="heading">Returns:</dt>
  452. <dd><span class="light fixedFont">{boolean}</span> resized returns true if the axis is resized</dd>
  453. </dl>
  454. <hr />
  455. <a name="select"> </a>
  456. <div class="fixedFont">
  457. <b>select</b>()
  458. </div>
  459. <div class="description">
  460. Select the item
  461. </div>
  462. <hr />
  463. <a name="setPosition"> </a>
  464. <div class="fixedFont">
  465. <b>setPosition</b>(left, right)
  466. </div>
  467. <div class="description">
  468. Reposition the item
  469. </div>
  470. <dl class="detailList">
  471. <dt class="heading">Parameters:</dt>
  472. <dt>
  473. <span class="light fixedFont">{Number}</span> <b>left</b>
  474. </dt>
  475. <dd></dd>
  476. <dt>
  477. <span class="light fixedFont">{Number}</span> <b>right</b>
  478. </dt>
  479. <dd></dd>
  480. </dl>
  481. <hr />
  482. <a name="showDOM"> </a>
  483. <div class="fixedFont">
  484. <b>showDOM</b>(container)
  485. </div>
  486. <div class="description">
  487. Append the items DOM to the given HTML container. If items DOM does not yet
  488. exist, it will be created first.
  489. </div>
  490. <dl class="detailList">
  491. <dt class="heading">Parameters:</dt>
  492. <dt>
  493. <span class="light fixedFont">{Element}</span> <b>container</b>
  494. </dt>
  495. <dd></dd>
  496. </dl>
  497. <hr />
  498. <a name="unselect"> </a>
  499. <div class="fixedFont">
  500. <b>unselect</b>()
  501. </div>
  502. <div class="description">
  503. Unselect the item
  504. </div>
  505. <hr />
  506. <a name="updateDOM"> </a>
  507. <div class="fixedFont">
  508. <b>updateDOM</b>()
  509. </div>
  510. <div class="description">
  511. Update the DOM of the item. This will update the content and the classes
  512. of the item
  513. </div>
  514. <hr />
  515. <a name="updatePosition"> </a>
  516. <div class="fixedFont">
  517. <b>updatePosition</b>(timeline)
  518. </div>
  519. <div class="description">
  520. Reposition the item, recalculate its left, top, and width, using the current
  521. range of the timeline and the timeline options. *
  522. </div>
  523. <dl class="detailList">
  524. <dt class="heading">Parameters:</dt>
  525. <dt>
  526. <span class="light fixedFont">{<a href="../symbols/links.Timeline.html">links.Timeline</a>}</span> <b>timeline</b>
  527. </dt>
  528. <dd></dd>
  529. </dl>
  530. <!-- ============================== event details ========================= -->
  531. <hr />
  532. </div>
  533. <!-- ============================== footer ================================= -->
  534. <div class="fineprint" style="clear:both">
  535. 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)
  536. </div>
  537. </body>
  538. </html>