blingbling.wlourf_circle_graph.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Reference</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>ldoc</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Modules</h2>
  29. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  30. <li><a href="../modules/blingbling.calendar.html">blingbling.calendar</a></li>
  31. <li><a href="../modules/blingbling.clock.html">blingbling.clock</a></li>
  32. <li><a href="../modules/blingbling.helpers.html">blingbling.helpers</a></li>
  33. <li><a href="../modules/blingbling.linegraph.html">blingbling.linegraph</a></li>
  34. <li><a href="../modules/blingbling.widget.html">blingbling.widget</a></li>
  35. <li><a href="../modules/blingbling.popups.html">blingbling.popups</a></li>
  36. <li><a href="../modules/blingbling.progress_graph.html">blingbling.progress_graph</a></li>
  37. <li><a href="../modules/blingbling.system.html">blingbling.system</a></li>
  38. <li><a href="../modules/blingbling.tagslist.html">blingbling.tagslist</a></li>
  39. <li><a href="../modules/blingbling.task_warrior.html">blingbling.task_warrior</a></li>
  40. <li><a href="../modules/blingbling.text_box.html">blingbling.text_box</a></li>
  41. <li><a href="../modules/blingbling.transient.html">blingbling.transient</a></li>
  42. <li><a href="../modules/blingbling.triangular_progress_graph.html">blingbling.triangular_progress_graph</a></li>
  43. <li><a href="../modules/blingbling.udisks_glue.html">blingbling.udisks_glue</a></li>
  44. <li><a href="../modules/blingbling.value_text_box.html">blingbling.value_text_box</a></li>
  45. <li><a href="../modules/blingbling.volume.html">blingbling.volume</a></li>
  46. <li><strong>blingbling.wlourf_circle_graph</strong></li>
  47. </ul>
  48. </div>
  49. <div id="content">
  50. <h1>Module <code>blingbling.wlourf_circle_graph</code></h1>
  51. <p>Circle graph from wlourf.</p>
  52. <p></p>
  53. <h2><a href="#Functions">Functions</a></h2>
  54. <table class="function_list">
  55. <tr>
  56. <td class="name" nowrap><a href="#set_radius">set_radius (radius)</a></td>
  57. <td class="summary">Set the radius of the circle.</td>
  58. </tr>
  59. <tr>
  60. <td class="name" nowrap><a href="#set_graph_color">set_graph_color (color)</a></td>
  61. <td class="summary">Set the default color for the graph.</td>
  62. </tr>
  63. <tr>
  64. <td class="name" nowrap><a href="#set_graph_colors">set_graph_colors (colors)</a></td>
  65. <td class="summary">Set the colors and theirs ranges for the graph.</td>
  66. </tr>
  67. <tr>
  68. <td class="name" nowrap><a href="#set_show_text">set_show_text (boolean)</a></td>
  69. <td class="summary">Display text on the graph or not.</td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#set_font">set_font (font)</a></td>
  73. <td class="summary">Define the text's font .</td>
  74. </tr>
  75. <tr>
  76. <td class="name" nowrap><a href="#set_font_size">set_font_size (size)</a></td>
  77. <td class="summary">Define the text font size.</td>
  78. </tr>
  79. <tr>
  80. <td class="name" nowrap><a href="#set_label">set_label (text)</a></td>
  81. <td class="summary">Define the text to display.</td>
  82. </tr>
  83. <tr>
  84. <td class="name" nowrap><a href="#circle_graph:set_height">circle_graph:set_height (height)</a></td>
  85. <td class="summary">Set the c_graph height.</td>
  86. </tr>
  87. <tr>
  88. <td class="name" nowrap><a href="#circle_graph:set_width">circle_graph:set_width (width)</a></td>
  89. <td class="summary">Set the graph width.</td>
  90. </tr>
  91. <tr>
  92. <td class="name" nowrap><a href="#circle_graph.new">circle_graph.new (args)</a></td>
  93. <td class="summary">Create a c_graph widget.</td>
  94. </tr>
  95. </table>
  96. <br/>
  97. <br/>
  98. <h2><a name="Functions"></a>Functions</h2>
  99. <dl class="function">
  100. <dt>
  101. <a name = "set_radius"></a>
  102. <strong>set_radius (radius)</strong>
  103. </dt>
  104. <dd>
  105. Set the radius of the circle.
  106. <h3>Parameters:</h3>
  107. <ul>
  108. <li><span class="parameter">radius</span>
  109. an integer value for the radius of the circle
  110. </li>
  111. </ul>
  112. <h3>Usage:</h3>
  113. <ul>
  114. <pre class="example">circle:set_radius(integer)</pre>
  115. </ul>
  116. </dd>
  117. <dt>
  118. <a name = "set_graph_color"></a>
  119. <strong>set_graph_color (color)</strong>
  120. </dt>
  121. <dd>
  122. Set the default color for the graph.
  123. <h3>Parameters:</h3>
  124. <ul>
  125. <li><span class="parameter">color</span>
  126. a string "#rrggbbaa" or "#rrggbb"
  127. </li>
  128. </ul>
  129. <h3>Usage:</h3>
  130. <ul>
  131. <pre class="example">circle:set_graph_color(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  132. </ul>
  133. </dd>
  134. <dt>
  135. <a name = "set_graph_colors"></a>
  136. <strong>set_graph_colors (colors)</strong>
  137. </dt>
  138. <dd>
  139. Set the colors and theirs ranges for the graph.
  140. <h3>Parameters:</h3>
  141. <ul>
  142. <li><span class="parameter">colors</span>
  143. a table of tables {color , float } with color a string "#rrggbbaa" or "#rrggbb" and float which is 0<=float<=1
  144. </li>
  145. </ul>
  146. <h3>Usage:</h3>
  147. <ul>
  148. <pre class="example"> circle:set_graph_colors({{<span class="string">"#88aa00ff"</span>,<span class="number">0</span>}, <span class="comment">--all value &gt; 0 will be displayed using this color
  149. </span>{<span class="string">"#d4aa00ff"</span>, <span class="number">0.5</span>},
  150. {<span class="string">"#d45500ff"</span>,<span class="number">0.77</span>}})</pre>
  151. </ul>
  152. </dd>
  153. <dt>
  154. <a name = "set_show_text"></a>
  155. <strong>set_show_text (boolean)</strong>
  156. </dt>
  157. <dd>
  158. Display text on the graph or not.
  159. <h3>Parameters:</h3>
  160. <ul>
  161. <li><span class="parameter">boolean</span>
  162. true or false (default is false)
  163. </li>
  164. </ul>
  165. <h3>Usage:</h3>
  166. <ul>
  167. <pre class="example">circle:set_show_text(boolean) --&gt; <span class="keyword">true</span> <span class="keyword">or</span> <span class="keyword">false</span></pre>
  168. </ul>
  169. </dd>
  170. <dt>
  171. <a name = "set_font"></a>
  172. <strong>set_font (font)</strong>
  173. </dt>
  174. <dd>
  175. Define the text's font .
  176. <h3>Parameters:</h3>
  177. <ul>
  178. <li><span class="parameter">font</span>
  179. a string that contains the font name family and weight
  180. </li>
  181. </ul>
  182. <h3>Usage:</h3>
  183. <ul>
  184. <pre class="example">circle:set_font(<span class="global">string</span>)</pre>
  185. </ul>
  186. </dd>
  187. <dt>
  188. <a name = "set_font_size"></a>
  189. <strong>set_font_size (size)</strong>
  190. </dt>
  191. <dd>
  192. Define the text font size.
  193. <h3>Parameters:</h3>
  194. <ul>
  195. <li><span class="parameter">size</span>
  196. the font size
  197. </li>
  198. </ul>
  199. <h3>Usage:</h3>
  200. <ul>
  201. <pre class="example">circle:set_font_size(integer)</pre>
  202. </ul>
  203. </dd>
  204. <dt>
  205. <a name = "set_label"></a>
  206. <strong>set_label (text)</strong>
  207. </dt>
  208. <dd>
  209. Define the text to display.
  210. <h3>Parameters:</h3>
  211. <ul>
  212. <li><span class="parameter">text</span>
  213. the text to display
  214. </li>
  215. </ul>
  216. <h3>Usage:</h3>
  217. <ul>
  218. <pre class="example">circle:set_label(<span class="global">string</span>)</pre>
  219. </ul>
  220. </dd>
  221. <dt>
  222. <a name = "circle_graph:set_height"></a>
  223. <strong>circle_graph:set_height (height)</strong>
  224. </dt>
  225. <dd>
  226. Set the c_graph height.
  227. <h3>Parameters:</h3>
  228. <ul>
  229. <li><span class="parameter">height</span>
  230. The height to set.
  231. </li>
  232. </ul>
  233. </dd>
  234. <dt>
  235. <a name = "circle_graph:set_width"></a>
  236. <strong>circle_graph:set_width (width)</strong>
  237. </dt>
  238. <dd>
  239. Set the graph width.
  240. <h3>Parameters:</h3>
  241. <ul>
  242. <li><span class="parameter">width</span>
  243. The width to set.
  244. </li>
  245. </ul>
  246. </dd>
  247. <dt>
  248. <a name = "circle_graph.new"></a>
  249. <strong>circle_graph.new (args)</strong>
  250. </dt>
  251. <dd>
  252. Create a c_graph widget.
  253. <h3>Parameters:</h3>
  254. <ul>
  255. <li><span class="parameter">args</span>
  256. Standard widget() arguments. You should add width and height
  257. key to set graph geometry.
  258. </li>
  259. </ul>
  260. <h3>Returns:</h3>
  261. <ol>
  262. A graph widget.
  263. </ol>
  264. </dd>
  265. </dl>
  266. </div> <!-- id="content" -->
  267. </div> <!-- id="main" -->
  268. <div id="about">
  269. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
  270. <i style="float:right;">Last updated 2015-08-04 10:16:50 </i>
  271. </div> <!-- id="about" -->
  272. </div> <!-- id="container" -->
  273. </body>
  274. </html>