CrosshairState.html 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897
  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:32 CEST 2014 -->
  6. <title>CrosshairState (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="CrosshairState (JFreeChart Class Library (version 1.0.19-fx))";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":42,"i8":42,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":42,"i17":10,"i18":42,"i19":10,"i20":42,"i21":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated 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/CrosshairState.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/chart/plot/Crosshair.html" title="class in org.jfree.chart.plot"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/jfree/chart/plot/DatasetRenderingOrder.html" title="class in org.jfree.chart.plot"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/chart/plot/CrosshairState.html" target="_top">Frames</a></li>
  57. <li><a href="CrosshairState.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.chart.plot</div>
  96. <h2 title="Class CrosshairState" class="title">Class CrosshairState</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.chart.plot.CrosshairState</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <dl>
  111. <dt>Direct Known Subclasses:</dt>
  112. <dd><a href="../../../../org/jfree/chart/plot/CategoryCrosshairState.html" title="class in org.jfree.chart.plot">CategoryCrosshairState</a>, <a href="../../../../org/jfree/chart/plot/XYCrosshairState.html" title="class in org.jfree.chart.plot">XYCrosshairState</a></dd>
  113. </dl>
  114. <hr>
  115. <br>
  116. <pre>public class <a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.61">CrosshairState</a>
  117. extends java.lang.Object</pre>
  118. <div class="block">Maintains state information about crosshairs on a plot between successive
  119. calls to the renderer's draw method. This class is used internally by
  120. JFreeChart - it is not intended for external use.</div>
  121. </li>
  122. </ul>
  123. </div>
  124. <div class="summary">
  125. <ul class="blockList">
  126. <li class="blockList">
  127. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  128. <ul class="blockList">
  129. <li class="blockList"><a name="constructor.summary">
  130. <!-- -->
  131. </a>
  132. <h3>Constructor Summary</h3>
  133. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  134. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  135. <tr>
  136. <th class="colOne" scope="col">Constructor and Description</th>
  137. </tr>
  138. <tr class="altColor">
  139. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#CrosshairState--">CrosshairState</a></span>()</code>
  140. <div class="block">Creates a new <code>CrosshairState</code> instance that calculates
  141. distance in Java2D space.</div>
  142. </td>
  143. </tr>
  144. <tr class="rowColor">
  145. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#CrosshairState-boolean-">CrosshairState</a></span>(boolean&nbsp;calculateDistanceInDataSpace)</code>
  146. <div class="block">Creates a new <code>CrosshairState</code> instance.</div>
  147. </td>
  148. </tr>
  149. </table>
  150. </li>
  151. </ul>
  152. <!-- ========== METHOD SUMMARY =========== -->
  153. <ul class="blockList">
  154. <li class="blockList"><a name="method.summary">
  155. <!-- -->
  156. </a>
  157. <h3>Method Summary</h3>
  158. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  159. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  160. <tr>
  161. <th class="colFirst" scope="col">Modifier and Type</th>
  162. <th class="colLast" scope="col">Method and Description</th>
  163. </tr>
  164. <tr id="i0" class="altColor">
  165. <td class="colFirst"><code>java.awt.geom.Point2D</code></td>
  166. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getAnchor--">getAnchor</a></span>()</code>
  167. <div class="block">Returns the anchor point.</div>
  168. </td>
  169. </tr>
  170. <tr id="i1" class="rowColor">
  171. <td class="colFirst"><code>double</code></td>
  172. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getAnchorX--">getAnchorX</a></span>()</code>
  173. <div class="block">Returns the x-coordinate (in data space) for the anchor point.</div>
  174. </td>
  175. </tr>
  176. <tr id="i2" class="altColor">
  177. <td class="colFirst"><code>double</code></td>
  178. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getAnchorY--">getAnchorY</a></span>()</code>
  179. <div class="block">Returns the y-coordinate (in data space) for the anchor point.</div>
  180. </td>
  181. </tr>
  182. <tr id="i3" class="rowColor">
  183. <td class="colFirst"><code>double</code></td>
  184. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairDistance--">getCrosshairDistance</a></span>()</code>
  185. <div class="block">Returns the distance between the anchor point and the current crosshair
  186. point.</div>
  187. </td>
  188. </tr>
  189. <tr id="i4" class="altColor">
  190. <td class="colFirst"><code>double</code></td>
  191. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairX--">getCrosshairX</a></span>()</code>
  192. <div class="block">Get the x-value for the crosshair point.</div>
  193. </td>
  194. </tr>
  195. <tr id="i5" class="rowColor">
  196. <td class="colFirst"><code>double</code></td>
  197. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairY--">getCrosshairY</a></span>()</code>
  198. <div class="block">Get the y-value for the crosshair point.</div>
  199. </td>
  200. </tr>
  201. <tr id="i6" class="altColor">
  202. <td class="colFirst"><code>int</code></td>
  203. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getDatasetIndex--">getDatasetIndex</a></span>()</code>
  204. <div class="block">Returns the dataset index that the crosshair values relate to.</div>
  205. </td>
  206. </tr>
  207. <tr id="i7" class="rowColor">
  208. <td class="colFirst"><code>int</code></td>
  209. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getDomainAxisIndex--">getDomainAxisIndex</a></span>()</code>
  210. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  211. <div class="block"><span class="deprecationComment">As of version 1.0.11, the domain axis should be determined
  212. using the dataset index.</span></div>
  213. </div>
  214. </td>
  215. </tr>
  216. <tr id="i8" class="altColor">
  217. <td class="colFirst"><code>int</code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getRangeAxisIndex--">getRangeAxisIndex</a></span>()</code>
  219. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  220. <div class="block"><span class="deprecationComment">As of version 1.0.11, the domain axis should be determined
  221. using the dataset index.</span></div>
  222. </div>
  223. </td>
  224. </tr>
  225. <tr id="i9" class="rowColor">
  226. <td class="colFirst"><code>void</code></td>
  227. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setAnchor-java.awt.geom.Point2D-">setAnchor</a></span>(java.awt.geom.Point2D&nbsp;anchor)</code>
  228. <div class="block">Sets the anchor point.</div>
  229. </td>
  230. </tr>
  231. <tr id="i10" class="altColor">
  232. <td class="colFirst"><code>void</code></td>
  233. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setAnchorX-double-">setAnchorX</a></span>(double&nbsp;x)</code>
  234. <div class="block">Sets the x-coordinate (in data space) for the anchor point.</div>
  235. </td>
  236. </tr>
  237. <tr id="i11" class="rowColor">
  238. <td class="colFirst"><code>void</code></td>
  239. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setAnchorY-double-">setAnchorY</a></span>(double&nbsp;y)</code>
  240. <div class="block">Sets the y-coordinate (in data space) for the anchor point.</div>
  241. </td>
  242. </tr>
  243. <tr id="i12" class="altColor">
  244. <td class="colFirst"><code>void</code></td>
  245. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairDistance-double-">setCrosshairDistance</a></span>(double&nbsp;distance)</code>
  246. <div class="block">Sets the distance between the anchor point and the current crosshair
  247. point.</div>
  248. </td>
  249. </tr>
  250. <tr id="i13" class="rowColor">
  251. <td class="colFirst"><code>void</code></td>
  252. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairX-double-">setCrosshairX</a></span>(double&nbsp;x)</code>
  253. <div class="block">Sets the x coordinate for the crosshair.</div>
  254. </td>
  255. </tr>
  256. <tr id="i14" class="altColor">
  257. <td class="colFirst"><code>void</code></td>
  258. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairY-double-">setCrosshairY</a></span>(double&nbsp;y)</code>
  259. <div class="block">Sets the y coordinate for the crosshair.</div>
  260. </td>
  261. </tr>
  262. <tr id="i15" class="rowColor">
  263. <td class="colFirst"><code>void</code></td>
  264. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setDatasetIndex-int-">setDatasetIndex</a></span>(int&nbsp;index)</code>
  265. <div class="block">Sets the dataset index that the current crosshair values relate to.</div>
  266. </td>
  267. </tr>
  268. <tr id="i16" class="altColor">
  269. <td class="colFirst"><code>void</code></td>
  270. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-double-double-org.jfree.chart.plot.PlotOrientation-">updateCrosshairPoint</a></span>(double&nbsp;x,
  271. double&nbsp;y,
  272. double&nbsp;transX,
  273. double&nbsp;transY,
  274. <a href="../../../../org/jfree/chart/plot/PlotOrientation.html" title="class in org.jfree.chart.plot">PlotOrientation</a>&nbsp;orientation)</code>
  275. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  276. <div class="block"><span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-int-int-double-double-org.jfree.chart.plot.PlotOrientation-"><code>updateCrosshairPoint(double, double, int, int,
  277. double, double, PlotOrientation)</code></a>. See bug report 1086307.</span></div>
  278. </div>
  279. </td>
  280. </tr>
  281. <tr id="i17" class="rowColor">
  282. <td class="colFirst"><code>void</code></td>
  283. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-int-int-double-double-org.jfree.chart.plot.PlotOrientation-">updateCrosshairPoint</a></span>(double&nbsp;x,
  284. double&nbsp;y,
  285. int&nbsp;domainAxisIndex,
  286. int&nbsp;rangeAxisIndex,
  287. double&nbsp;transX,
  288. double&nbsp;transY,
  289. <a href="../../../../org/jfree/chart/plot/PlotOrientation.html" title="class in org.jfree.chart.plot">PlotOrientation</a>&nbsp;orientation)</code>
  290. <div class="block">Evaluates a data point and if it is the closest to the anchor point it
  291. becomes the new crosshair point.</div>
  292. </td>
  293. </tr>
  294. <tr id="i18" class="altColor">
  295. <td class="colFirst"><code>void</code></td>
  296. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairX-double-">updateCrosshairX</a></span>(double&nbsp;candidateX)</code>
  297. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  298. <div class="block"><span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairX-double-int-"><code>updateCrosshairX(double, int)</code></a>. See bug report
  299. 1086307.</span></div>
  300. </div>
  301. </td>
  302. </tr>
  303. <tr id="i19" class="rowColor">
  304. <td class="colFirst"><code>void</code></td>
  305. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairX-double-int-">updateCrosshairX</a></span>(double&nbsp;candidateX,
  306. int&nbsp;domainAxisIndex)</code>
  307. <div class="block">Evaluates an x-value and if it is the closest to the anchor x-value it
  308. becomes the new crosshair value.</div>
  309. </td>
  310. </tr>
  311. <tr id="i20" class="altColor">
  312. <td class="colFirst"><code>void</code></td>
  313. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairY-double-">updateCrosshairY</a></span>(double&nbsp;candidateY)</code>
  314. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  315. <div class="block"><span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairY-double-int-"><code>updateCrosshairY(double, int)</code></a>. See bug report
  316. 1086307.</span></div>
  317. </div>
  318. </td>
  319. </tr>
  320. <tr id="i21" class="rowColor">
  321. <td class="colFirst"><code>void</code></td>
  322. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairY-double-int-">updateCrosshairY</a></span>(double&nbsp;candidateY,
  323. int&nbsp;rangeAxisIndex)</code>
  324. <div class="block">Evaluates a y-value and if it is the closest to the anchor y-value it
  325. becomes the new crosshair value.</div>
  326. </td>
  327. </tr>
  328. </table>
  329. <ul class="blockList">
  330. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  331. <!-- -->
  332. </a>
  333. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  334. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  335. </ul>
  336. </li>
  337. </ul>
  338. </li>
  339. </ul>
  340. </div>
  341. <div class="details">
  342. <ul class="blockList">
  343. <li class="blockList">
  344. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  345. <ul class="blockList">
  346. <li class="blockList"><a name="constructor.detail">
  347. <!-- -->
  348. </a>
  349. <h3>Constructor Detail</h3>
  350. <a name="CrosshairState--">
  351. <!-- -->
  352. </a>
  353. <ul class="blockList">
  354. <li class="blockList">
  355. <h4>CrosshairState</h4>
  356. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.118">CrosshairState</a>()</pre>
  357. <div class="block">Creates a new <code>CrosshairState</code> instance that calculates
  358. distance in Java2D space.</div>
  359. </li>
  360. </ul>
  361. <a name="CrosshairState-boolean-">
  362. <!-- -->
  363. </a>
  364. <ul class="blockListLast">
  365. <li class="blockList">
  366. <h4>CrosshairState</h4>
  367. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.129">CrosshairState</a>(boolean&nbsp;calculateDistanceInDataSpace)</pre>
  368. <div class="block">Creates a new <code>CrosshairState</code> instance.</div>
  369. <dl>
  370. <dt><span class="paramLabel">Parameters:</span></dt>
  371. <dd><code>calculateDistanceInDataSpace</code> - a flag that controls whether the
  372. distance is calculated in data
  373. space or Java2D space.</dd>
  374. </dl>
  375. </li>
  376. </ul>
  377. </li>
  378. </ul>
  379. <!-- ============ METHOD DETAIL ========== -->
  380. <ul class="blockList">
  381. <li class="blockList"><a name="method.detail">
  382. <!-- -->
  383. </a>
  384. <h3>Method Detail</h3>
  385. <a name="getCrosshairDistance--">
  386. <!-- -->
  387. </a>
  388. <ul class="blockList">
  389. <li class="blockList">
  390. <h4>getCrosshairDistance</h4>
  391. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.142">getCrosshairDistance</a>()</pre>
  392. <div class="block">Returns the distance between the anchor point and the current crosshair
  393. point.</div>
  394. <dl>
  395. <dt><span class="returnLabel">Returns:</span></dt>
  396. <dd>The distance.</dd>
  397. <dt><span class="simpleTagLabel">Since:</span></dt>
  398. <dd>1.0.3</dd>
  399. <dt><span class="seeLabel">See Also:</span></dt>
  400. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairDistance-double-"><code>setCrosshairDistance(double)</code></a></dd>
  401. </dl>
  402. </li>
  403. </ul>
  404. <a name="setCrosshairDistance-double-">
  405. <!-- -->
  406. </a>
  407. <ul class="blockList">
  408. <li class="blockList">
  409. <h4>setCrosshairDistance</h4>
  410. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.156">setCrosshairDistance</a>(double&nbsp;distance)</pre>
  411. <div class="block">Sets the distance between the anchor point and the current crosshair
  412. point. As each data point is processed, its distance to the anchor
  413. point is compared with this value and, if it is closer, the data point
  414. becomes the new crosshair point.</div>
  415. <dl>
  416. <dt><span class="paramLabel">Parameters:</span></dt>
  417. <dd><code>distance</code> - the distance.</dd>
  418. <dt><span class="seeLabel">See Also:</span></dt>
  419. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairDistance--"><code>getCrosshairDistance()</code></a></dd>
  420. </dl>
  421. </li>
  422. </ul>
  423. <a name="updateCrosshairPoint-double-double-double-double-org.jfree.chart.plot.PlotOrientation-">
  424. <!-- -->
  425. </a>
  426. <ul class="blockList">
  427. <li class="blockList">
  428. <h4>updateCrosshairPoint</h4>
  429. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.179">updateCrosshairPoint</a>(double&nbsp;x,
  430. double&nbsp;y,
  431. double&nbsp;transX,
  432. double&nbsp;transY,
  433. <a href="../../../../org/jfree/chart/plot/PlotOrientation.html" title="class in org.jfree.chart.plot">PlotOrientation</a>&nbsp;orientation)</pre>
  434. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-int-int-double-double-org.jfree.chart.plot.PlotOrientation-"><code>updateCrosshairPoint(double, double, int, int,
  435. double, double, PlotOrientation)</code></a>. See bug report 1086307.</span></div>
  436. <div class="block">Evaluates a data point and if it is the closest to the anchor point it
  437. becomes the new crosshair point.
  438. <P>
  439. To understand this method, you need to know the context in which it will
  440. be called. An instance of this class is passed to an
  441. <a href="../../../../org/jfree/chart/renderer/xy/XYItemRenderer.html" title="interface in org.jfree.chart.renderer.xy"><code>XYItemRenderer</code></a> as
  442. each data point is plotted. As the point is plotted, it is passed to
  443. this method to see if it should be the new crosshair point.</div>
  444. <dl>
  445. <dt><span class="paramLabel">Parameters:</span></dt>
  446. <dd><code>x</code> - x coordinate (measured against the domain axis).</dd>
  447. <dd><code>y</code> - y coordinate (measured against the range axis).</dd>
  448. <dd><code>transX</code> - x translated into Java2D space.</dd>
  449. <dd><code>transY</code> - y translated into Java2D space.</dd>
  450. <dd><code>orientation</code> - the plot orientation.</dd>
  451. </dl>
  452. </li>
  453. </ul>
  454. <a name="updateCrosshairPoint-double-double-int-int-double-double-org.jfree.chart.plot.PlotOrientation-">
  455. <!-- -->
  456. </a>
  457. <ul class="blockList">
  458. <li class="blockList">
  459. <h4>updateCrosshairPoint</h4>
  460. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.205">updateCrosshairPoint</a>(double&nbsp;x,
  461. double&nbsp;y,
  462. int&nbsp;domainAxisIndex,
  463. int&nbsp;rangeAxisIndex,
  464. double&nbsp;transX,
  465. double&nbsp;transY,
  466. <a href="../../../../org/jfree/chart/plot/PlotOrientation.html" title="class in org.jfree.chart.plot">PlotOrientation</a>&nbsp;orientation)</pre>
  467. <div class="block">Evaluates a data point and if it is the closest to the anchor point it
  468. becomes the new crosshair point.
  469. <P>
  470. To understand this method, you need to know the context in which it will
  471. be called. An instance of this class is passed to an
  472. <a href="../../../../org/jfree/chart/renderer/xy/XYItemRenderer.html" title="interface in org.jfree.chart.renderer.xy"><code>XYItemRenderer</code></a> as
  473. each data point is plotted. As the point is plotted, it is passed to
  474. this method to see if it should be the new crosshair point.</div>
  475. <dl>
  476. <dt><span class="paramLabel">Parameters:</span></dt>
  477. <dd><code>x</code> - x coordinate (measured against the domain axis).</dd>
  478. <dd><code>y</code> - y coordinate (measured against the range axis).</dd>
  479. <dd><code>domainAxisIndex</code> - the index of the domain axis for this point.</dd>
  480. <dd><code>rangeAxisIndex</code> - the index of the range axis for this point.</dd>
  481. <dd><code>transX</code> - x translated into Java2D space.</dd>
  482. <dd><code>transY</code> - y translated into Java2D space.</dd>
  483. <dd><code>orientation</code> - the plot orientation.</dd>
  484. <dt><span class="simpleTagLabel">Since:</span></dt>
  485. <dd>1.0.4</dd>
  486. </dl>
  487. </li>
  488. </ul>
  489. <a name="updateCrosshairX-double-">
  490. <!-- -->
  491. </a>
  492. <ul class="blockList">
  493. <li class="blockList">
  494. <h4>updateCrosshairX</h4>
  495. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.250">updateCrosshairX</a>(double&nbsp;candidateX)</pre>
  496. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairX-double-int-"><code>updateCrosshairX(double, int)</code></a>. See bug report
  497. 1086307.</span></div>
  498. <div class="block">Evaluates an x-value and if it is the closest to the anchor x-value it
  499. becomes the new crosshair value.
  500. <P>
  501. Used in cases where only the x-axis is numerical.</div>
  502. <dl>
  503. <dt><span class="paramLabel">Parameters:</span></dt>
  504. <dd><code>candidateX</code> - x position of the candidate for the new crosshair
  505. point.</dd>
  506. </dl>
  507. </li>
  508. </ul>
  509. <a name="updateCrosshairX-double-int-">
  510. <!-- -->
  511. </a>
  512. <ul class="blockList">
  513. <li class="blockList">
  514. <h4>updateCrosshairX</h4>
  515. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.266">updateCrosshairX</a>(double&nbsp;candidateX,
  516. int&nbsp;domainAxisIndex)</pre>
  517. <div class="block">Evaluates an x-value and if it is the closest to the anchor x-value it
  518. becomes the new crosshair value.
  519. <P>
  520. Used in cases where only the x-axis is numerical.</div>
  521. <dl>
  522. <dt><span class="paramLabel">Parameters:</span></dt>
  523. <dd><code>candidateX</code> - x position of the candidate for the new crosshair
  524. point.</dd>
  525. <dd><code>domainAxisIndex</code> - the index of the domain axis for this x-value.</dd>
  526. <dt><span class="simpleTagLabel">Since:</span></dt>
  527. <dd>1.0.4</dd>
  528. </dl>
  529. </li>
  530. </ul>
  531. <a name="updateCrosshairY-double-">
  532. <!-- -->
  533. </a>
  534. <ul class="blockList">
  535. <li class="blockList">
  536. <h4>updateCrosshairY</h4>
  537. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.289">updateCrosshairY</a>(double&nbsp;candidateY)</pre>
  538. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairY-double-int-"><code>updateCrosshairY(double, int)</code></a>. See bug report
  539. 1086307.</span></div>
  540. <div class="block">Evaluates a y-value and if it is the closest to the anchor y-value it
  541. becomes the new crosshair value.
  542. <P>
  543. Used in cases where only the y-axis is numerical.</div>
  544. <dl>
  545. <dt><span class="paramLabel">Parameters:</span></dt>
  546. <dd><code>candidateY</code> - y position of the candidate for the new crosshair
  547. point.</dd>
  548. </dl>
  549. </li>
  550. </ul>
  551. <a name="updateCrosshairY-double-int-">
  552. <!-- -->
  553. </a>
  554. <ul class="blockList">
  555. <li class="blockList">
  556. <h4>updateCrosshairY</h4>
  557. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.305">updateCrosshairY</a>(double&nbsp;candidateY,
  558. int&nbsp;rangeAxisIndex)</pre>
  559. <div class="block">Evaluates a y-value and if it is the closest to the anchor y-value it
  560. becomes the new crosshair value.
  561. <P>
  562. Used in cases where only the y-axis is numerical.</div>
  563. <dl>
  564. <dt><span class="paramLabel">Parameters:</span></dt>
  565. <dd><code>candidateY</code> - y position of the candidate for the new crosshair
  566. point.</dd>
  567. <dd><code>rangeAxisIndex</code> - the index of the range axis for this y-value.</dd>
  568. <dt><span class="simpleTagLabel">Since:</span></dt>
  569. <dd>1.0.4</dd>
  570. </dl>
  571. </li>
  572. </ul>
  573. <a name="getAnchor--">
  574. <!-- -->
  575. </a>
  576. <ul class="blockList">
  577. <li class="blockList">
  578. <h4>getAnchor</h4>
  579. <pre>public&nbsp;java.awt.geom.Point2D&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.324">getAnchor</a>()</pre>
  580. <div class="block">Returns the anchor point.</div>
  581. <dl>
  582. <dt><span class="returnLabel">Returns:</span></dt>
  583. <dd>The anchor point.</dd>
  584. <dt><span class="simpleTagLabel">Since:</span></dt>
  585. <dd>1.0.3</dd>
  586. <dt><span class="seeLabel">See Also:</span></dt>
  587. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setAnchor-java.awt.geom.Point2D-"><code>setAnchor(Point2D)</code></a></dd>
  588. </dl>
  589. </li>
  590. </ul>
  591. <a name="setAnchor-java.awt.geom.Point2D-">
  592. <!-- -->
  593. </a>
  594. <ul class="blockList">
  595. <li class="blockList">
  596. <h4>setAnchor</h4>
  597. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.341">setAnchor</a>(java.awt.geom.Point2D&nbsp;anchor)</pre>
  598. <div class="block">Sets the anchor point. This is usually the mouse click point in a chart
  599. panel, and the crosshair point will often be the data item that is
  600. closest to the anchor point.
  601. <br><br>
  602. Note that the x and y coordinates (in data space) are not updated by
  603. this method - the caller is responsible for ensuring that this happens
  604. in sync.</div>
  605. <dl>
  606. <dt><span class="paramLabel">Parameters:</span></dt>
  607. <dd><code>anchor</code> - the anchor point (<code>null</code> permitted).</dd>
  608. <dt><span class="seeLabel">See Also:</span></dt>
  609. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getAnchor--"><code>getAnchor()</code></a></dd>
  610. </dl>
  611. </li>
  612. </ul>
  613. <a name="getAnchorX--">
  614. <!-- -->
  615. </a>
  616. <ul class="blockList">
  617. <li class="blockList">
  618. <h4>getAnchorX</h4>
  619. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.352">getAnchorX</a>()</pre>
  620. <div class="block">Returns the x-coordinate (in data space) for the anchor point.</div>
  621. <dl>
  622. <dt><span class="returnLabel">Returns:</span></dt>
  623. <dd>The x-coordinate of the anchor point.</dd>
  624. <dt><span class="simpleTagLabel">Since:</span></dt>
  625. <dd>1.0.3</dd>
  626. </dl>
  627. </li>
  628. </ul>
  629. <a name="setAnchorX-double-">
  630. <!-- -->
  631. </a>
  632. <ul class="blockList">
  633. <li class="blockList">
  634. <h4>setAnchorX</h4>
  635. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.365">setAnchorX</a>(double&nbsp;x)</pre>
  636. <div class="block">Sets the x-coordinate (in data space) for the anchor point. Note that
  637. this does NOT update the anchor itself - the caller is responsible for
  638. ensuring this is done in sync.</div>
  639. <dl>
  640. <dt><span class="paramLabel">Parameters:</span></dt>
  641. <dd><code>x</code> - the x-coordinate.</dd>
  642. <dt><span class="simpleTagLabel">Since:</span></dt>
  643. <dd>1.0.3</dd>
  644. </dl>
  645. </li>
  646. </ul>
  647. <a name="getAnchorY--">
  648. <!-- -->
  649. </a>
  650. <ul class="blockList">
  651. <li class="blockList">
  652. <h4>getAnchorY</h4>
  653. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.376">getAnchorY</a>()</pre>
  654. <div class="block">Returns the y-coordinate (in data space) for the anchor point.</div>
  655. <dl>
  656. <dt><span class="returnLabel">Returns:</span></dt>
  657. <dd>The y-coordinate of teh anchor point.</dd>
  658. <dt><span class="simpleTagLabel">Since:</span></dt>
  659. <dd>1.0.3</dd>
  660. </dl>
  661. </li>
  662. </ul>
  663. <a name="setAnchorY-double-">
  664. <!-- -->
  665. </a>
  666. <ul class="blockList">
  667. <li class="blockList">
  668. <h4>setAnchorY</h4>
  669. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.389">setAnchorY</a>(double&nbsp;y)</pre>
  670. <div class="block">Sets the y-coordinate (in data space) for the anchor point. Note that
  671. this does NOT update the anchor itself - the caller is responsible for
  672. ensuring this is done in sync.</div>
  673. <dl>
  674. <dt><span class="paramLabel">Parameters:</span></dt>
  675. <dd><code>y</code> - the y-coordinate.</dd>
  676. <dt><span class="simpleTagLabel">Since:</span></dt>
  677. <dd>1.0.3</dd>
  678. </dl>
  679. </li>
  680. </ul>
  681. <a name="getCrosshairX--">
  682. <!-- -->
  683. </a>
  684. <ul class="blockList">
  685. <li class="blockList">
  686. <h4>getCrosshairX</h4>
  687. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.400">getCrosshairX</a>()</pre>
  688. <div class="block">Get the x-value for the crosshair point.</div>
  689. <dl>
  690. <dt><span class="returnLabel">Returns:</span></dt>
  691. <dd>The x position of the crosshair point.</dd>
  692. <dt><span class="seeLabel">See Also:</span></dt>
  693. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairX-double-"><code>setCrosshairX(double)</code></a></dd>
  694. </dl>
  695. </li>
  696. </ul>
  697. <a name="setCrosshairX-double-">
  698. <!-- -->
  699. </a>
  700. <ul class="blockList">
  701. <li class="blockList">
  702. <h4>setCrosshairX</h4>
  703. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.415">setCrosshairX</a>(double&nbsp;x)</pre>
  704. <div class="block">Sets the x coordinate for the crosshair. This is the coordinate in data
  705. space measured against the domain axis.</div>
  706. <dl>
  707. <dt><span class="paramLabel">Parameters:</span></dt>
  708. <dd><code>x</code> - the coordinate.</dd>
  709. <dt><span class="seeLabel">See Also:</span></dt>
  710. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairX--"><code>getCrosshairX()</code></a>,
  711. <a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairY-double-"><code>setCrosshairY(double)</code></a>,
  712. <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-double-double-org.jfree.chart.plot.PlotOrientation-"><code>updateCrosshairPoint(double, double, double, double,
  713. PlotOrientation)</code></a></dd>
  714. </dl>
  715. </li>
  716. </ul>
  717. <a name="getCrosshairY--">
  718. <!-- -->
  719. </a>
  720. <ul class="blockList">
  721. <li class="blockList">
  722. <h4>getCrosshairY</h4>
  723. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.427">getCrosshairY</a>()</pre>
  724. <div class="block">Get the y-value for the crosshair point. This is the coordinate in data
  725. space measured against the range axis.</div>
  726. <dl>
  727. <dt><span class="returnLabel">Returns:</span></dt>
  728. <dd>The y position of the crosshair point.</dd>
  729. <dt><span class="seeLabel">See Also:</span></dt>
  730. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairY-double-"><code>setCrosshairY(double)</code></a></dd>
  731. </dl>
  732. </li>
  733. </ul>
  734. <a name="setCrosshairY-double-">
  735. <!-- -->
  736. </a>
  737. <ul class="blockList">
  738. <li class="blockList">
  739. <h4>setCrosshairY</h4>
  740. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.441">setCrosshairY</a>(double&nbsp;y)</pre>
  741. <div class="block">Sets the y coordinate for the crosshair.</div>
  742. <dl>
  743. <dt><span class="paramLabel">Parameters:</span></dt>
  744. <dd><code>y</code> - the y coordinate.</dd>
  745. <dt><span class="seeLabel">See Also:</span></dt>
  746. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getCrosshairY--"><code>getCrosshairY()</code></a>,
  747. <a href="../../../../org/jfree/chart/plot/CrosshairState.html#setCrosshairX-double-"><code>setCrosshairX(double)</code></a>,
  748. <a href="../../../../org/jfree/chart/plot/CrosshairState.html#updateCrosshairPoint-double-double-double-double-org.jfree.chart.plot.PlotOrientation-"><code>updateCrosshairPoint(double, double, double, double,
  749. PlotOrientation)</code></a></dd>
  750. </dl>
  751. </li>
  752. </ul>
  753. <a name="getDatasetIndex--">
  754. <!-- -->
  755. </a>
  756. <ul class="blockList">
  757. <li class="blockList">
  758. <h4>getDatasetIndex</h4>
  759. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.456">getDatasetIndex</a>()</pre>
  760. <div class="block">Returns the dataset index that the crosshair values relate to. The
  761. dataset is mapped to specific axes, and this is how the crosshairs are
  762. mapped also.</div>
  763. <dl>
  764. <dt><span class="returnLabel">Returns:</span></dt>
  765. <dd>The dataset index.</dd>
  766. <dt><span class="simpleTagLabel">Since:</span></dt>
  767. <dd>1.0.11</dd>
  768. <dt><span class="seeLabel">See Also:</span></dt>
  769. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#setDatasetIndex-int-"><code>setDatasetIndex(int)</code></a></dd>
  770. </dl>
  771. </li>
  772. </ul>
  773. <a name="setDatasetIndex-int-">
  774. <!-- -->
  775. </a>
  776. <ul class="blockList">
  777. <li class="blockList">
  778. <h4>setDatasetIndex</h4>
  779. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.469">setDatasetIndex</a>(int&nbsp;index)</pre>
  780. <div class="block">Sets the dataset index that the current crosshair values relate to.</div>
  781. <dl>
  782. <dt><span class="paramLabel">Parameters:</span></dt>
  783. <dd><code>index</code> - the dataset index.</dd>
  784. <dt><span class="simpleTagLabel">Since:</span></dt>
  785. <dd>1.0.11</dd>
  786. <dt><span class="seeLabel">See Also:</span></dt>
  787. <dd><a href="../../../../org/jfree/chart/plot/CrosshairState.html#getDatasetIndex--"><code>getDatasetIndex()</code></a></dd>
  788. </dl>
  789. </li>
  790. </ul>
  791. <a name="getDomainAxisIndex--">
  792. <!-- -->
  793. </a>
  794. <ul class="blockList">
  795. <li class="blockList">
  796. <h4>getDomainAxisIndex</h4>
  797. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.483">getDomainAxisIndex</a>()</pre>
  798. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of version 1.0.11, the domain axis should be determined
  799. using the dataset index.</span></div>
  800. <div class="block">Returns the domain axis index for the crosshair x-value.</div>
  801. <dl>
  802. <dt><span class="returnLabel">Returns:</span></dt>
  803. <dd>The domain axis index.</dd>
  804. <dt><span class="simpleTagLabel">Since:</span></dt>
  805. <dd>1.0.4</dd>
  806. </dl>
  807. </li>
  808. </ul>
  809. <a name="getRangeAxisIndex--">
  810. <!-- -->
  811. </a>
  812. <ul class="blockListLast">
  813. <li class="blockList">
  814. <h4>getRangeAxisIndex</h4>
  815. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/plot/CrosshairState.html#line.497">getRangeAxisIndex</a>()</pre>
  816. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of version 1.0.11, the domain axis should be determined
  817. using the dataset index.</span></div>
  818. <div class="block">Returns the range axis index for the crosshair y-value.</div>
  819. <dl>
  820. <dt><span class="returnLabel">Returns:</span></dt>
  821. <dd>The range axis index.</dd>
  822. <dt><span class="simpleTagLabel">Since:</span></dt>
  823. <dd>1.0.4</dd>
  824. </dl>
  825. </li>
  826. </ul>
  827. </li>
  828. </ul>
  829. </li>
  830. </ul>
  831. </div>
  832. </div>
  833. <!-- ========= END OF CLASS DATA ========= -->
  834. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  835. <div class="bottomNav"><a name="navbar.bottom">
  836. <!-- -->
  837. </a>
  838. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  839. <a name="navbar.bottom.firstrow">
  840. <!-- -->
  841. </a>
  842. <ul class="navList" title="Navigation">
  843. <li><a href="../../../../overview-summary.html">Overview</a></li>
  844. <li><a href="package-summary.html">Package</a></li>
  845. <li class="navBarCell1Rev">Class</li>
  846. <li><a href="class-use/CrosshairState.html">Use</a></li>
  847. <li><a href="package-tree.html">Tree</a></li>
  848. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  849. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  850. <li><a href="../../../../help-doc.html">Help</a></li>
  851. </ul>
  852. </div>
  853. <div class="subNav">
  854. <ul class="navList">
  855. <li><a href="../../../../org/jfree/chart/plot/Crosshair.html" title="class in org.jfree.chart.plot"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  856. <li><a href="../../../../org/jfree/chart/plot/DatasetRenderingOrder.html" title="class in org.jfree.chart.plot"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  857. </ul>
  858. <ul class="navList">
  859. <li><a href="../../../../index.html?org/jfree/chart/plot/CrosshairState.html" target="_top">Frames</a></li>
  860. <li><a href="CrosshairState.html" target="_top">No&nbsp;Frames</a></li>
  861. </ul>
  862. <ul class="navList" id="allclasses_navbar_bottom">
  863. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  864. </ul>
  865. <div>
  866. <script type="text/javascript"><!--
  867. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  868. if(window==top) {
  869. allClassesLink.style.display = "block";
  870. }
  871. else {
  872. allClassesLink.style.display = "none";
  873. }
  874. //-->
  875. </script>
  876. </div>
  877. <div>
  878. <ul class="subNavList">
  879. <li>Summary:&nbsp;</li>
  880. <li>Nested&nbsp;|&nbsp;</li>
  881. <li>Field&nbsp;|&nbsp;</li>
  882. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  883. <li><a href="#method.summary">Method</a></li>
  884. </ul>
  885. <ul class="subNavList">
  886. <li>Detail:&nbsp;</li>
  887. <li>Field&nbsp;|&nbsp;</li>
  888. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  889. <li><a href="#method.detail">Method</a></li>
  890. </ul>
  891. </div>
  892. <a name="skip.navbar.bottom">
  893. <!-- -->
  894. </a></div>
  895. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  896. </body>
  897. </html>