AbstractBlock.html 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  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:28 CEST 2014 -->
  6. <title>AbstractBlock (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="AbstractBlock (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":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":42,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":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/AbstractBlock.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>Prev&nbsp;Class</li>
  53. <li><a href="../../../../org/jfree/chart/block/Arrangement.html" title="interface in org.jfree.chart.block"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/chart/block/AbstractBlock.html" target="_top">Frames</a></li>
  57. <li><a href="AbstractBlock.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.block</div>
  96. <h2 title="Class AbstractBlock" class="title">Class AbstractBlock</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.block.AbstractBlock</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <dl>
  111. <dt>All Implemented Interfaces:</dt>
  112. <dd>java.io.Serializable, java.lang.Cloneable</dd>
  113. </dl>
  114. <dl>
  115. <dt>Direct Known Subclasses:</dt>
  116. <dd><a href="../../../../org/jfree/chart/block/BlockContainer.html" title="class in org.jfree.chart.block">BlockContainer</a>, <a href="../../../../org/jfree/chart/block/ColorBlock.html" title="class in org.jfree.chart.block">ColorBlock</a>, <a href="../../../../org/jfree/chart/block/EmptyBlock.html" title="class in org.jfree.chart.block">EmptyBlock</a>, <a href="../../../../org/jfree/chart/block/LabelBlock.html" title="class in org.jfree.chart.block">LabelBlock</a>, <a href="../../../../org/jfree/chart/title/LegendGraphic.html" title="class in org.jfree.chart.title">LegendGraphic</a>, <a href="../../../../org/jfree/chart/title/Title.html" title="class in org.jfree.chart.title">Title</a></dd>
  117. </dl>
  118. <hr>
  119. <br>
  120. <pre>public class <a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.72">AbstractBlock</a>
  121. extends java.lang.Object
  122. implements java.lang.Cloneable, java.io.Serializable</pre>
  123. <div class="block">A convenience class for creating new classes that implement
  124. the <a href="../../../../org/jfree/chart/block/Block.html" title="interface in org.jfree.chart.block"><code>Block</code></a> interface.</div>
  125. <dl>
  126. <dt><span class="seeLabel">See Also:</span></dt>
  127. <dd><a href="../../../../serialized-form.html#org.jfree.chart.block.AbstractBlock">Serialized Form</a></dd>
  128. </dl>
  129. </li>
  130. </ul>
  131. </div>
  132. <div class="summary">
  133. <ul class="blockList">
  134. <li class="blockList">
  135. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  136. <ul class="blockList">
  137. <li class="blockList"><a name="constructor.summary">
  138. <!-- -->
  139. </a>
  140. <h3>Constructor Summary</h3>
  141. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  142. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  143. <tr>
  144. <th class="colFirst" scope="col">Modifier</th>
  145. <th class="colLast" scope="col">Constructor and Description</th>
  146. </tr>
  147. <tr class="altColor">
  148. <td class="colFirst"><code>protected </code></td>
  149. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#AbstractBlock--">AbstractBlock</a></span>()</code>
  150. <div class="block">Creates a new block.</div>
  151. </td>
  152. </tr>
  153. </table>
  154. </li>
  155. </ul>
  156. <!-- ========== METHOD SUMMARY =========== -->
  157. <ul class="blockList">
  158. <li class="blockList"><a name="method.summary">
  159. <!-- -->
  160. </a>
  161. <h3>Method Summary</h3>
  162. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  163. <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>
  164. <tr>
  165. <th class="colFirst" scope="col">Modifier and Type</th>
  166. <th class="colLast" scope="col">Method and Description</th>
  167. </tr>
  168. <tr id="i0" class="altColor">
  169. <td class="colFirst"><code>org.jfree.ui.Size2D</code></td>
  170. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#arrange-java.awt.Graphics2D-">arrange</a></span>(java.awt.Graphics2D&nbsp;g2)</code>
  171. <div class="block">Arranges the contents of the block, with no constraints, and returns
  172. the block size.</div>
  173. </td>
  174. </tr>
  175. <tr id="i1" class="rowColor">
  176. <td class="colFirst"><code>org.jfree.ui.Size2D</code></td>
  177. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#arrange-java.awt.Graphics2D-org.jfree.chart.block.RectangleConstraint-">arrange</a></span>(java.awt.Graphics2D&nbsp;g2,
  178. <a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a>&nbsp;constraint)</code>
  179. <div class="block">Arranges the contents of the block, within the given constraints, and
  180. returns the block size.</div>
  181. </td>
  182. </tr>
  183. <tr id="i2" class="altColor">
  184. <td class="colFirst"><code>protected double</code></td>
  185. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#calculateTotalHeight-double-">calculateTotalHeight</a></span>(double&nbsp;contentHeight)</code>
  186. <div class="block">Adds the margin, border and padding to the specified content height.</div>
  187. </td>
  188. </tr>
  189. <tr id="i3" class="rowColor">
  190. <td class="colFirst"><code>protected double</code></td>
  191. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#calculateTotalWidth-double-">calculateTotalWidth</a></span>(double&nbsp;contentWidth)</code>
  192. <div class="block">Adds the margin, border and padding to the specified content width.</div>
  193. </td>
  194. </tr>
  195. <tr id="i4" class="altColor">
  196. <td class="colFirst"><code>java.lang.Object</code></td>
  197. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#clone--">clone</a></span>()</code>
  198. <div class="block">Returns a clone of this block.</div>
  199. </td>
  200. </tr>
  201. <tr id="i5" class="rowColor">
  202. <td class="colFirst"><code>protected void</code></td>
  203. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#drawBorder-java.awt.Graphics2D-java.awt.geom.Rectangle2D-">drawBorder</a></span>(java.awt.Graphics2D&nbsp;g2,
  204. java.awt.geom.Rectangle2D&nbsp;area)</code>
  205. <div class="block">Draws the border around the perimeter of the specified area.</div>
  206. </td>
  207. </tr>
  208. <tr id="i6" class="altColor">
  209. <td class="colFirst"><code>boolean</code></td>
  210. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  211. <div class="block">Tests this block for equality with an arbitrary object.</div>
  212. </td>
  213. </tr>
  214. <tr id="i7" class="rowColor">
  215. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</a></code></td>
  216. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getBorder--">getBorder</a></span>()</code>
  217. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  218. <div class="block"><span class="deprecationComment">Use <a href="../../../../org/jfree/chart/block/AbstractBlock.html#getFrame--"><code>getFrame()</code></a> instead.</span></div>
  219. </div>
  220. </td>
  221. </tr>
  222. <tr id="i8" class="altColor">
  223. <td class="colFirst"><code>java.awt.geom.Rectangle2D</code></td>
  224. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getBounds--">getBounds</a></span>()</code>
  225. <div class="block">Returns the current bounds of the block.</div>
  226. </td>
  227. </tr>
  228. <tr id="i9" class="rowColor">
  229. <td class="colFirst"><code>double</code></td>
  230. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getContentXOffset--">getContentXOffset</a></span>()</code>
  231. <div class="block">Returns the x-offset for the content within the block.</div>
  232. </td>
  233. </tr>
  234. <tr id="i10" class="altColor">
  235. <td class="colFirst"><code>double</code></td>
  236. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getContentYOffset--">getContentYOffset</a></span>()</code>
  237. <div class="block">Returns the y-offset for the content within the block.</div>
  238. </td>
  239. </tr>
  240. <tr id="i11" class="rowColor">
  241. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/BlockFrame.html" title="interface in org.jfree.chart.block">BlockFrame</a></code></td>
  242. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getFrame--">getFrame</a></span>()</code>
  243. <div class="block">Returns the current frame (border).</div>
  244. </td>
  245. </tr>
  246. <tr id="i12" class="altColor">
  247. <td class="colFirst"><code>double</code></td>
  248. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getHeight--">getHeight</a></span>()</code>
  249. <div class="block">Returns the natural height of the block, if this is known in advance.</div>
  250. </td>
  251. </tr>
  252. <tr id="i13" class="rowColor">
  253. <td class="colFirst"><code>java.lang.String</code></td>
  254. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getID--">getID</a></span>()</code>
  255. <div class="block">Returns the id.</div>
  256. </td>
  257. </tr>
  258. <tr id="i14" class="altColor">
  259. <td class="colFirst"><code>org.jfree.ui.RectangleInsets</code></td>
  260. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getMargin--">getMargin</a></span>()</code>
  261. <div class="block">Returns the margin.</div>
  262. </td>
  263. </tr>
  264. <tr id="i15" class="rowColor">
  265. <td class="colFirst"><code>org.jfree.ui.RectangleInsets</code></td>
  266. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getPadding--">getPadding</a></span>()</code>
  267. <div class="block">Returns the padding.</div>
  268. </td>
  269. </tr>
  270. <tr id="i16" class="altColor">
  271. <td class="colFirst"><code>double</code></td>
  272. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getWidth--">getWidth</a></span>()</code>
  273. <div class="block">Returns the natural width of the block, if this is known in advance.</div>
  274. </td>
  275. </tr>
  276. <tr id="i17" class="rowColor">
  277. <td class="colFirst"><code>void</code></td>
  278. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setBorder-org.jfree.chart.block.BlockBorder-">setBorder</a></span>(<a href="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</a>&nbsp;border)</code>
  279. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  280. <div class="block"><span class="deprecationComment">Use <a href="../../../../org/jfree/chart/block/AbstractBlock.html#setFrame-org.jfree.chart.block.BlockFrame-"><code>setFrame(BlockFrame)</code></a> instead.</span></div>
  281. </div>
  282. </td>
  283. </tr>
  284. <tr id="i18" class="altColor">
  285. <td class="colFirst"><code>void</code></td>
  286. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setBorder-double-double-double-double-">setBorder</a></span>(double&nbsp;top,
  287. double&nbsp;left,
  288. double&nbsp;bottom,
  289. double&nbsp;right)</code>
  290. <div class="block">Sets a black border with the specified line widths.</div>
  291. </td>
  292. </tr>
  293. <tr id="i19" class="rowColor">
  294. <td class="colFirst"><code>void</code></td>
  295. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setBounds-java.awt.geom.Rectangle2D-">setBounds</a></span>(java.awt.geom.Rectangle2D&nbsp;bounds)</code>
  296. <div class="block">Sets the bounds of the block.</div>
  297. </td>
  298. </tr>
  299. <tr id="i20" class="altColor">
  300. <td class="colFirst"><code>void</code></td>
  301. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setFrame-org.jfree.chart.block.BlockFrame-">setFrame</a></span>(<a href="../../../../org/jfree/chart/block/BlockFrame.html" title="interface in org.jfree.chart.block">BlockFrame</a>&nbsp;frame)</code>
  302. <div class="block">Sets the frame (or border).</div>
  303. </td>
  304. </tr>
  305. <tr id="i21" class="rowColor">
  306. <td class="colFirst"><code>void</code></td>
  307. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setHeight-double-">setHeight</a></span>(double&nbsp;height)</code>
  308. <div class="block">Sets the natural width of the block, if this is known in advance.</div>
  309. </td>
  310. </tr>
  311. <tr id="i22" class="altColor">
  312. <td class="colFirst"><code>void</code></td>
  313. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setID-java.lang.String-">setID</a></span>(java.lang.String&nbsp;id)</code>
  314. <div class="block">Sets the id for the block.</div>
  315. </td>
  316. </tr>
  317. <tr id="i23" class="rowColor">
  318. <td class="colFirst"><code>void</code></td>
  319. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setMargin-double-double-double-double-">setMargin</a></span>(double&nbsp;top,
  320. double&nbsp;left,
  321. double&nbsp;bottom,
  322. double&nbsp;right)</code>
  323. <div class="block">Sets the margin.</div>
  324. </td>
  325. </tr>
  326. <tr id="i24" class="altColor">
  327. <td class="colFirst"><code>void</code></td>
  328. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setMargin-org.jfree.ui.RectangleInsets-">setMargin</a></span>(org.jfree.ui.RectangleInsets&nbsp;margin)</code>
  329. <div class="block">Sets the margin (use <code>RectangleInsets.ZERO_INSETS</code> for no
  330. padding).</div>
  331. </td>
  332. </tr>
  333. <tr id="i25" class="rowColor">
  334. <td class="colFirst"><code>void</code></td>
  335. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setPadding-double-double-double-double-">setPadding</a></span>(double&nbsp;top,
  336. double&nbsp;left,
  337. double&nbsp;bottom,
  338. double&nbsp;right)</code>
  339. <div class="block">Sets the padding.</div>
  340. </td>
  341. </tr>
  342. <tr id="i26" class="altColor">
  343. <td class="colFirst"><code>void</code></td>
  344. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setPadding-org.jfree.ui.RectangleInsets-">setPadding</a></span>(org.jfree.ui.RectangleInsets&nbsp;padding)</code>
  345. <div class="block">Sets the padding (use <code>RectangleInsets.ZERO_INSETS</code> for no
  346. padding).</div>
  347. </td>
  348. </tr>
  349. <tr id="i27" class="rowColor">
  350. <td class="colFirst"><code>void</code></td>
  351. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setWidth-double-">setWidth</a></span>(double&nbsp;width)</code>
  352. <div class="block">Sets the natural width of the block, if this is known in advance.</div>
  353. </td>
  354. </tr>
  355. <tr id="i28" class="altColor">
  356. <td class="colFirst"><code>protected <a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  357. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#toContentConstraint-org.jfree.chart.block.RectangleConstraint-">toContentConstraint</a></span>(<a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a>&nbsp;c)</code>
  358. <div class="block">Returns a constraint for the content of this block that will result in
  359. the bounds of the block matching the specified constraint.</div>
  360. </td>
  361. </tr>
  362. <tr id="i29" class="rowColor">
  363. <td class="colFirst"><code>protected java.awt.geom.Rectangle2D</code></td>
  364. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimBorder-java.awt.geom.Rectangle2D-">trimBorder</a></span>(java.awt.geom.Rectangle2D&nbsp;area)</code>
  365. <div class="block">Reduces the specified area by the amount of space consumed
  366. by the border.</div>
  367. </td>
  368. </tr>
  369. <tr id="i30" class="altColor">
  370. <td class="colFirst"><code>protected java.awt.geom.Rectangle2D</code></td>
  371. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimMargin-java.awt.geom.Rectangle2D-">trimMargin</a></span>(java.awt.geom.Rectangle2D&nbsp;area)</code>
  372. <div class="block">Reduces the specified area by the amount of space consumed
  373. by the margin.</div>
  374. </td>
  375. </tr>
  376. <tr id="i31" class="rowColor">
  377. <td class="colFirst"><code>protected java.awt.geom.Rectangle2D</code></td>
  378. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimPadding-java.awt.geom.Rectangle2D-">trimPadding</a></span>(java.awt.geom.Rectangle2D&nbsp;area)</code>
  379. <div class="block">Reduces the specified area by the amount of space consumed
  380. by the padding.</div>
  381. </td>
  382. </tr>
  383. <tr id="i32" class="altColor">
  384. <td class="colFirst"><code>protected double</code></td>
  385. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentHeight-double-">trimToContentHeight</a></span>(double&nbsp;fixedHeight)</code>
  386. <div class="block">Calculate the height available for content after subtracting
  387. the margin, border and padding space from the specified fixed
  388. height.</div>
  389. </td>
  390. </tr>
  391. <tr id="i33" class="rowColor">
  392. <td class="colFirst"><code>protected double</code></td>
  393. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentWidth-double-">trimToContentWidth</a></span>(double&nbsp;fixedWidth)</code>
  394. <div class="block">Calculate the width available for content after subtracting
  395. the margin, border and padding space from the specified fixed
  396. width.</div>
  397. </td>
  398. </tr>
  399. </table>
  400. <ul class="blockList">
  401. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  402. <!-- -->
  403. </a>
  404. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  405. <code>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  406. </ul>
  407. </li>
  408. </ul>
  409. </li>
  410. </ul>
  411. </div>
  412. <div class="details">
  413. <ul class="blockList">
  414. <li class="blockList">
  415. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  416. <ul class="blockList">
  417. <li class="blockList"><a name="constructor.detail">
  418. <!-- -->
  419. </a>
  420. <h3>Constructor Detail</h3>
  421. <a name="AbstractBlock--">
  422. <!-- -->
  423. </a>
  424. <ul class="blockListLast">
  425. <li class="blockList">
  426. <h4>AbstractBlock</h4>
  427. <pre>protected&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.109">AbstractBlock</a>()</pre>
  428. <div class="block">Creates a new block.</div>
  429. </li>
  430. </ul>
  431. </li>
  432. </ul>
  433. <!-- ============ METHOD DETAIL ========== -->
  434. <ul class="blockList">
  435. <li class="blockList"><a name="method.detail">
  436. <!-- -->
  437. </a>
  438. <h3>Method Detail</h3>
  439. <a name="getID--">
  440. <!-- -->
  441. </a>
  442. <ul class="blockList">
  443. <li class="blockList">
  444. <h4>getID</h4>
  445. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.126">getID</a>()</pre>
  446. <div class="block">Returns the id.</div>
  447. <dl>
  448. <dt><span class="returnLabel">Returns:</span></dt>
  449. <dd>The id (possibly <code>null</code>).</dd>
  450. <dt><span class="seeLabel">See Also:</span></dt>
  451. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setID-java.lang.String-"><code>setID(String)</code></a></dd>
  452. </dl>
  453. </li>
  454. </ul>
  455. <a name="setID-java.lang.String-">
  456. <!-- -->
  457. </a>
  458. <ul class="blockList">
  459. <li class="blockList">
  460. <h4>setID</h4>
  461. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.137">setID</a>(java.lang.String&nbsp;id)</pre>
  462. <div class="block">Sets the id for the block.</div>
  463. <dl>
  464. <dt><span class="paramLabel">Parameters:</span></dt>
  465. <dd><code>id</code> - the id (<code>null</code> permitted).</dd>
  466. <dt><span class="seeLabel">See Also:</span></dt>
  467. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getID--"><code>getID()</code></a></dd>
  468. </dl>
  469. </li>
  470. </ul>
  471. <a name="getWidth--">
  472. <!-- -->
  473. </a>
  474. <ul class="blockList">
  475. <li class="blockList">
  476. <h4>getWidth</h4>
  477. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.150">getWidth</a>()</pre>
  478. <div class="block">Returns the natural width of the block, if this is known in advance.
  479. The actual width of the block may be overridden if layout constraints
  480. make this necessary.</div>
  481. <dl>
  482. <dt><span class="returnLabel">Returns:</span></dt>
  483. <dd>The width.</dd>
  484. <dt><span class="seeLabel">See Also:</span></dt>
  485. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setWidth-double-"><code>setWidth(double)</code></a></dd>
  486. </dl>
  487. </li>
  488. </ul>
  489. <a name="setWidth-double-">
  490. <!-- -->
  491. </a>
  492. <ul class="blockList">
  493. <li class="blockList">
  494. <h4>setWidth</h4>
  495. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.161">setWidth</a>(double&nbsp;width)</pre>
  496. <div class="block">Sets the natural width of the block, if this is known in advance.</div>
  497. <dl>
  498. <dt><span class="paramLabel">Parameters:</span></dt>
  499. <dd><code>width</code> - the width (in Java2D units)</dd>
  500. <dt><span class="seeLabel">See Also:</span></dt>
  501. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getWidth--"><code>getWidth()</code></a></dd>
  502. </dl>
  503. </li>
  504. </ul>
  505. <a name="getHeight--">
  506. <!-- -->
  507. </a>
  508. <ul class="blockList">
  509. <li class="blockList">
  510. <h4>getHeight</h4>
  511. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.174">getHeight</a>()</pre>
  512. <div class="block">Returns the natural height of the block, if this is known in advance.
  513. The actual height of the block may be overridden if layout constraints
  514. make this necessary.</div>
  515. <dl>
  516. <dt><span class="returnLabel">Returns:</span></dt>
  517. <dd>The height.</dd>
  518. <dt><span class="seeLabel">See Also:</span></dt>
  519. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setHeight-double-"><code>setHeight(double)</code></a></dd>
  520. </dl>
  521. </li>
  522. </ul>
  523. <a name="setHeight-double-">
  524. <!-- -->
  525. </a>
  526. <ul class="blockList">
  527. <li class="blockList">
  528. <h4>setHeight</h4>
  529. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.185">setHeight</a>(double&nbsp;height)</pre>
  530. <div class="block">Sets the natural width of the block, if this is known in advance.</div>
  531. <dl>
  532. <dt><span class="paramLabel">Parameters:</span></dt>
  533. <dd><code>height</code> - the width (in Java2D units)</dd>
  534. <dt><span class="seeLabel">See Also:</span></dt>
  535. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getHeight--"><code>getHeight()</code></a></dd>
  536. </dl>
  537. </li>
  538. </ul>
  539. <a name="getMargin--">
  540. <!-- -->
  541. </a>
  542. <ul class="blockList">
  543. <li class="blockList">
  544. <h4>getMargin</h4>
  545. <pre>public&nbsp;org.jfree.ui.RectangleInsets&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.196">getMargin</a>()</pre>
  546. <div class="block">Returns the margin.</div>
  547. <dl>
  548. <dt><span class="returnLabel">Returns:</span></dt>
  549. <dd>The margin (never <code>null</code>).</dd>
  550. <dt><span class="seeLabel">See Also:</span></dt>
  551. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getMargin--"><code>getMargin()</code></a></dd>
  552. </dl>
  553. </li>
  554. </ul>
  555. <a name="setMargin-org.jfree.ui.RectangleInsets-">
  556. <!-- -->
  557. </a>
  558. <ul class="blockList">
  559. <li class="blockList">
  560. <h4>setMargin</h4>
  561. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.208">setMargin</a>(org.jfree.ui.RectangleInsets&nbsp;margin)</pre>
  562. <div class="block">Sets the margin (use <code>RectangleInsets.ZERO_INSETS</code> for no
  563. padding).</div>
  564. <dl>
  565. <dt><span class="paramLabel">Parameters:</span></dt>
  566. <dd><code>margin</code> - the margin (<code>null</code> not permitted).</dd>
  567. <dt><span class="seeLabel">See Also:</span></dt>
  568. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getMargin--"><code>getMargin()</code></a></dd>
  569. </dl>
  570. </li>
  571. </ul>
  572. <a name="setMargin-double-double-double-double-">
  573. <!-- -->
  574. </a>
  575. <ul class="blockList">
  576. <li class="blockList">
  577. <h4>setMargin</h4>
  578. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.223">setMargin</a>(double&nbsp;top,
  579. double&nbsp;left,
  580. double&nbsp;bottom,
  581. double&nbsp;right)</pre>
  582. <div class="block">Sets the margin.</div>
  583. <dl>
  584. <dt><span class="paramLabel">Parameters:</span></dt>
  585. <dd><code>top</code> - the top margin.</dd>
  586. <dd><code>left</code> - the left margin.</dd>
  587. <dd><code>bottom</code> - the bottom margin.</dd>
  588. <dd><code>right</code> - the right margin.</dd>
  589. <dt><span class="seeLabel">See Also:</span></dt>
  590. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getMargin--"><code>getMargin()</code></a></dd>
  591. </dl>
  592. </li>
  593. </ul>
  594. <a name="getBorder--">
  595. <!-- -->
  596. </a>
  597. <ul class="blockList">
  598. <li class="blockList">
  599. <h4>getBorder</h4>
  600. <pre>public&nbsp;<a href="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.235">getBorder</a>()</pre>
  601. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/jfree/chart/block/AbstractBlock.html#getFrame--"><code>getFrame()</code></a> instead.</span></div>
  602. <div class="block">Returns the border.</div>
  603. <dl>
  604. <dt><span class="returnLabel">Returns:</span></dt>
  605. <dd>The border (never <code>null</code>).</dd>
  606. </dl>
  607. </li>
  608. </ul>
  609. <a name="setBorder-org.jfree.chart.block.BlockBorder-">
  610. <!-- -->
  611. </a>
  612. <ul class="blockList">
  613. <li class="blockList">
  614. <h4>setBorder</h4>
  615. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.254">setBorder</a>(<a href="../../../../org/jfree/chart/block/BlockBorder.html" title="class in org.jfree.chart.block">BlockBorder</a>&nbsp;border)</pre>
  616. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/jfree/chart/block/AbstractBlock.html#setFrame-org.jfree.chart.block.BlockFrame-"><code>setFrame(BlockFrame)</code></a> instead.</span></div>
  617. <div class="block">Sets the border for the block (use <a href="../../../../org/jfree/chart/block/BlockBorder.html#NONE"><code>BlockBorder.NONE</code></a> for
  618. no border).</div>
  619. <dl>
  620. <dt><span class="paramLabel">Parameters:</span></dt>
  621. <dd><code>border</code> - the border (<code>null</code> not permitted).</dd>
  622. <dt><span class="seeLabel">See Also:</span></dt>
  623. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getBorder--"><code>getBorder()</code></a></dd>
  624. </dl>
  625. </li>
  626. </ul>
  627. <a name="setBorder-double-double-double-double-">
  628. <!-- -->
  629. </a>
  630. <ul class="blockList">
  631. <li class="blockList">
  632. <h4>setBorder</h4>
  633. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.266">setBorder</a>(double&nbsp;top,
  634. double&nbsp;left,
  635. double&nbsp;bottom,
  636. double&nbsp;right)</pre>
  637. <div class="block">Sets a black border with the specified line widths.</div>
  638. <dl>
  639. <dt><span class="paramLabel">Parameters:</span></dt>
  640. <dd><code>top</code> - the top border line width.</dd>
  641. <dd><code>left</code> - the left border line width.</dd>
  642. <dd><code>bottom</code> - the bottom border line width.</dd>
  643. <dd><code>right</code> - the right border line width.</dd>
  644. </dl>
  645. </li>
  646. </ul>
  647. <a name="getFrame--">
  648. <!-- -->
  649. </a>
  650. <ul class="blockList">
  651. <li class="blockList">
  652. <h4>getFrame</h4>
  653. <pre>public&nbsp;<a href="../../../../org/jfree/chart/block/BlockFrame.html" title="interface in org.jfree.chart.block">BlockFrame</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.279">getFrame</a>()</pre>
  654. <div class="block">Returns the current frame (border).</div>
  655. <dl>
  656. <dt><span class="returnLabel">Returns:</span></dt>
  657. <dd>The frame.</dd>
  658. <dt><span class="simpleTagLabel">Since:</span></dt>
  659. <dd>1.0.5</dd>
  660. <dt><span class="seeLabel">See Also:</span></dt>
  661. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setFrame-org.jfree.chart.block.BlockFrame-"><code>setFrame(BlockFrame)</code></a></dd>
  662. </dl>
  663. </li>
  664. </ul>
  665. <a name="setFrame-org.jfree.chart.block.BlockFrame-">
  666. <!-- -->
  667. </a>
  668. <ul class="blockList">
  669. <li class="blockList">
  670. <h4>setFrame</h4>
  671. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.291">setFrame</a>(<a href="../../../../org/jfree/chart/block/BlockFrame.html" title="interface in org.jfree.chart.block">BlockFrame</a>&nbsp;frame)</pre>
  672. <div class="block">Sets the frame (or border).</div>
  673. <dl>
  674. <dt><span class="paramLabel">Parameters:</span></dt>
  675. <dd><code>frame</code> - the frame (<code>null</code> not permitted).</dd>
  676. <dt><span class="simpleTagLabel">Since:</span></dt>
  677. <dd>1.0.5</dd>
  678. <dt><span class="seeLabel">See Also:</span></dt>
  679. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getFrame--"><code>getFrame()</code></a></dd>
  680. </dl>
  681. </li>
  682. </ul>
  683. <a name="getPadding--">
  684. <!-- -->
  685. </a>
  686. <ul class="blockList">
  687. <li class="blockList">
  688. <h4>getPadding</h4>
  689. <pre>public&nbsp;org.jfree.ui.RectangleInsets&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.303">getPadding</a>()</pre>
  690. <div class="block">Returns the padding.</div>
  691. <dl>
  692. <dt><span class="returnLabel">Returns:</span></dt>
  693. <dd>The padding (never <code>null</code>).</dd>
  694. <dt><span class="seeLabel">See Also:</span></dt>
  695. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setPadding-org.jfree.ui.RectangleInsets-"><code>setPadding(RectangleInsets)</code></a></dd>
  696. </dl>
  697. </li>
  698. </ul>
  699. <a name="setPadding-org.jfree.ui.RectangleInsets-">
  700. <!-- -->
  701. </a>
  702. <ul class="blockList">
  703. <li class="blockList">
  704. <h4>setPadding</h4>
  705. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.315">setPadding</a>(org.jfree.ui.RectangleInsets&nbsp;padding)</pre>
  706. <div class="block">Sets the padding (use <code>RectangleInsets.ZERO_INSETS</code> for no
  707. padding).</div>
  708. <dl>
  709. <dt><span class="paramLabel">Parameters:</span></dt>
  710. <dd><code>padding</code> - the padding (<code>null</code> not permitted).</dd>
  711. <dt><span class="seeLabel">See Also:</span></dt>
  712. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getPadding--"><code>getPadding()</code></a></dd>
  713. </dl>
  714. </li>
  715. </ul>
  716. <a name="setPadding-double-double-double-double-">
  717. <!-- -->
  718. </a>
  719. <ul class="blockList">
  720. <li class="blockList">
  721. <h4>setPadding</h4>
  722. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.328">setPadding</a>(double&nbsp;top,
  723. double&nbsp;left,
  724. double&nbsp;bottom,
  725. double&nbsp;right)</pre>
  726. <div class="block">Sets the padding.</div>
  727. <dl>
  728. <dt><span class="paramLabel">Parameters:</span></dt>
  729. <dd><code>top</code> - the top padding.</dd>
  730. <dd><code>left</code> - the left padding.</dd>
  731. <dd><code>bottom</code> - the bottom padding.</dd>
  732. <dd><code>right</code> - the right padding.</dd>
  733. </dl>
  734. </li>
  735. </ul>
  736. <a name="getContentXOffset--">
  737. <!-- -->
  738. </a>
  739. <ul class="blockList">
  740. <li class="blockList">
  741. <h4>getContentXOffset</h4>
  742. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.340">getContentXOffset</a>()</pre>
  743. <div class="block">Returns the x-offset for the content within the block.</div>
  744. <dl>
  745. <dt><span class="returnLabel">Returns:</span></dt>
  746. <dd>The x-offset.</dd>
  747. <dt><span class="seeLabel">See Also:</span></dt>
  748. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getContentYOffset--"><code>getContentYOffset()</code></a></dd>
  749. </dl>
  750. </li>
  751. </ul>
  752. <a name="getContentYOffset--">
  753. <!-- -->
  754. </a>
  755. <ul class="blockList">
  756. <li class="blockList">
  757. <h4>getContentYOffset</h4>
  758. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.352">getContentYOffset</a>()</pre>
  759. <div class="block">Returns the y-offset for the content within the block.</div>
  760. <dl>
  761. <dt><span class="returnLabel">Returns:</span></dt>
  762. <dd>The y-offset.</dd>
  763. <dt><span class="seeLabel">See Also:</span></dt>
  764. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getContentXOffset--"><code>getContentXOffset()</code></a></dd>
  765. </dl>
  766. </li>
  767. </ul>
  768. <a name="arrange-java.awt.Graphics2D-">
  769. <!-- -->
  770. </a>
  771. <ul class="blockList">
  772. <li class="blockList">
  773. <h4>arrange</h4>
  774. <pre>public&nbsp;org.jfree.ui.Size2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.365">arrange</a>(java.awt.Graphics2D&nbsp;g2)</pre>
  775. <div class="block">Arranges the contents of the block, with no constraints, and returns
  776. the block size.</div>
  777. <dl>
  778. <dt><span class="paramLabel">Parameters:</span></dt>
  779. <dd><code>g2</code> - the graphics device.</dd>
  780. <dt><span class="returnLabel">Returns:</span></dt>
  781. <dd>The block size (in Java2D units, never <code>null</code>).</dd>
  782. </dl>
  783. </li>
  784. </ul>
  785. <a name="arrange-java.awt.Graphics2D-org.jfree.chart.block.RectangleConstraint-">
  786. <!-- -->
  787. </a>
  788. <ul class="blockList">
  789. <li class="blockList">
  790. <h4>arrange</h4>
  791. <pre>public&nbsp;org.jfree.ui.Size2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.378">arrange</a>(java.awt.Graphics2D&nbsp;g2,
  792. <a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a>&nbsp;constraint)</pre>
  793. <div class="block">Arranges the contents of the block, within the given constraints, and
  794. returns the block size.</div>
  795. <dl>
  796. <dt><span class="paramLabel">Parameters:</span></dt>
  797. <dd><code>g2</code> - the graphics device.</dd>
  798. <dd><code>constraint</code> - the constraint (<code>null</code> not permitted).</dd>
  799. <dt><span class="returnLabel">Returns:</span></dt>
  800. <dd>The block size (in Java2D units, never <code>null</code>).</dd>
  801. </dl>
  802. </li>
  803. </ul>
  804. <a name="getBounds--">
  805. <!-- -->
  806. </a>
  807. <ul class="blockList">
  808. <li class="blockList">
  809. <h4>getBounds</h4>
  810. <pre>public&nbsp;java.awt.geom.Rectangle2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.390">getBounds</a>()</pre>
  811. <div class="block">Returns the current bounds of the block.</div>
  812. <dl>
  813. <dt><span class="returnLabel">Returns:</span></dt>
  814. <dd>The bounds.</dd>
  815. <dt><span class="seeLabel">See Also:</span></dt>
  816. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#setBounds-java.awt.geom.Rectangle2D-"><code>setBounds(Rectangle2D)</code></a></dd>
  817. </dl>
  818. </li>
  819. </ul>
  820. <a name="setBounds-java.awt.geom.Rectangle2D-">
  821. <!-- -->
  822. </a>
  823. <ul class="blockList">
  824. <li class="blockList">
  825. <h4>setBounds</h4>
  826. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.401">setBounds</a>(java.awt.geom.Rectangle2D&nbsp;bounds)</pre>
  827. <div class="block">Sets the bounds of the block.</div>
  828. <dl>
  829. <dt><span class="paramLabel">Parameters:</span></dt>
  830. <dd><code>bounds</code> - the bounds (<code>null</code> not permitted).</dd>
  831. <dt><span class="seeLabel">See Also:</span></dt>
  832. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#getBounds--"><code>getBounds()</code></a></dd>
  833. </dl>
  834. </li>
  835. </ul>
  836. <a name="trimToContentWidth-double-">
  837. <!-- -->
  838. </a>
  839. <ul class="blockList">
  840. <li class="blockList">
  841. <h4>trimToContentWidth</h4>
  842. <pre>protected&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.417">trimToContentWidth</a>(double&nbsp;fixedWidth)</pre>
  843. <div class="block">Calculate the width available for content after subtracting
  844. the margin, border and padding space from the specified fixed
  845. width.</div>
  846. <dl>
  847. <dt><span class="paramLabel">Parameters:</span></dt>
  848. <dd><code>fixedWidth</code> - the fixed width.</dd>
  849. <dt><span class="returnLabel">Returns:</span></dt>
  850. <dd>The available space.</dd>
  851. <dt><span class="seeLabel">See Also:</span></dt>
  852. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentHeight-double-"><code>trimToContentHeight(double)</code></a></dd>
  853. </dl>
  854. </li>
  855. </ul>
  856. <a name="trimToContentHeight-double-">
  857. <!-- -->
  858. </a>
  859. <ul class="blockList">
  860. <li class="blockList">
  861. <h4>trimToContentHeight</h4>
  862. <pre>protected&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.435">trimToContentHeight</a>(double&nbsp;fixedHeight)</pre>
  863. <div class="block">Calculate the height available for content after subtracting
  864. the margin, border and padding space from the specified fixed
  865. height.</div>
  866. <dl>
  867. <dt><span class="paramLabel">Parameters:</span></dt>
  868. <dd><code>fixedHeight</code> - the fixed height.</dd>
  869. <dt><span class="returnLabel">Returns:</span></dt>
  870. <dd>The available space.</dd>
  871. <dt><span class="seeLabel">See Also:</span></dt>
  872. <dd><a href="../../../../org/jfree/chart/block/AbstractBlock.html#trimToContentWidth-double-"><code>trimToContentWidth(double)</code></a></dd>
  873. </dl>
  874. </li>
  875. </ul>
  876. <a name="toContentConstraint-org.jfree.chart.block.RectangleConstraint-">
  877. <!-- -->
  878. </a>
  879. <ul class="blockList">
  880. <li class="blockList">
  881. <h4>toContentConstraint</h4>
  882. <pre>protected&nbsp;<a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.450">toContentConstraint</a>(<a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a>&nbsp;c)</pre>
  883. <div class="block">Returns a constraint for the content of this block that will result in
  884. the bounds of the block matching the specified constraint.</div>
  885. <dl>
  886. <dt><span class="paramLabel">Parameters:</span></dt>
  887. <dd><code>c</code> - the outer constraint (<code>null</code> not permitted).</dd>
  888. <dt><span class="returnLabel">Returns:</span></dt>
  889. <dd>The content constraint.</dd>
  890. </dl>
  891. </li>
  892. </ul>
  893. <a name="calculateTotalWidth-double-">
  894. <!-- -->
  895. </a>
  896. <ul class="blockList">
  897. <li class="blockList">
  898. <h4>calculateTotalWidth</h4>
  899. <pre>protected&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.504">calculateTotalWidth</a>(double&nbsp;contentWidth)</pre>
  900. <div class="block">Adds the margin, border and padding to the specified content width.</div>
  901. <dl>
  902. <dt><span class="paramLabel">Parameters:</span></dt>
  903. <dd><code>contentWidth</code> - the content width.</dd>
  904. <dt><span class="returnLabel">Returns:</span></dt>
  905. <dd>The adjusted width.</dd>
  906. </dl>
  907. </li>
  908. </ul>
  909. <a name="calculateTotalHeight-double-">
  910. <!-- -->
  911. </a>
  912. <ul class="blockList">
  913. <li class="blockList">
  914. <h4>calculateTotalHeight</h4>
  915. <pre>protected&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.519">calculateTotalHeight</a>(double&nbsp;contentHeight)</pre>
  916. <div class="block">Adds the margin, border and padding to the specified content height.</div>
  917. <dl>
  918. <dt><span class="paramLabel">Parameters:</span></dt>
  919. <dd><code>contentHeight</code> - the content height.</dd>
  920. <dt><span class="returnLabel">Returns:</span></dt>
  921. <dd>The adjusted height.</dd>
  922. </dl>
  923. </li>
  924. </ul>
  925. <a name="trimMargin-java.awt.geom.Rectangle2D-">
  926. <!-- -->
  927. </a>
  928. <ul class="blockList">
  929. <li class="blockList">
  930. <h4>trimMargin</h4>
  931. <pre>protected&nbsp;java.awt.geom.Rectangle2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.535">trimMargin</a>(java.awt.geom.Rectangle2D&nbsp;area)</pre>
  932. <div class="block">Reduces the specified area by the amount of space consumed
  933. by the margin.</div>
  934. <dl>
  935. <dt><span class="paramLabel">Parameters:</span></dt>
  936. <dd><code>area</code> - the area (<code>null</code> not permitted).</dd>
  937. <dt><span class="returnLabel">Returns:</span></dt>
  938. <dd>The trimmed area.</dd>
  939. </dl>
  940. </li>
  941. </ul>
  942. <a name="trimBorder-java.awt.geom.Rectangle2D-">
  943. <!-- -->
  944. </a>
  945. <ul class="blockList">
  946. <li class="blockList">
  947. <h4>trimBorder</h4>
  948. <pre>protected&nbsp;java.awt.geom.Rectangle2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.549">trimBorder</a>(java.awt.geom.Rectangle2D&nbsp;area)</pre>
  949. <div class="block">Reduces the specified area by the amount of space consumed
  950. by the border.</div>
  951. <dl>
  952. <dt><span class="paramLabel">Parameters:</span></dt>
  953. <dd><code>area</code> - the area (<code>null</code> not permitted).</dd>
  954. <dt><span class="returnLabel">Returns:</span></dt>
  955. <dd>The trimmed area.</dd>
  956. </dl>
  957. </li>
  958. </ul>
  959. <a name="trimPadding-java.awt.geom.Rectangle2D-">
  960. <!-- -->
  961. </a>
  962. <ul class="blockList">
  963. <li class="blockList">
  964. <h4>trimPadding</h4>
  965. <pre>protected&nbsp;java.awt.geom.Rectangle2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.563">trimPadding</a>(java.awt.geom.Rectangle2D&nbsp;area)</pre>
  966. <div class="block">Reduces the specified area by the amount of space consumed
  967. by the padding.</div>
  968. <dl>
  969. <dt><span class="paramLabel">Parameters:</span></dt>
  970. <dd><code>area</code> - the area (<code>null</code> not permitted).</dd>
  971. <dt><span class="returnLabel">Returns:</span></dt>
  972. <dd>The trimmed area.</dd>
  973. </dl>
  974. </li>
  975. </ul>
  976. <a name="drawBorder-java.awt.Graphics2D-java.awt.geom.Rectangle2D-">
  977. <!-- -->
  978. </a>
  979. <ul class="blockList">
  980. <li class="blockList">
  981. <h4>drawBorder</h4>
  982. <pre>protected&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.575">drawBorder</a>(java.awt.Graphics2D&nbsp;g2,
  983. java.awt.geom.Rectangle2D&nbsp;area)</pre>
  984. <div class="block">Draws the border around the perimeter of the specified area.</div>
  985. <dl>
  986. <dt><span class="paramLabel">Parameters:</span></dt>
  987. <dd><code>g2</code> - the graphics device.</dd>
  988. <dd><code>area</code> - the area.</dd>
  989. </dl>
  990. </li>
  991. </ul>
  992. <a name="equals-java.lang.Object-">
  993. <!-- -->
  994. </a>
  995. <ul class="blockList">
  996. <li class="blockList">
  997. <h4>equals</h4>
  998. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.587">equals</a>(java.lang.Object&nbsp;obj)</pre>
  999. <div class="block">Tests this block for equality with an arbitrary object.</div>
  1000. <dl>
  1001. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  1002. <dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  1003. <dt><span class="paramLabel">Parameters:</span></dt>
  1004. <dd><code>obj</code> - the object (<code>null</code> permitted).</dd>
  1005. <dt><span class="returnLabel">Returns:</span></dt>
  1006. <dd>A boolean.</dd>
  1007. </dl>
  1008. </li>
  1009. </ul>
  1010. <a name="clone--">
  1011. <!-- -->
  1012. </a>
  1013. <ul class="blockListLast">
  1014. <li class="blockList">
  1015. <h4>clone</h4>
  1016. <pre>public&nbsp;java.lang.Object&nbsp;<a href="../../../../src-html/org/jfree/chart/block/AbstractBlock.html#line.628">clone</a>()
  1017. throws java.lang.CloneNotSupportedException</pre>
  1018. <div class="block">Returns a clone of this block.</div>
  1019. <dl>
  1020. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  1021. <dd><code>clone</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  1022. <dt><span class="returnLabel">Returns:</span></dt>
  1023. <dd>A clone.</dd>
  1024. <dt><span class="throwsLabel">Throws:</span></dt>
  1025. <dd><code>java.lang.CloneNotSupportedException</code> - if there is a problem creating the
  1026. clone.</dd>
  1027. </dl>
  1028. </li>
  1029. </ul>
  1030. </li>
  1031. </ul>
  1032. </li>
  1033. </ul>
  1034. </div>
  1035. </div>
  1036. <!-- ========= END OF CLASS DATA ========= -->
  1037. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1038. <div class="bottomNav"><a name="navbar.bottom">
  1039. <!-- -->
  1040. </a>
  1041. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  1042. <a name="navbar.bottom.firstrow">
  1043. <!-- -->
  1044. </a>
  1045. <ul class="navList" title="Navigation">
  1046. <li><a href="../../../../overview-summary.html">Overview</a></li>
  1047. <li><a href="package-summary.html">Package</a></li>
  1048. <li class="navBarCell1Rev">Class</li>
  1049. <li><a href="class-use/AbstractBlock.html">Use</a></li>
  1050. <li><a href="package-tree.html">Tree</a></li>
  1051. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  1052. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  1053. <li><a href="../../../../help-doc.html">Help</a></li>
  1054. </ul>
  1055. </div>
  1056. <div class="subNav">
  1057. <ul class="navList">
  1058. <li>Prev&nbsp;Class</li>
  1059. <li><a href="../../../../org/jfree/chart/block/Arrangement.html" title="interface in org.jfree.chart.block"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  1060. </ul>
  1061. <ul class="navList">
  1062. <li><a href="../../../../index.html?org/jfree/chart/block/AbstractBlock.html" target="_top">Frames</a></li>
  1063. <li><a href="AbstractBlock.html" target="_top">No&nbsp;Frames</a></li>
  1064. </ul>
  1065. <ul class="navList" id="allclasses_navbar_bottom">
  1066. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  1067. </ul>
  1068. <div>
  1069. <script type="text/javascript"><!--
  1070. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  1071. if(window==top) {
  1072. allClassesLink.style.display = "block";
  1073. }
  1074. else {
  1075. allClassesLink.style.display = "none";
  1076. }
  1077. //-->
  1078. </script>
  1079. </div>
  1080. <div>
  1081. <ul class="subNavList">
  1082. <li>Summary:&nbsp;</li>
  1083. <li>Nested&nbsp;|&nbsp;</li>
  1084. <li>Field&nbsp;|&nbsp;</li>
  1085. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  1086. <li><a href="#method.summary">Method</a></li>
  1087. </ul>
  1088. <ul class="subNavList">
  1089. <li>Detail:&nbsp;</li>
  1090. <li>Field&nbsp;|&nbsp;</li>
  1091. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  1092. <li><a href="#method.detail">Method</a></li>
  1093. </ul>
  1094. </div>
  1095. <a name="skip.navbar.bottom">
  1096. <!-- -->
  1097. </a></div>
  1098. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1099. </body>
  1100. </html>