XYTitleAnnotation.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  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>XYTitleAnnotation (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="XYTitleAnnotation (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,"i8":10,"i9":10,"i10":10,"i11":10,"i12":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/XYTitleAnnotation.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/XYTextAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li>Next&nbsp;Class</li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/chart/annotations/XYTitleAnnotation.html" target="_top">Frames</a></li>
  57. <li><a href="XYTitleAnnotation.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 XYTitleAnnotation" class="title">Class XYTitleAnnotation</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.XYTitleAnnotation</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/XYTitleAnnotation.html#line.81">XYTitleAnnotation</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">An annotation that allows any <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title"><code>Title</code></a> to be placed at a location on
  130. an <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><code>XYPlot</code></a>.</div>
  131. <dl>
  132. <dt><span class="simpleTagLabel">Since:</span></dt>
  133. <dd>1.0.11</dd>
  134. <dt><span class="seeLabel">See Also:</span></dt>
  135. <dd><a href="../../../../serialized-form.html#org.jfree.chart.annotations.XYTitleAnnotation">Serialized Form</a></dd>
  136. </dl>
  137. </li>
  138. </ul>
  139. </div>
  140. <div class="summary">
  141. <ul class="blockList">
  142. <li class="blockList">
  143. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  144. <ul class="blockList">
  145. <li class="blockList"><a name="constructor.summary">
  146. <!-- -->
  147. </a>
  148. <h3>Constructor Summary</h3>
  149. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  150. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  151. <tr>
  152. <th class="colOne" scope="col">Constructor and Description</th>
  153. </tr>
  154. <tr class="altColor">
  155. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#XYTitleAnnotation-double-double-org.jfree.chart.title.Title-">XYTitleAnnotation</a></span>(double&nbsp;x,
  156. double&nbsp;y,
  157. <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a>&nbsp;title)</code>
  158. <div class="block">Creates a new annotation to be displayed at the specified (x, y)
  159. location.</div>
  160. </td>
  161. </tr>
  162. <tr class="rowColor">
  163. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#XYTitleAnnotation-double-double-org.jfree.chart.title.Title-org.jfree.ui.RectangleAnchor-">XYTitleAnnotation</a></span>(double&nbsp;x,
  164. double&nbsp;y,
  165. <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a>&nbsp;title,
  166. org.jfree.ui.RectangleAnchor&nbsp;anchor)</code>
  167. <div class="block">Creates a new annotation to be displayed at the specified (x, y)
  168. location.</div>
  169. </td>
  170. </tr>
  171. </table>
  172. </li>
  173. </ul>
  174. <!-- ========== METHOD SUMMARY =========== -->
  175. <ul class="blockList">
  176. <li class="blockList"><a name="method.summary">
  177. <!-- -->
  178. </a>
  179. <h3>Method Summary</h3>
  180. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  181. <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>
  182. <tr>
  183. <th class="colFirst" scope="col">Modifier and Type</th>
  184. <th class="colLast" scope="col">Method and Description</th>
  185. </tr>
  186. <tr id="i0" class="altColor">
  187. <td class="colFirst"><code>java.lang.Object</code></td>
  188. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#clone--">clone</a></span>()</code>
  189. <div class="block">Returns a clone of the annotation.</div>
  190. </td>
  191. </tr>
  192. <tr id="i1" class="rowColor">
  193. <td class="colFirst"><code>void</code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.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,
  195. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</a>&nbsp;plot,
  196. java.awt.geom.Rectangle2D&nbsp;dataArea,
  197. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;domainAxis,
  198. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;rangeAxis,
  199. int&nbsp;rendererIndex,
  200. <a href="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</a>&nbsp;info)</code>
  201. <div class="block">Draws the annotation.</div>
  202. </td>
  203. </tr>
  204. <tr id="i2" class="altColor">
  205. <td class="colFirst"><code>boolean</code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  207. <div class="block">Tests this object for equality with an arbitrary object.</div>
  208. </td>
  209. </tr>
  210. <tr id="i3" class="rowColor">
  211. <td class="colFirst"><code><a href="../../../../org/jfree/chart/util/XYCoordinateType.html" title="class in org.jfree.chart.util">XYCoordinateType</a></code></td>
  212. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getCoordinateType--">getCoordinateType</a></span>()</code>
  213. <div class="block">Returns the coordinate type (set in the constructor).</div>
  214. </td>
  215. </tr>
  216. <tr id="i4" class="altColor">
  217. <td class="colFirst"><code>double</code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getMaxHeight--">getMaxHeight</a></span>()</code>
  219. <div class="block">Returns the maximum height.</div>
  220. </td>
  221. </tr>
  222. <tr id="i5" class="rowColor">
  223. <td class="colFirst"><code>double</code></td>
  224. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getMaxWidth--">getMaxWidth</a></span>()</code>
  225. <div class="block">Returns the maximum width.</div>
  226. </td>
  227. </tr>
  228. <tr id="i6" class="altColor">
  229. <td class="colFirst"><code><a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a></code></td>
  230. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getTitle--">getTitle</a></span>()</code>
  231. <div class="block">Returns the title for the annotation.</div>
  232. </td>
  233. </tr>
  234. <tr id="i7" class="rowColor">
  235. <td class="colFirst"><code>org.jfree.ui.RectangleAnchor</code></td>
  236. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getTitleAnchor--">getTitleAnchor</a></span>()</code>
  237. <div class="block">Returns the title anchor for the annotation.</div>
  238. </td>
  239. </tr>
  240. <tr id="i8" class="altColor">
  241. <td class="colFirst"><code>double</code></td>
  242. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getX--">getX</a></span>()</code>
  243. <div class="block">Returns the x-coordinate for the annotation.</div>
  244. </td>
  245. </tr>
  246. <tr id="i9" class="rowColor">
  247. <td class="colFirst"><code>double</code></td>
  248. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#getY--">getY</a></span>()</code>
  249. <div class="block">Returns the y-coordinate for the annotation.</div>
  250. </td>
  251. </tr>
  252. <tr id="i10" class="altColor">
  253. <td class="colFirst"><code>int</code></td>
  254. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#hashCode--">hashCode</a></span>()</code>
  255. <div class="block">Returns a hash code for this object.</div>
  256. </td>
  257. </tr>
  258. <tr id="i11" class="rowColor">
  259. <td class="colFirst"><code>void</code></td>
  260. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#setMaxHeight-double-">setMaxHeight</a></span>(double&nbsp;max)</code>
  261. <div class="block">Sets the maximum height and sends an
  262. <a href="../../../../org/jfree/chart/event/AnnotationChangeEvent.html" title="class in org.jfree.chart.event"><code>AnnotationChangeEvent</code></a> to all registered listeners.</div>
  263. </td>
  264. </tr>
  265. <tr id="i12" class="altColor">
  266. <td class="colFirst"><code>void</code></td>
  267. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/annotations/XYTitleAnnotation.html#setMaxWidth-double-">setMaxWidth</a></span>(double&nbsp;max)</code>
  268. <div class="block">Sets the maximum width and sends an
  269. <a href="../../../../org/jfree/chart/event/AnnotationChangeEvent.html" title="class in org.jfree.chart.event"><code>AnnotationChangeEvent</code></a> to all registered listeners.</div>
  270. </td>
  271. </tr>
  272. </table>
  273. <ul class="blockList">
  274. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.AbstractXYAnnotation">
  275. <!-- -->
  276. </a>
  277. <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>
  278. <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>
  279. </ul>
  280. <ul class="blockList">
  281. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.AbstractAnnotation">
  282. <!-- -->
  283. </a>
  284. <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>
  285. <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>
  286. </ul>
  287. <ul class="blockList">
  288. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  289. <!-- -->
  290. </a>
  291. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  292. <code>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</code></li>
  293. </ul>
  294. <ul class="blockList">
  295. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.chart.annotations.Annotation">
  296. <!-- -->
  297. </a>
  298. <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>
  299. <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>
  300. </ul>
  301. </li>
  302. </ul>
  303. </li>
  304. </ul>
  305. </div>
  306. <div class="details">
  307. <ul class="blockList">
  308. <li class="blockList">
  309. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  310. <ul class="blockList">
  311. <li class="blockList"><a name="constructor.detail">
  312. <!-- -->
  313. </a>
  314. <h3>Constructor Detail</h3>
  315. <a name="XYTitleAnnotation-double-double-org.jfree.chart.title.Title-">
  316. <!-- -->
  317. </a>
  318. <ul class="blockList">
  319. <li class="blockList">
  320. <h4>XYTitleAnnotation</h4>
  321. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.118">XYTitleAnnotation</a>(double&nbsp;x,
  322. double&nbsp;y,
  323. <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a>&nbsp;title)</pre>
  324. <div class="block">Creates a new annotation to be displayed at the specified (x, y)
  325. location.</div>
  326. <dl>
  327. <dt><span class="paramLabel">Parameters:</span></dt>
  328. <dd><code>x</code> - the x-coordinate (in data space).</dd>
  329. <dd><code>y</code> - the y-coordinate (in data space).</dd>
  330. <dd><code>title</code> - the title (<code>null</code> not permitted).</dd>
  331. </dl>
  332. </li>
  333. </ul>
  334. <a name="XYTitleAnnotation-double-double-org.jfree.chart.title.Title-org.jfree.ui.RectangleAnchor-">
  335. <!-- -->
  336. </a>
  337. <ul class="blockListLast">
  338. <li class="blockList">
  339. <h4>XYTitleAnnotation</h4>
  340. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.131">XYTitleAnnotation</a>(double&nbsp;x,
  341. double&nbsp;y,
  342. <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a>&nbsp;title,
  343. org.jfree.ui.RectangleAnchor&nbsp;anchor)</pre>
  344. <div class="block">Creates a new annotation to be displayed at the specified (x, y)
  345. location.</div>
  346. <dl>
  347. <dt><span class="paramLabel">Parameters:</span></dt>
  348. <dd><code>x</code> - the x-coordinate (in data space).</dd>
  349. <dd><code>y</code> - the y-coordinate (in data space).</dd>
  350. <dd><code>title</code> - the title (<code>null</code> not permitted).</dd>
  351. <dd><code>anchor</code> - the title anchor (<code>null</code> not permitted).</dd>
  352. </dl>
  353. </li>
  354. </ul>
  355. </li>
  356. </ul>
  357. <!-- ============ METHOD DETAIL ========== -->
  358. <ul class="blockList">
  359. <li class="blockList"><a name="method.detail">
  360. <!-- -->
  361. </a>
  362. <h3>Method Detail</h3>
  363. <a name="getCoordinateType--">
  364. <!-- -->
  365. </a>
  366. <ul class="blockList">
  367. <li class="blockList">
  368. <h4>getCoordinateType</h4>
  369. <pre>public&nbsp;<a href="../../../../org/jfree/chart/util/XYCoordinateType.html" title="class in org.jfree.chart.util">XYCoordinateType</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.150">getCoordinateType</a>()</pre>
  370. <div class="block">Returns the coordinate type (set in the constructor).</div>
  371. <dl>
  372. <dt><span class="returnLabel">Returns:</span></dt>
  373. <dd>The coordinate type (never <code>null</code>).</dd>
  374. </dl>
  375. </li>
  376. </ul>
  377. <a name="getX--">
  378. <!-- -->
  379. </a>
  380. <ul class="blockList">
  381. <li class="blockList">
  382. <h4>getX</h4>
  383. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.159">getX</a>()</pre>
  384. <div class="block">Returns the x-coordinate for the annotation.</div>
  385. <dl>
  386. <dt><span class="returnLabel">Returns:</span></dt>
  387. <dd>The x-coordinate.</dd>
  388. </dl>
  389. </li>
  390. </ul>
  391. <a name="getY--">
  392. <!-- -->
  393. </a>
  394. <ul class="blockList">
  395. <li class="blockList">
  396. <h4>getY</h4>
  397. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.168">getY</a>()</pre>
  398. <div class="block">Returns the y-coordinate for the annotation.</div>
  399. <dl>
  400. <dt><span class="returnLabel">Returns:</span></dt>
  401. <dd>The y-coordinate.</dd>
  402. </dl>
  403. </li>
  404. </ul>
  405. <a name="getTitle--">
  406. <!-- -->
  407. </a>
  408. <ul class="blockList">
  409. <li class="blockList">
  410. <h4>getTitle</h4>
  411. <pre>public&nbsp;<a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.177">getTitle</a>()</pre>
  412. <div class="block">Returns the title for the annotation.</div>
  413. <dl>
  414. <dt><span class="returnLabel">Returns:</span></dt>
  415. <dd>The title.</dd>
  416. </dl>
  417. </li>
  418. </ul>
  419. <a name="getTitleAnchor--">
  420. <!-- -->
  421. </a>
  422. <ul class="blockList">
  423. <li class="blockList">
  424. <h4>getTitleAnchor</h4>
  425. <pre>public&nbsp;org.jfree.ui.RectangleAnchor&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.186">getTitleAnchor</a>()</pre>
  426. <div class="block">Returns the title anchor for the annotation.</div>
  427. <dl>
  428. <dt><span class="returnLabel">Returns:</span></dt>
  429. <dd>The title anchor.</dd>
  430. </dl>
  431. </li>
  432. </ul>
  433. <a name="getMaxWidth--">
  434. <!-- -->
  435. </a>
  436. <ul class="blockList">
  437. <li class="blockList">
  438. <h4>getMaxWidth</h4>
  439. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.195">getMaxWidth</a>()</pre>
  440. <div class="block">Returns the maximum width.</div>
  441. <dl>
  442. <dt><span class="returnLabel">Returns:</span></dt>
  443. <dd>The maximum width.</dd>
  444. </dl>
  445. </li>
  446. </ul>
  447. <a name="setMaxWidth-double-">
  448. <!-- -->
  449. </a>
  450. <ul class="blockList">
  451. <li class="blockList">
  452. <h4>setMaxWidth</h4>
  453. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.205">setMaxWidth</a>(double&nbsp;max)</pre>
  454. <div class="block">Sets the maximum width and sends an
  455. <a href="../../../../org/jfree/chart/event/AnnotationChangeEvent.html" title="class in org.jfree.chart.event"><code>AnnotationChangeEvent</code></a> to all registered listeners.</div>
  456. <dl>
  457. <dt><span class="paramLabel">Parameters:</span></dt>
  458. <dd><code>max</code> - the maximum width (0.0 or less means no maximum).</dd>
  459. </dl>
  460. </li>
  461. </ul>
  462. <a name="getMaxHeight--">
  463. <!-- -->
  464. </a>
  465. <ul class="blockList">
  466. <li class="blockList">
  467. <h4>getMaxHeight</h4>
  468. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.215">getMaxHeight</a>()</pre>
  469. <div class="block">Returns the maximum height.</div>
  470. <dl>
  471. <dt><span class="returnLabel">Returns:</span></dt>
  472. <dd>The maximum height.</dd>
  473. </dl>
  474. </li>
  475. </ul>
  476. <a name="setMaxHeight-double-">
  477. <!-- -->
  478. </a>
  479. <ul class="blockList">
  480. <li class="blockList">
  481. <h4>setMaxHeight</h4>
  482. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.225">setMaxHeight</a>(double&nbsp;max)</pre>
  483. <div class="block">Sets the maximum height and sends an
  484. <a href="../../../../org/jfree/chart/event/AnnotationChangeEvent.html" title="class in org.jfree.chart.event"><code>AnnotationChangeEvent</code></a> to all registered listeners.</div>
  485. <dl>
  486. <dt><span class="paramLabel">Parameters:</span></dt>
  487. <dd><code>max</code> - the maximum height.</dd>
  488. </dl>
  489. </li>
  490. </ul>
  491. <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-">
  492. <!-- -->
  493. </a>
  494. <ul class="blockList">
  495. <li class="blockList">
  496. <h4>draw</h4>
  497. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.245">draw</a>(java.awt.Graphics2D&nbsp;g2,
  498. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot">XYPlot</a>&nbsp;plot,
  499. java.awt.geom.Rectangle2D&nbsp;dataArea,
  500. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;domainAxis,
  501. <a href="../../../../org/jfree/chart/axis/ValueAxis.html" title="class in org.jfree.chart.axis">ValueAxis</a>&nbsp;rangeAxis,
  502. int&nbsp;rendererIndex,
  503. <a href="../../../../org/jfree/chart/plot/PlotRenderingInfo.html" title="class in org.jfree.chart.plot">PlotRenderingInfo</a>&nbsp;info)</pre>
  504. <div class="block">Draws the annotation. This method is called by the drawing code in the
  505. <a href="../../../../org/jfree/chart/plot/XYPlot.html" title="class in org.jfree.chart.plot"><code>XYPlot</code></a> class, you don't normally need to call this method
  506. directly.</div>
  507. <dl>
  508. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  509. <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>
  510. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  511. <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>
  512. <dt><span class="paramLabel">Parameters:</span></dt>
  513. <dd><code>g2</code> - the graphics device.</dd>
  514. <dd><code>plot</code> - the plot.</dd>
  515. <dd><code>dataArea</code> - the data area.</dd>
  516. <dd><code>domainAxis</code> - the domain axis.</dd>
  517. <dd><code>rangeAxis</code> - the range axis.</dd>
  518. <dd><code>rendererIndex</code> - the renderer index.</dd>
  519. <dd><code>info</code> - if supplied, this info object will be populated with
  520. entity information.</dd>
  521. </dl>
  522. </li>
  523. </ul>
  524. <a name="equals-java.lang.Object-">
  525. <!-- -->
  526. </a>
  527. <ul class="blockList">
  528. <li class="blockList">
  529. <h4>equals</h4>
  530. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.339">equals</a>(java.lang.Object&nbsp;obj)</pre>
  531. <div class="block">Tests this object for equality with an arbitrary object.</div>
  532. <dl>
  533. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  534. <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>
  535. <dt><span class="paramLabel">Parameters:</span></dt>
  536. <dd><code>obj</code> - the object (<code>null</code> permitted).</dd>
  537. <dt><span class="returnLabel">Returns:</span></dt>
  538. <dd>A boolean.</dd>
  539. </dl>
  540. </li>
  541. </ul>
  542. <a name="hashCode--">
  543. <!-- -->
  544. </a>
  545. <ul class="blockList">
  546. <li class="blockList">
  547. <h4>hashCode</h4>
  548. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.377">hashCode</a>()</pre>
  549. <div class="block">Returns a hash code for this object.</div>
  550. <dl>
  551. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  552. <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>
  553. <dt><span class="returnLabel">Returns:</span></dt>
  554. <dd>A hash code.</dd>
  555. </dl>
  556. </li>
  557. </ul>
  558. <a name="clone--">
  559. <!-- -->
  560. </a>
  561. <ul class="blockListLast">
  562. <li class="blockList">
  563. <h4>clone</h4>
  564. <pre>public&nbsp;java.lang.Object&nbsp;<a href="../../../../src-html/org/jfree/chart/annotations/XYTitleAnnotation.html#line.397">clone</a>()
  565. throws java.lang.CloneNotSupportedException</pre>
  566. <div class="block">Returns a clone of the annotation.</div>
  567. <dl>
  568. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  569. <dd><code>clone</code>&nbsp;in interface&nbsp;<code>org.jfree.util.PublicCloneable</code></dd>
  570. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  571. <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>
  572. <dt><span class="returnLabel">Returns:</span></dt>
  573. <dd>A clone.</dd>
  574. <dt><span class="throwsLabel">Throws:</span></dt>
  575. <dd><code>java.lang.CloneNotSupportedException</code> - if the annotation can't be cloned.</dd>
  576. </dl>
  577. </li>
  578. </ul>
  579. </li>
  580. </ul>
  581. </li>
  582. </ul>
  583. </div>
  584. </div>
  585. <!-- ========= END OF CLASS DATA ========= -->
  586. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  587. <div class="bottomNav"><a name="navbar.bottom">
  588. <!-- -->
  589. </a>
  590. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  591. <a name="navbar.bottom.firstrow">
  592. <!-- -->
  593. </a>
  594. <ul class="navList" title="Navigation">
  595. <li><a href="../../../../overview-summary.html">Overview</a></li>
  596. <li><a href="package-summary.html">Package</a></li>
  597. <li class="navBarCell1Rev">Class</li>
  598. <li><a href="class-use/XYTitleAnnotation.html">Use</a></li>
  599. <li><a href="package-tree.html">Tree</a></li>
  600. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  601. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  602. <li><a href="../../../../help-doc.html">Help</a></li>
  603. </ul>
  604. </div>
  605. <div class="subNav">
  606. <ul class="navList">
  607. <li><a href="../../../../org/jfree/chart/annotations/XYTextAnnotation.html" title="class in org.jfree.chart.annotations"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  608. <li>Next&nbsp;Class</li>
  609. </ul>
  610. <ul class="navList">
  611. <li><a href="../../../../index.html?org/jfree/chart/annotations/XYTitleAnnotation.html" target="_top">Frames</a></li>
  612. <li><a href="XYTitleAnnotation.html" target="_top">No&nbsp;Frames</a></li>
  613. </ul>
  614. <ul class="navList" id="allclasses_navbar_bottom">
  615. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  616. </ul>
  617. <div>
  618. <script type="text/javascript"><!--
  619. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  620. if(window==top) {
  621. allClassesLink.style.display = "block";
  622. }
  623. else {
  624. allClassesLink.style.display = "none";
  625. }
  626. //-->
  627. </script>
  628. </div>
  629. <div>
  630. <ul class="subNavList">
  631. <li>Summary:&nbsp;</li>
  632. <li>Nested&nbsp;|&nbsp;</li>
  633. <li>Field&nbsp;|&nbsp;</li>
  634. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  635. <li><a href="#method.summary">Method</a></li>
  636. </ul>
  637. <ul class="subNavList">
  638. <li>Detail:&nbsp;</li>
  639. <li>Field&nbsp;|&nbsp;</li>
  640. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  641. <li><a href="#method.detail">Method</a></li>
  642. </ul>
  643. </div>
  644. <a name="skip.navbar.bottom">
  645. <!-- -->
  646. </a></div>
  647. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  648. </body>
  649. </html>