XYPolygonAnnotation.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  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:27 CEST 2014 -->
  6. <title>XYPolygonAnnotation (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="XYPolygonAnnotation (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":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/XYPolygonAnnotation.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/annotations/XYPointerAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/jfree/chart/annotations/XYShapeAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/chart/annotations/XYPolygonAnnotation.html" target="_top">Frames</a></li>
  57. <li><a href="XYPolygonAnnotation.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.annotations</div>
  96. <h2 title="Class XYPolygonAnnotation" class="title">Class XYPolygonAnnotation</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><a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html" title="class in org.jfree.chart.annotations">org.jfree.chart.annotations.AbstractAnnotation</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">org.jfree.chart.annotations.AbstractXYAnnotation</a></li>
  107. <li>
  108. <ul class="inheritance">
  109. <li>org.jfree.chart.annotations.XYPolygonAnnotation</li>
  110. </ul>
  111. </li>
  112. </ul>
  113. </li>
  114. </ul>
  115. </li>
  116. </ul>
  117. <div class="description">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <dl>
  121. <dt>All Implemented Interfaces:</dt>
  122. <dd>java.io.Serializable, java.lang.Cloneable, <a href="../../../../org/jfree/chart/annotations/Annotation.html" title="interface in org.jfree.chart.annotations">Annotation</a>, <a href="../../../../org/jfree/chart/annotations/XYAnnotation.html" title="interface in org.jfree.chart.annotations">XYAnnotation</a>, org.jfree.util.PublicCloneable</dd>
  123. </dl>
  124. <hr>
  125. <br>
  126. <pre>public class <a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.74">XYPolygonAnnotation</a>
  127. extends <a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</a>
  128. implements java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable</pre>
  129. <div class="block">A polygon annotation that can be placed on an <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><code>XYPlot</code></a>. The
  130. polygon coordinates are specified in data space.</div>
  131. <dl>
  132. <dt><span class="seeLabel">See Also:</span></dt>
  133. <dd><a href="../../../../serialized-form.html#org.jfree.chart.annotations.XYPolygonAnnotation">Serialized Form</a></dd>
  134. </dl>
  135. </li>
  136. </ul>
  137. </div>
  138. <div class="summary">
  139. <ul class="blockList">
  140. <li class="blockList">
  141. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  142. <ul class="blockList">
  143. <li class="blockList"><a name="constructor.summary">
  144. <!-- -->
  145. </a>
  146. <h3>Constructor Summary</h3>
  147. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  148. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  149. <tr>
  150. <th class="colOne" scope="col">Constructor and Description</th>
  151. </tr>
  152. <tr class="altColor">
  153. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#XYPolygonAnnotation-double:A-">XYPolygonAnnotation</a></span>(double[]&nbsp;polygon)</code>
  154. <div class="block">Creates a new annotation (where, by default, the polygon is drawn
  155. with a black outline).</div>
  156. </td>
  157. </tr>
  158. <tr class="rowColor">
  159. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#XYPolygonAnnotation-double:A-java.awt.Stroke-java.awt.Paint-">XYPolygonAnnotation</a></span>(double[]&nbsp;polygon,
  160. java.awt.Stroke&nbsp;stroke,
  161. java.awt.Paint&nbsp;outlinePaint)</code>
  162. <div class="block">Creates a new annotation where the box is drawn as an outline using
  163. the specified <code>stroke</code> and <code>outlinePaint</code>.</div>
  164. </td>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#XYPolygonAnnotation-double:A-java.awt.Stroke-java.awt.Paint-java.awt.Paint-">XYPolygonAnnotation</a></span>(double[]&nbsp;polygon,
  168. java.awt.Stroke&nbsp;stroke,
  169. java.awt.Paint&nbsp;outlinePaint,
  170. java.awt.Paint&nbsp;fillPaint)</code>
  171. <div class="block">Creates a new annotation.</div>
  172. </td>
  173. </tr>
  174. </table>
  175. </li>
  176. </ul>
  177. <!-- ========== METHOD SUMMARY =========== -->
  178. <ul class="blockList">
  179. <li class="blockList"><a name="method.summary">
  180. <!-- -->
  181. </a>
  182. <h3>Method Summary</h3>
  183. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  184. <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></caption>
  185. <tr>
  186. <th class="colFirst" scope="col">Modifier and Type</th>
  187. <th class="colLast" scope="col">Method and Description</th>
  188. </tr>
  189. <tr id="i0" class="altColor">
  190. <td class="colFirst"><code>java.lang.Object</code></td>
  191. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#clone--">clone</a></span>()</code>
  192. <div class="block">Returns a clone.</div>
  193. </td>
  194. </tr>
  195. <tr id="i1" class="rowColor">
  196. <td class="colFirst"><code>void</code></td>
  197. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#draw-java.awt.Graphics2D-org.jfree.chart.plot.XYPlot-java.awt.geom.Rectangle2D-org.jfree.chart.axis.ValueAxis-org.jfree.chart.axis.ValueAxis-int-org.jfree.chart.plot.PlotRenderingInfo-">draw</a></span>(java.awt.Graphics2D&nbsp;g2,
  198. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</a>&nbsp;plot,
  199. java.awt.geom.Rectangle2D&nbsp;dataArea,
  200. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;domainAxis,
  201. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;rangeAxis,
  202. int&nbsp;rendererIndex,
  203. <a href="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</a>&nbsp;info)</code>
  204. <div class="block">Draws the annotation.</div>
  205. </td>
  206. </tr>
  207. <tr id="i2" class="altColor">
  208. <td class="colFirst"><code>boolean</code></td>
  209. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  210. <div class="block">Tests this annotation for equality with an arbitrary object.</div>
  211. </td>
  212. </tr>
  213. <tr id="i3" class="rowColor">
  214. <td class="colFirst"><code>java.awt.Paint</code></td>
  215. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#getFillPaint--">getFillPaint</a></span>()</code>
  216. <div class="block">Returns the fill paint.</div>
  217. </td>
  218. </tr>
  219. <tr id="i4" class="altColor">
  220. <td class="colFirst"><code>java.awt.Paint</code></td>
  221. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#getOutlinePaint--">getOutlinePaint</a></span>()</code>
  222. <div class="block">Returns the outline paint.</div>
  223. </td>
  224. </tr>
  225. <tr id="i5" class="rowColor">
  226. <td class="colFirst"><code>java.awt.Stroke</code></td>
  227. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#getOutlineStroke--">getOutlineStroke</a></span>()</code>
  228. <div class="block">Returns the outline stroke.</div>
  229. </td>
  230. </tr>
  231. <tr id="i6" class="altColor">
  232. <td class="colFirst"><code>double[]</code></td>
  233. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#getPolygonCoordinates--">getPolygonCoordinates</a></span>()</code>
  234. <div class="block">Returns the coordinates of the polygon's vertices.</div>
  235. </td>
  236. </tr>
  237. <tr id="i7" class="rowColor">
  238. <td class="colFirst"><code>int</code></td>
  239. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYPolygonAnnotation.html#hashCode--">hashCode</a></span>()</code>
  240. <div class="block">Returns a hash code for this instance.</div>
  241. </td>
  242. </tr>
  243. </table>
  244. <ul class="blockList">
  245. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.AbstractXYAnnotation">
  246. <!-- -->
  247. </a>
  248. <h3>Methods inherited from class&nbsp;org.jfree.chart.annotations.<a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</a></h3>
  249. <code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#addEntity-org.jfree.chart.plot.PlotRenderingInfo-java.awt.Shape-int-java.lang.String-java.lang.String-">addEntity</a>, <a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#getToolTipText--">getToolTipText</a>, <a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#getURL--">getURL</a>, <a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#setToolTipText-java.lang.String-">setToolTipText</a>, <a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#setURL-java.lang.String-">setURL</a></code></li>
  250. </ul>
  251. <ul class="blockList">
  252. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.AbstractAnnotation">
  253. <!-- -->
  254. </a>
  255. <h3>Methods inherited from class&nbsp;org.jfree.chart.annotations.<a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html" title="class in org.jfree.chart.annotations">AbstractAnnotation</a></h3>
  256. <code><a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#addChangeListener-org.jfree.chart.event.AnnotationChangeListener-">addChangeListener</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#fireAnnotationChanged--">fireAnnotationChanged</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#getNotify--">getNotify</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#hasListener-java.util.EventListener-">hasListener</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#notifyListeners-org.jfree.chart.event.AnnotationChangeEvent-">notifyListeners</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#removeChangeListener-org.jfree.chart.event.AnnotationChangeListener-">removeChangeListener</a>, <a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#setNotify-boolean-">setNotify</a></code></li>
  257. </ul>
  258. <ul class="blockList">
  259. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  260. <!-- -->
  261. </a>
  262. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  263. <code>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
  264. </ul>
  265. <ul class="blockList">
  266. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.Annotation">
  267. <!-- -->
  268. </a>
  269. <h3>Methods inherited from interface&nbsp;org.jfree.chart.annotations.<a href="../../../../org/jfree/chart/annotations/Annotation.html" title="interface in org.jfree.chart.annotations">Annotation</a></h3>
  270. <code><a href="../../../../org/jfree/chart/annotations/Annotation.html#addChangeListener-org.jfree.chart.event.AnnotationChangeListener-">addChangeListener</a>, <a href="../../../../org/jfree/chart/annotations/Annotation.html#removeChangeListener-org.jfree.chart.event.AnnotationChangeListener-">removeChangeListener</a></code></li>
  271. </ul>
  272. </li>
  273. </ul>
  274. </li>
  275. </ul>
  276. </div>
  277. <div class="details">
  278. <ul class="blockList">
  279. <li class="blockList">
  280. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  281. <ul class="blockList">
  282. <li class="blockList"><a name="constructor.detail">
  283. <!-- -->
  284. </a>
  285. <h3>Constructor Detail</h3>
  286. <a name="XYPolygonAnnotation-double:A-">
  287. <!-- -->
  288. </a>
  289. <ul class="blockList">
  290. <li class="blockList">
  291. <h4>XYPolygonAnnotation</h4>
  292. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.101">XYPolygonAnnotation</a>(double[]&nbsp;polygon)</pre>
  293. <div class="block">Creates a new annotation (where, by default, the polygon is drawn
  294. with a black outline). The array of polygon coordinates must contain
  295. an even number of coordinates (each pair is an (x, y) location on the
  296. plot) and the last point is automatically joined back to the first point.</div>
  297. <dl>
  298. <dt><span class="paramLabel">Parameters:</span></dt>
  299. <dd><code>polygon</code> - the coordinates of the polygon's vertices
  300. (<code>null</code> not permitted).</dd>
  301. </dl>
  302. </li>
  303. </ul>
  304. <a name="XYPolygonAnnotation-double:A-java.awt.Stroke-java.awt.Paint-">
  305. <!-- -->
  306. </a>
  307. <ul class="blockList">
  308. <li class="blockList">
  309. <h4>XYPolygonAnnotation</h4>
  310. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.117">XYPolygonAnnotation</a>(double[]&nbsp;polygon,
  311. java.awt.Stroke&nbsp;stroke,
  312. java.awt.Paint&nbsp;outlinePaint)</pre>
  313. <div class="block">Creates a new annotation where the box is drawn as an outline using
  314. the specified <code>stroke</code> and <code>outlinePaint</code>.
  315. The array of polygon coordinates must contain an even number of
  316. coordinates (each pair is an (x, y) location on the plot) and the last
  317. point is automatically joined back to the first point.</div>
  318. <dl>
  319. <dt><span class="paramLabel">Parameters:</span></dt>
  320. <dd><code>polygon</code> - the coordinates of the polygon's vertices
  321. (<code>null</code> not permitted).</dd>
  322. <dd><code>stroke</code> - the shape stroke (<code>null</code> permitted).</dd>
  323. <dd><code>outlinePaint</code> - the shape color (<code>null</code> permitted).</dd>
  324. </dl>
  325. </li>
  326. </ul>
  327. <a name="XYPolygonAnnotation-double:A-java.awt.Stroke-java.awt.Paint-java.awt.Paint-">
  328. <!-- -->
  329. </a>
  330. <ul class="blockListLast">
  331. <li class="blockList">
  332. <h4>XYPolygonAnnotation</h4>
  333. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.135">XYPolygonAnnotation</a>(double[]&nbsp;polygon,
  334. java.awt.Stroke&nbsp;stroke,
  335. java.awt.Paint&nbsp;outlinePaint,
  336. java.awt.Paint&nbsp;fillPaint)</pre>
  337. <div class="block">Creates a new annotation. The array of polygon coordinates must
  338. contain an even number of coordinates (each pair is an (x, y) location
  339. on the plot) and the last point is automatically joined back to the
  340. first point.</div>
  341. <dl>
  342. <dt><span class="paramLabel">Parameters:</span></dt>
  343. <dd><code>polygon</code> - the coordinates of the polygon's vertices
  344. (<code>null</code> not permitted).</dd>
  345. <dd><code>stroke</code> - the shape stroke (<code>null</code> permitted).</dd>
  346. <dd><code>outlinePaint</code> - the shape color (<code>null</code> permitted).</dd>
  347. <dd><code>fillPaint</code> - the paint used to fill the shape (<code>null</code>
  348. permitted).</dd>
  349. </dl>
  350. </li>
  351. </ul>
  352. </li>
  353. </ul>
  354. <!-- ============ METHOD DETAIL ========== -->
  355. <ul class="blockList">
  356. <li class="blockList"><a name="method.detail">
  357. <!-- -->
  358. </a>
  359. <h3>Method Detail</h3>
  360. <a name="getPolygonCoordinates--">
  361. <!-- -->
  362. </a>
  363. <ul class="blockList">
  364. <li class="blockList">
  365. <h4>getPolygonCoordinates</h4>
  366. <pre>public&nbsp;double[]&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.158">getPolygonCoordinates</a>()</pre>
  367. <div class="block">Returns the coordinates of the polygon's vertices. The returned array
  368. is a copy, so it is safe to modify without altering the annotation's
  369. state.</div>
  370. <dl>
  371. <dt><span class="returnLabel">Returns:</span></dt>
  372. <dd>The coordinates of the polygon's vertices.</dd>
  373. <dt><span class="simpleTagLabel">Since:</span></dt>
  374. <dd>1.0.2</dd>
  375. </dl>
  376. </li>
  377. </ul>
  378. <a name="getFillPaint--">
  379. <!-- -->
  380. </a>
  381. <ul class="blockList">
  382. <li class="blockList">
  383. <h4>getFillPaint</h4>
  384. <pre>public&nbsp;java.awt.Paint&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.169">getFillPaint</a>()</pre>
  385. <div class="block">Returns the fill paint.</div>
  386. <dl>
  387. <dt><span class="returnLabel">Returns:</span></dt>
  388. <dd>The fill paint (possibly <code>null</code>).</dd>
  389. <dt><span class="simpleTagLabel">Since:</span></dt>
  390. <dd>1.0.2</dd>
  391. </dl>
  392. </li>
  393. </ul>
  394. <a name="getOutlineStroke--">
  395. <!-- -->
  396. </a>
  397. <ul class="blockList">
  398. <li class="blockList">
  399. <h4>getOutlineStroke</h4>
  400. <pre>public&nbsp;java.awt.Stroke&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.180">getOutlineStroke</a>()</pre>
  401. <div class="block">Returns the outline stroke.</div>
  402. <dl>
  403. <dt><span class="returnLabel">Returns:</span></dt>
  404. <dd>The outline stroke (possibly <code>null</code>).</dd>
  405. <dt><span class="simpleTagLabel">Since:</span></dt>
  406. <dd>1.0.2</dd>
  407. </dl>
  408. </li>
  409. </ul>
  410. <a name="getOutlinePaint--">
  411. <!-- -->
  412. </a>
  413. <ul class="blockList">
  414. <li class="blockList">
  415. <h4>getOutlinePaint</h4>
  416. <pre>public&nbsp;java.awt.Paint&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.191">getOutlinePaint</a>()</pre>
  417. <div class="block">Returns the outline paint.</div>
  418. <dl>
  419. <dt><span class="returnLabel">Returns:</span></dt>
  420. <dd>The outline paint (possibly <code>null</code>).</dd>
  421. <dt><span class="simpleTagLabel">Since:</span></dt>
  422. <dd>1.0.2</dd>
  423. </dl>
  424. </li>
  425. </ul>
  426. <a name="draw-java.awt.Graphics2D-org.jfree.chart.plot.XYPlot-java.awt.geom.Rectangle2D-org.jfree.chart.axis.ValueAxis-org.jfree.chart.axis.ValueAxis-int-org.jfree.chart.plot.PlotRenderingInfo-">
  427. <!-- -->
  428. </a>
  429. <ul class="blockList">
  430. <li class="blockList">
  431. <h4>draw</h4>
  432. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.208">draw</a>(java.awt.Graphics2D&nbsp;g2,
  433. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</a>&nbsp;plot,
  434. java.awt.geom.Rectangle2D&nbsp;dataArea,
  435. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;domainAxis,
  436. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;rangeAxis,
  437. int&nbsp;rendererIndex,
  438. <a href="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</a>&nbsp;info)</pre>
  439. <div class="block">Draws the annotation. This method is usually called by the
  440. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><code>XYPlot</code></a> class, you shouldn't need to call it directly.</div>
  441. <dl>
  442. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  443. <dd><code><a href="../../../../org/jfree/chart/annotations/XYAnnotation.html#draw-java.awt.Graphics2D-org.jfree.chart.plot.XYPlot-java.awt.geom.Rectangle2D-org.jfree.chart.axis.ValueAxis-org.jfree.chart.axis.ValueAxis-int-org.jfree.chart.plot.PlotRenderingInfo-">draw</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/jfree/chart/annotations/XYAnnotation.html" title="interface in org.jfree.chart.annotations">XYAnnotation</a></code></dd>
  444. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  445. <dd><code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#draw-java.awt.Graphics2D-org.jfree.chart.plot.XYPlot-java.awt.geom.Rectangle2D-org.jfree.chart.axis.ValueAxis-org.jfree.chart.axis.ValueAxis-int-org.jfree.chart.plot.PlotRenderingInfo-">draw</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</a></code></dd>
  446. <dt><span class="paramLabel">Parameters:</span></dt>
  447. <dd><code>g2</code> - the graphics device.</dd>
  448. <dd><code>plot</code> - the plot.</dd>
  449. <dd><code>dataArea</code> - the data area.</dd>
  450. <dd><code>domainAxis</code> - the domain axis.</dd>
  451. <dd><code>rangeAxis</code> - the range axis.</dd>
  452. <dd><code>rendererIndex</code> - the renderer index.</dd>
  453. <dd><code>info</code> - the plot rendering info.</dd>
  454. </dl>
  455. </li>
  456. </ul>
  457. <a name="equals-java.lang.Object-">
  458. <!-- -->
  459. </a>
  460. <ul class="blockList">
  461. <li class="blockList">
  462. <h4>equals</h4>
  463. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.273">equals</a>(java.lang.Object&nbsp;obj)</pre>
  464. <div class="block">Tests this annotation for equality with an arbitrary object.</div>
  465. <dl>
  466. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  467. <dd><code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#equals-java.lang.Object-">equals</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</a></code></dd>
  468. <dt><span class="paramLabel">Parameters:</span></dt>
  469. <dd><code>obj</code> - the object (<code>null</code> permitted).</dd>
  470. <dt><span class="returnLabel">Returns:</span></dt>
  471. <dd>A boolean.</dd>
  472. </dl>
  473. </li>
  474. </ul>
  475. <a name="hashCode--">
  476. <!-- -->
  477. </a>
  478. <ul class="blockList">
  479. <li class="blockList">
  480. <h4>hashCode</h4>
  481. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.307">hashCode</a>()</pre>
  482. <div class="block">Returns a hash code for this instance.</div>
  483. <dl>
  484. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  485. <dd><code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html#hashCode--">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/chart/annotations/AbstractXYAnnotation.html" title="class in org.jfree.chart.annotations">AbstractXYAnnotation</a></code></dd>
  486. <dt><span class="returnLabel">Returns:</span></dt>
  487. <dd>A hash code.</dd>
  488. </dl>
  489. </li>
  490. </ul>
  491. <a name="clone--">
  492. <!-- -->
  493. </a>
  494. <ul class="blockListLast">
  495. <li class="blockList">
  496. <h4>clone</h4>
  497. <pre>public&nbsp;java.lang.Object&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYPolygonAnnotation.html#line.329">clone</a>()
  498. throws java.lang.CloneNotSupportedException</pre>
  499. <div class="block">Returns a clone.</div>
  500. <dl>
  501. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  502. <dd><code>clone</code>&nbsp;in interface&nbsp;<code>org.jfree.util.PublicCloneable</code></dd>
  503. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  504. <dd><code><a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html#clone--">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/chart/annotations/AbstractAnnotation.html" title="class in org.jfree.chart.annotations">AbstractAnnotation</a></code></dd>
  505. <dt><span class="returnLabel">Returns:</span></dt>
  506. <dd>A clone.</dd>
  507. <dt><span class="throwsLabel">Throws:</span></dt>
  508. <dd><code>java.lang.CloneNotSupportedException</code> - not thrown by this class, but may be
  509. by subclasses.</dd>
  510. </dl>
  511. </li>
  512. </ul>
  513. </li>
  514. </ul>
  515. </li>
  516. </ul>
  517. </div>
  518. </div>
  519. <!-- ========= END OF CLASS DATA ========= -->
  520. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  521. <div class="bottomNav"><a name="navbar.bottom">
  522. <!-- -->
  523. </a>
  524. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  525. <a name="navbar.bottom.firstrow">
  526. <!-- -->
  527. </a>
  528. <ul class="navList" title="Navigation">
  529. <li><a href="../../../../overview-summary.html">Overview</a></li>
  530. <li><a href="package-summary.html">Package</a></li>
  531. <li class="navBarCell1Rev">Class</li>
  532. <li><a href="class-use/XYPolygonAnnotation.html">Use</a></li>
  533. <li><a href="package-tree.html">Tree</a></li>
  534. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  535. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  536. <li><a href="../../../../help-doc.html">Help</a></li>
  537. </ul>
  538. </div>
  539. <div class="subNav">
  540. <ul class="navList">
  541. <li><a href="../../../../org/jfree/chart/annotations/XYPointerAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  542. <li><a href="../../../../org/jfree/chart/annotations/XYShapeAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  543. </ul>
  544. <ul class="navList">
  545. <li><a href="../../../../index.html?org/jfree/chart/annotations/XYPolygonAnnotation.html" target="_top">Frames</a></li>
  546. <li><a href="XYPolygonAnnotation.html" target="_top">No&nbsp;Frames</a></li>
  547. </ul>
  548. <ul class="navList" id="allclasses_navbar_bottom">
  549. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  550. </ul>
  551. <div>
  552. <script type="text/javascript"><!--
  553. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  554. if(window==top) {
  555. allClassesLink.style.display = "block";
  556. }
  557. else {
  558. allClassesLink.style.display = "none";
  559. }
  560. //-->
  561. </script>
  562. </div>
  563. <div>
  564. <ul class="subNavList">
  565. <li>Summary:&nbsp;</li>
  566. <li>Nested&nbsp;|&nbsp;</li>
  567. <li>Field&nbsp;|&nbsp;</li>
  568. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  569. <li><a href="#method.summary">Method</a></li>
  570. </ul>
  571. <ul class="subNavList">
  572. <li>Detail:&nbsp;</li>
  573. <li>Field&nbsp;|&nbsp;</li>
  574. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  575. <li><a href="#method.detail">Method</a></li>
  576. </ul>
  577. </div>
  578. <a name="skip.navbar.bottom">
  579. <!-- -->
  580. </a></div>
  581. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  582. </body>
  583. </html>