DataUtilities.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_05) on Thu Jul 31 14:50:42 CEST 2014 -->
  6. <title>DataUtilities (JFreeChart Class Library (version 1.0.19-fx))</title>
  7. <meta name="date" content="2014-07-31">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="DataUtilities (JFreeChart Class Library (version 1.0.19-fx))";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9};
  22. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/DataUtilities.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../org/jfree/data/ComparableObjectSeries.html" title="class in org.jfree.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../org/jfree/data/DefaultKeyedValue.html" title="class in org.jfree.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../index.html?org/jfree/data/DataUtilities.html" target="_top">Frames</a></li>
  57. <li><a href="DataUtilities.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li>Field&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.jfree.data</div>
  96. <h2 title="Class DataUtilities" class="title">Class DataUtilities</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li>java.lang.Object</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>org.jfree.data.DataUtilities</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <hr>
  111. <br>
  112. <pre>public abstract class <a href="../../../src-html/org/jfree/data/DataUtilities.html#line.59">DataUtilities</a>
  113. extends java.lang.Object</pre>
  114. <div class="block">Utility methods for use with some of the data classes (but not the datasets,
  115. see <a href="../../../org/jfree/data/general/DatasetUtilities.html" title="class in org.jfree.data.general"><code>DatasetUtilities</code></a>).</div>
  116. </li>
  117. </ul>
  118. </div>
  119. <div class="summary">
  120. <ul class="blockList">
  121. <li class="blockList">
  122. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  123. <ul class="blockList">
  124. <li class="blockList"><a name="constructor.summary">
  125. <!-- -->
  126. </a>
  127. <h3>Constructor Summary</h3>
  128. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  129. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  130. <tr>
  131. <th class="colOne" scope="col">Constructor and Description</th>
  132. </tr>
  133. <tr class="altColor">
  134. <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#DataUtilities--">DataUtilities</a></span>()</code>&nbsp;</td>
  135. </tr>
  136. </table>
  137. </li>
  138. </ul>
  139. <!-- ========== METHOD SUMMARY =========== -->
  140. <ul class="blockList">
  141. <li class="blockList"><a name="method.summary">
  142. <!-- -->
  143. </a>
  144. <h3>Method Summary</h3>
  145. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  146. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  147. <tr>
  148. <th class="colFirst" scope="col">Modifier and Type</th>
  149. <th class="colLast" scope="col">Method and Description</th>
  150. </tr>
  151. <tr id="i0" class="altColor">
  152. <td class="colFirst"><code>static double</code></td>
  153. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#calculateColumnTotal-org.jfree.data.Values2D-int-">calculateColumnTotal</a></span>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  154. int&nbsp;column)</code>
  155. <div class="block">Returns the total of the values in one column of the supplied data
  156. table.</div>
  157. </td>
  158. </tr>
  159. <tr id="i1" class="rowColor">
  160. <td class="colFirst"><code>static double</code></td>
  161. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#calculateColumnTotal-org.jfree.data.Values2D-int-int:A-">calculateColumnTotal</a></span>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  162. int&nbsp;column,
  163. int[]&nbsp;validRows)</code>
  164. <div class="block">Returns the total of the values in one column of the supplied data
  165. table by taking only the row numbers in the array into account.</div>
  166. </td>
  167. </tr>
  168. <tr id="i2" class="altColor">
  169. <td class="colFirst"><code>static double</code></td>
  170. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#calculateRowTotal-org.jfree.data.Values2D-int-">calculateRowTotal</a></span>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  171. int&nbsp;row)</code>
  172. <div class="block">Returns the total of the values in one row of the supplied data
  173. table.</div>
  174. </td>
  175. </tr>
  176. <tr id="i3" class="rowColor">
  177. <td class="colFirst"><code>static double</code></td>
  178. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#calculateRowTotal-org.jfree.data.Values2D-int-int:A-">calculateRowTotal</a></span>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  179. int&nbsp;row,
  180. int[]&nbsp;validCols)</code>
  181. <div class="block">Returns the total of the values in one row of the supplied data
  182. table by taking only the column numbers in the array into account.</div>
  183. </td>
  184. </tr>
  185. <tr id="i4" class="altColor">
  186. <td class="colFirst"><code>static double[][]</code></td>
  187. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#clone-double:A:A-">clone</a></span>(double[][]&nbsp;source)</code>
  188. <div class="block">Returns a clone of the specified array.</div>
  189. </td>
  190. </tr>
  191. <tr id="i5" class="rowColor">
  192. <td class="colFirst"><code>static java.lang.Number[]</code></td>
  193. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#createNumberArray-double:A-">createNumberArray</a></span>(double[]&nbsp;data)</code>
  194. <div class="block">Constructs an array of <code>Number</code> objects from an array of
  195. <code>double</code> primitives.</div>
  196. </td>
  197. </tr>
  198. <tr id="i6" class="altColor">
  199. <td class="colFirst"><code>static java.lang.Number[][]</code></td>
  200. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#createNumberArray2D-double:A:A-">createNumberArray2D</a></span>(double[][]&nbsp;data)</code>
  201. <div class="block">Constructs an array of arrays of <code>Number</code> objects from a
  202. corresponding structure containing <code>double</code> primitives.</div>
  203. </td>
  204. </tr>
  205. <tr id="i7" class="rowColor">
  206. <td class="colFirst"><code>static boolean</code></td>
  207. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#equal-double:A:A-double:A:A-">equal</a></span>(double[][]&nbsp;a,
  208. double[][]&nbsp;b)</code>
  209. <div class="block">Tests two arrays for equality.</div>
  210. </td>
  211. </tr>
  212. <tr id="i8" class="altColor">
  213. <td class="colFirst"><code>static <a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</a></code></td>
  214. <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/jfree/data/DataUtilities.html#getCumulativePercentages-org.jfree.data.KeyedValues-">getCumulativePercentages</a></span>(<a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</a>&nbsp;data)</code>
  215. <div class="block">Returns a <a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data"><code>KeyedValues</code></a> instance that contains the cumulative
  216. percentage values for the data in another <a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data"><code>KeyedValues</code></a> instance.</div>
  217. </td>
  218. </tr>
  219. </table>
  220. <ul class="blockList">
  221. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  222. <!-- -->
  223. </a>
  224. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  225. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  226. </ul>
  227. </li>
  228. </ul>
  229. </li>
  230. </ul>
  231. </div>
  232. <div class="details">
  233. <ul class="blockList">
  234. <li class="blockList">
  235. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  236. <ul class="blockList">
  237. <li class="blockList"><a name="constructor.detail">
  238. <!-- -->
  239. </a>
  240. <h3>Constructor Detail</h3>
  241. <a name="DataUtilities--">
  242. <!-- -->
  243. </a>
  244. <ul class="blockListLast">
  245. <li class="blockList">
  246. <h4>DataUtilities</h4>
  247. <pre>public&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.59">DataUtilities</a>()</pre>
  248. </li>
  249. </ul>
  250. </li>
  251. </ul>
  252. <!-- ============ METHOD DETAIL ========== -->
  253. <ul class="blockList">
  254. <li class="blockList"><a name="method.detail">
  255. <!-- -->
  256. </a>
  257. <h3>Method Detail</h3>
  258. <a name="equal-double:A:A-double:A:A-">
  259. <!-- -->
  260. </a>
  261. <ul class="blockList">
  262. <li class="blockList">
  263. <h4>equal</h4>
  264. <pre>public static&nbsp;boolean&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.74">equal</a>(double[][]&nbsp;a,
  265. double[][]&nbsp;b)</pre>
  266. <div class="block">Tests two arrays for equality. To be considered equal, the arrays must
  267. have exactly the same dimensions, and the values in each array must also
  268. match (two values that qre both NaN or both INF are considered equal
  269. in this test).</div>
  270. <dl>
  271. <dt><span class="paramLabel">Parameters:</span></dt>
  272. <dd><code>a</code> - the first array (<code>null</code> permitted).</dd>
  273. <dd><code>b</code> - the second array (<code>null</code> permitted).</dd>
  274. <dt><span class="returnLabel">Returns:</span></dt>
  275. <dd>A boolean.</dd>
  276. <dt><span class="simpleTagLabel">Since:</span></dt>
  277. <dd>1.0.13</dd>
  278. </dl>
  279. </li>
  280. </ul>
  281. <a name="clone-double:A:A-">
  282. <!-- -->
  283. </a>
  284. <ul class="blockList">
  285. <li class="blockList">
  286. <h4>clone</h4>
  287. <pre>public static&nbsp;double[][]&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.101">clone</a>(double[][]&nbsp;source)</pre>
  288. <div class="block">Returns a clone of the specified array.</div>
  289. <dl>
  290. <dt><span class="paramLabel">Parameters:</span></dt>
  291. <dd><code>source</code> - the source array (<code>null</code> not permitted).</dd>
  292. <dt><span class="returnLabel">Returns:</span></dt>
  293. <dd>A clone of the array.</dd>
  294. <dt><span class="simpleTagLabel">Since:</span></dt>
  295. <dd>1.0.13</dd>
  296. </dl>
  297. </li>
  298. </ul>
  299. <a name="calculateColumnTotal-org.jfree.data.Values2D-int-">
  300. <!-- -->
  301. </a>
  302. <ul class="blockList">
  303. <li class="blockList">
  304. <h4>calculateColumnTotal</h4>
  305. <pre>public static&nbsp;double&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.123">calculateColumnTotal</a>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  306. int&nbsp;column)</pre>
  307. <div class="block">Returns the total of the values in one column of the supplied data
  308. table.</div>
  309. <dl>
  310. <dt><span class="paramLabel">Parameters:</span></dt>
  311. <dd><code>data</code> - the table of values (<code>null</code> not permitted).</dd>
  312. <dd><code>column</code> - the column index (zero-based).</dd>
  313. <dt><span class="returnLabel">Returns:</span></dt>
  314. <dd>The total of the values in the specified column.</dd>
  315. </dl>
  316. </li>
  317. </ul>
  318. <a name="calculateColumnTotal-org.jfree.data.Values2D-int-int:A-">
  319. <!-- -->
  320. </a>
  321. <ul class="blockList">
  322. <li class="blockList">
  323. <h4>calculateColumnTotal</h4>
  324. <pre>public static&nbsp;double&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.148">calculateColumnTotal</a>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  325. int&nbsp;column,
  326. int[]&nbsp;validRows)</pre>
  327. <div class="block">Returns the total of the values in one column of the supplied data
  328. table by taking only the row numbers in the array into account.</div>
  329. <dl>
  330. <dt><span class="paramLabel">Parameters:</span></dt>
  331. <dd><code>data</code> - the table of values (<code>null</code> not permitted).</dd>
  332. <dd><code>column</code> - the column index (zero-based).</dd>
  333. <dd><code>validRows</code> - the array with valid rows (zero-based).</dd>
  334. <dt><span class="returnLabel">Returns:</span></dt>
  335. <dd>The total of the valid values in the specified column.</dd>
  336. <dt><span class="simpleTagLabel">Since:</span></dt>
  337. <dd>1.0.13</dd>
  338. </dl>
  339. </li>
  340. </ul>
  341. <a name="calculateRowTotal-org.jfree.data.Values2D-int-">
  342. <!-- -->
  343. </a>
  344. <ul class="blockList">
  345. <li class="blockList">
  346. <h4>calculateRowTotal</h4>
  347. <pre>public static&nbsp;double&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.174">calculateRowTotal</a>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  348. int&nbsp;row)</pre>
  349. <div class="block">Returns the total of the values in one row of the supplied data
  350. table.</div>
  351. <dl>
  352. <dt><span class="paramLabel">Parameters:</span></dt>
  353. <dd><code>data</code> - the table of values (<code>null</code> not permitted).</dd>
  354. <dd><code>row</code> - the row index (zero-based).</dd>
  355. <dt><span class="returnLabel">Returns:</span></dt>
  356. <dd>The total of the values in the specified row.</dd>
  357. </dl>
  358. </li>
  359. </ul>
  360. <a name="calculateRowTotal-org.jfree.data.Values2D-int-int:A-">
  361. <!-- -->
  362. </a>
  363. <ul class="blockList">
  364. <li class="blockList">
  365. <h4>calculateRowTotal</h4>
  366. <pre>public static&nbsp;double&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.199">calculateRowTotal</a>(<a href="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</a>&nbsp;data,
  367. int&nbsp;row,
  368. int[]&nbsp;validCols)</pre>
  369. <div class="block">Returns the total of the values in one row of the supplied data
  370. table by taking only the column numbers in the array into account.</div>
  371. <dl>
  372. <dt><span class="paramLabel">Parameters:</span></dt>
  373. <dd><code>data</code> - the table of values (<code>null</code> not permitted).</dd>
  374. <dd><code>row</code> - the row index (zero-based).</dd>
  375. <dd><code>validCols</code> - the array with valid cols (zero-based).</dd>
  376. <dt><span class="returnLabel">Returns:</span></dt>
  377. <dd>The total of the valid values in the specified row.</dd>
  378. <dt><span class="simpleTagLabel">Since:</span></dt>
  379. <dd>1.0.13</dd>
  380. </dl>
  381. </li>
  382. </ul>
  383. <a name="createNumberArray-double:A-">
  384. <!-- -->
  385. </a>
  386. <ul class="blockList">
  387. <li class="blockList">
  388. <h4>createNumberArray</h4>
  389. <pre>public static&nbsp;java.lang.Number[]&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.224">createNumberArray</a>(double[]&nbsp;data)</pre>
  390. <div class="block">Constructs an array of <code>Number</code> objects from an array of
  391. <code>double</code> primitives.</div>
  392. <dl>
  393. <dt><span class="paramLabel">Parameters:</span></dt>
  394. <dd><code>data</code> - the data (<code>null</code> not permitted).</dd>
  395. <dt><span class="returnLabel">Returns:</span></dt>
  396. <dd>An array of <code>Double</code>.</dd>
  397. </dl>
  398. </li>
  399. </ul>
  400. <a name="createNumberArray2D-double:A:A-">
  401. <!-- -->
  402. </a>
  403. <ul class="blockList">
  404. <li class="blockList">
  405. <h4>createNumberArray2D</h4>
  406. <pre>public static&nbsp;java.lang.Number[][]&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.241">createNumberArray2D</a>(double[][]&nbsp;data)</pre>
  407. <div class="block">Constructs an array of arrays of <code>Number</code> objects from a
  408. corresponding structure containing <code>double</code> primitives.</div>
  409. <dl>
  410. <dt><span class="paramLabel">Parameters:</span></dt>
  411. <dd><code>data</code> - the data (<code>null</code> not permitted).</dd>
  412. <dt><span class="returnLabel">Returns:</span></dt>
  413. <dd>An array of <code>Double</code>.</dd>
  414. </dl>
  415. </li>
  416. </ul>
  417. <a name="getCumulativePercentages-org.jfree.data.KeyedValues-">
  418. <!-- -->
  419. </a>
  420. <ul class="blockListLast">
  421. <li class="blockList">
  422. <h4>getCumulativePercentages</h4>
  423. <pre>public static&nbsp;<a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</a>&nbsp;<a href="../../../src-html/org/jfree/data/DataUtilities.html#line.261">getCumulativePercentages</a>(<a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</a>&nbsp;data)</pre>
  424. <div class="block">Returns a <a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data"><code>KeyedValues</code></a> instance that contains the cumulative
  425. percentage values for the data in another <a href="../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data"><code>KeyedValues</code></a> instance.
  426. <p>
  427. The percentages are values between 0.0 and 1.0 (where 1.0 = 100%).</div>
  428. <dl>
  429. <dt><span class="paramLabel">Parameters:</span></dt>
  430. <dd><code>data</code> - the data (<code>null</code> not permitted).</dd>
  431. <dt><span class="returnLabel">Returns:</span></dt>
  432. <dd>The cumulative percentages.</dd>
  433. </dl>
  434. </li>
  435. </ul>
  436. </li>
  437. </ul>
  438. </li>
  439. </ul>
  440. </div>
  441. </div>
  442. <!-- ========= END OF CLASS DATA ========= -->
  443. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  444. <div class="bottomNav"><a name="navbar.bottom">
  445. <!-- -->
  446. </a>
  447. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  448. <a name="navbar.bottom.firstrow">
  449. <!-- -->
  450. </a>
  451. <ul class="navList" title="Navigation">
  452. <li><a href="../../../overview-summary.html">Overview</a></li>
  453. <li><a href="package-summary.html">Package</a></li>
  454. <li class="navBarCell1Rev">Class</li>
  455. <li><a href="class-use/DataUtilities.html">Use</a></li>
  456. <li><a href="package-tree.html">Tree</a></li>
  457. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  458. <li><a href="../../../index-files/index-1.html">Index</a></li>
  459. <li><a href="../../../help-doc.html">Help</a></li>
  460. </ul>
  461. </div>
  462. <div class="subNav">
  463. <ul class="navList">
  464. <li><a href="../../../org/jfree/data/ComparableObjectSeries.html" title="class in org.jfree.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  465. <li><a href="../../../org/jfree/data/DefaultKeyedValue.html" title="class in org.jfree.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  466. </ul>
  467. <ul class="navList">
  468. <li><a href="../../../index.html?org/jfree/data/DataUtilities.html" target="_top">Frames</a></li>
  469. <li><a href="DataUtilities.html" target="_top">No&nbsp;Frames</a></li>
  470. </ul>
  471. <ul class="navList" id="allclasses_navbar_bottom">
  472. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  473. </ul>
  474. <div>
  475. <script type="text/javascript"><!--
  476. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  477. if(window==top) {
  478. allClassesLink.style.display = "block";
  479. }
  480. else {
  481. allClassesLink.style.display = "none";
  482. }
  483. //-->
  484. </script>
  485. </div>
  486. <div>
  487. <ul class="subNavList">
  488. <li>Summary:&nbsp;</li>
  489. <li>Nested&nbsp;|&nbsp;</li>
  490. <li>Field&nbsp;|&nbsp;</li>
  491. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  492. <li><a href="#method.summary">Method</a></li>
  493. </ul>
  494. <ul class="subNavList">
  495. <li>Detail:&nbsp;</li>
  496. <li>Field&nbsp;|&nbsp;</li>
  497. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  498. <li><a href="#method.detail">Method</a></li>
  499. </ul>
  500. </div>
  501. <a name="skip.navbar.bottom">
  502. <!-- -->
  503. </a></div>
  504. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  505. </body>
  506. </html>