RectangleConstraint.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  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>RectangleConstraint (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="RectangleConstraint (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,"i13":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/RectangleConstraint.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/block/LineBorder.html" title="class in org.jfree.chart.block"><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/block/RectangleConstraint.html" target="_top">Frames</a></li>
  57. <li><a href="RectangleConstraint.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><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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 RectangleConstraint" class="title">Class RectangleConstraint</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.RectangleConstraint</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <hr>
  111. <br>
  112. <pre>public class <a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.55">RectangleConstraint</a>
  113. extends java.lang.Object</pre>
  114. <div class="block">A description of a constraint for resizing a rectangle. Constraints are
  115. immutable.</div>
  116. </li>
  117. </ul>
  118. </div>
  119. <div class="summary">
  120. <ul class="blockList">
  121. <li class="blockList">
  122. <!-- =========== FIELD SUMMARY =========== -->
  123. <ul class="blockList">
  124. <li class="blockList"><a name="field.summary">
  125. <!-- -->
  126. </a>
  127. <h3>Field Summary</h3>
  128. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  129. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  130. <tr>
  131. <th class="colFirst" scope="col">Modifier and Type</th>
  132. <th class="colLast" scope="col">Field and Description</th>
  133. </tr>
  134. <tr class="altColor">
  135. <td class="colFirst"><code>static <a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  136. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#NONE">NONE</a></span></code>
  137. <div class="block">An instance representing no constraint.</div>
  138. </td>
  139. </tr>
  140. </table>
  141. </li>
  142. </ul>
  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/block/RectangleConstraint.html#RectangleConstraint-double-double-">RectangleConstraint</a></span>(double&nbsp;w,
  156. double&nbsp;h)</code>
  157. <div class="block">Creates a new "fixed width and height" instance.</div>
  158. </td>
  159. </tr>
  160. <tr class="rowColor">
  161. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#RectangleConstraint-double-org.jfree.data.Range-">RectangleConstraint</a></span>(double&nbsp;w,
  162. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;h)</code>
  163. <div class="block">Creates a new constraint with a fixed width and a range for
  164. the height.</div>
  165. </td>
  166. </tr>
  167. <tr class="altColor">
  168. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#RectangleConstraint-double-org.jfree.data.Range-org.jfree.chart.block.LengthConstraintType-double-org.jfree.data.Range-org.jfree.chart.block.LengthConstraintType-">RectangleConstraint</a></span>(double&nbsp;w,
  169. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;widthRange,
  170. <a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;widthConstraintType,
  171. double&nbsp;h,
  172. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;heightRange,
  173. <a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;heightConstraintType)</code>
  174. <div class="block">Creates a new constraint.</div>
  175. </td>
  176. </tr>
  177. <tr class="rowColor">
  178. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#RectangleConstraint-org.jfree.data.Range-double-">RectangleConstraint</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;w,
  179. double&nbsp;h)</code>
  180. <div class="block">Creates a new constraint with a range for the width and a
  181. fixed height.</div>
  182. </td>
  183. </tr>
  184. <tr class="altColor">
  185. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#RectangleConstraint-org.jfree.data.Range-org.jfree.data.Range-">RectangleConstraint</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;w,
  186. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;h)</code>
  187. <div class="block">Creates a new "range width and height" instance.</div>
  188. </td>
  189. </tr>
  190. </table>
  191. </li>
  192. </ul>
  193. <!-- ========== METHOD SUMMARY =========== -->
  194. <ul class="blockList">
  195. <li class="blockList"><a name="method.summary">
  196. <!-- -->
  197. </a>
  198. <h3>Method Summary</h3>
  199. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  200. <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>
  201. <tr>
  202. <th class="colFirst" scope="col">Modifier and Type</th>
  203. <th class="colLast" scope="col">Method and Description</th>
  204. </tr>
  205. <tr id="i0" class="altColor">
  206. <td class="colFirst"><code>org.jfree.ui.Size2D</code></td>
  207. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#calculateConstrainedSize-org.jfree.ui.Size2D-">calculateConstrainedSize</a></span>(org.jfree.ui.Size2D&nbsp;base)</code>
  208. <div class="block">Returns the new size that reflects the constraints defined by this
  209. instance.</div>
  210. </td>
  211. </tr>
  212. <tr id="i1" class="rowColor">
  213. <td class="colFirst"><code>double</code></td>
  214. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getHeight--">getHeight</a></span>()</code>
  215. <div class="block">Returns the fixed height.</div>
  216. </td>
  217. </tr>
  218. <tr id="i2" class="altColor">
  219. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a></code></td>
  220. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getHeightConstraintType--">getHeightConstraintType</a></span>()</code>
  221. <div class="block">Returns the constraint type.</div>
  222. </td>
  223. </tr>
  224. <tr id="i3" class="rowColor">
  225. <td class="colFirst"><code><a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a></code></td>
  226. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getHeightRange--">getHeightRange</a></span>()</code>
  227. <div class="block">Returns the width range.</div>
  228. </td>
  229. </tr>
  230. <tr id="i4" class="altColor">
  231. <td class="colFirst"><code>double</code></td>
  232. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getWidth--">getWidth</a></span>()</code>
  233. <div class="block">Returns the fixed width.</div>
  234. </td>
  235. </tr>
  236. <tr id="i5" class="rowColor">
  237. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a></code></td>
  238. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getWidthConstraintType--">getWidthConstraintType</a></span>()</code>
  239. <div class="block">Returns the constraint type.</div>
  240. </td>
  241. </tr>
  242. <tr id="i6" class="altColor">
  243. <td class="colFirst"><code><a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a></code></td>
  244. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#getWidthRange--">getWidthRange</a></span>()</code>
  245. <div class="block">Returns the width range.</div>
  246. </td>
  247. </tr>
  248. <tr id="i7" class="rowColor">
  249. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  250. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toFixedHeight-double-">toFixedHeight</a></span>(double&nbsp;height)</code>
  251. <div class="block">Returns a constraint that matches this one on the width attributes,
  252. but has a fixed height constraint.</div>
  253. </td>
  254. </tr>
  255. <tr id="i8" class="altColor">
  256. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  257. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toFixedWidth-double-">toFixedWidth</a></span>(double&nbsp;width)</code>
  258. <div class="block">Returns a constraint that matches this one on the height attributes,
  259. but has a fixed width constraint.</div>
  260. </td>
  261. </tr>
  262. <tr id="i9" class="rowColor">
  263. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  264. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toRangeHeight-org.jfree.data.Range-">toRangeHeight</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;range)</code>
  265. <div class="block">Returns a constraint that matches this one on the width attributes,
  266. but has a range height constraint.</div>
  267. </td>
  268. </tr>
  269. <tr id="i10" class="altColor">
  270. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  271. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toRangeWidth-org.jfree.data.Range-">toRangeWidth</a></span>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;range)</code>
  272. <div class="block">Returns a constraint that matches this one on the height attributes,
  273. but has a range width constraint.</div>
  274. </td>
  275. </tr>
  276. <tr id="i11" class="rowColor">
  277. <td class="colFirst"><code>java.lang.String</code></td>
  278. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toString--">toString</a></span>()</code>
  279. <div class="block">Returns a string representation of this instance, mostly used for
  280. debugging purposes.</div>
  281. </td>
  282. </tr>
  283. <tr id="i12" class="altColor">
  284. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  285. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toUnconstrainedHeight--">toUnconstrainedHeight</a></span>()</code>
  286. <div class="block">Returns a constraint that matches this one on the width attributes,
  287. but has no height constraint.</div>
  288. </td>
  289. </tr>
  290. <tr id="i13" class="rowColor">
  291. <td class="colFirst"><code><a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a></code></td>
  292. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/chart/block/RectangleConstraint.html#toUnconstrainedWidth--">toUnconstrainedWidth</a></span>()</code>
  293. <div class="block">Returns a constraint that matches this one on the height attributes,
  294. but has no width constraint.</div>
  295. </td>
  296. </tr>
  297. </table>
  298. <ul class="blockList">
  299. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  300. <!-- -->
  301. </a>
  302. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  303. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  304. </ul>
  305. </li>
  306. </ul>
  307. </li>
  308. </ul>
  309. </div>
  310. <div class="details">
  311. <ul class="blockList">
  312. <li class="blockList">
  313. <!-- ============ FIELD DETAIL =========== -->
  314. <ul class="blockList">
  315. <li class="blockList"><a name="field.detail">
  316. <!-- -->
  317. </a>
  318. <h3>Field Detail</h3>
  319. <a name="NONE">
  320. <!-- -->
  321. </a>
  322. <ul class="blockListLast">
  323. <li class="blockList">
  324. <h4>NONE</h4>
  325. <pre>public static final&nbsp;<a href="../../../../org/jfree/chart/block/RectangleConstraint.html" title="class in org.jfree.chart.block">RectangleConstraint</a> <a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.60">NONE</a></pre>
  326. <div class="block">An instance representing no constraint.</div>
  327. </li>
  328. </ul>
  329. </li>
  330. </ul>
  331. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  332. <ul class="blockList">
  333. <li class="blockList"><a name="constructor.detail">
  334. <!-- -->
  335. </a>
  336. <h3>Constructor Detail</h3>
  337. <a name="RectangleConstraint-double-double-">
  338. <!-- -->
  339. </a>
  340. <ul class="blockList">
  341. <li class="blockList">
  342. <h4>RectangleConstraint</h4>
  343. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.87">RectangleConstraint</a>(double&nbsp;w,
  344. double&nbsp;h)</pre>
  345. <div class="block">Creates a new "fixed width and height" instance.</div>
  346. <dl>
  347. <dt><span class="paramLabel">Parameters:</span></dt>
  348. <dd><code>w</code> - the fixed width.</dd>
  349. <dd><code>h</code> - the fixed height.</dd>
  350. </dl>
  351. </li>
  352. </ul>
  353. <a name="RectangleConstraint-org.jfree.data.Range-org.jfree.data.Range-">
  354. <!-- -->
  355. </a>
  356. <ul class="blockList">
  357. <li class="blockList">
  358. <h4>RectangleConstraint</h4>
  359. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.98">RectangleConstraint</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;w,
  360. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;h)</pre>
  361. <div class="block">Creates a new "range width and height" instance.</div>
  362. <dl>
  363. <dt><span class="paramLabel">Parameters:</span></dt>
  364. <dd><code>w</code> - the width range.</dd>
  365. <dd><code>h</code> - the height range.</dd>
  366. </dl>
  367. </li>
  368. </ul>
  369. <a name="RectangleConstraint-org.jfree.data.Range-double-">
  370. <!-- -->
  371. </a>
  372. <ul class="blockList">
  373. <li class="blockList">
  374. <h4>RectangleConstraint</h4>
  375. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.110">RectangleConstraint</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;w,
  376. double&nbsp;h)</pre>
  377. <div class="block">Creates a new constraint with a range for the width and a
  378. fixed height.</div>
  379. <dl>
  380. <dt><span class="paramLabel">Parameters:</span></dt>
  381. <dd><code>w</code> - the width range.</dd>
  382. <dd><code>h</code> - the fixed height.</dd>
  383. </dl>
  384. </li>
  385. </ul>
  386. <a name="RectangleConstraint-double-org.jfree.data.Range-">
  387. <!-- -->
  388. </a>
  389. <ul class="blockList">
  390. <li class="blockList">
  391. <h4>RectangleConstraint</h4>
  392. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.122">RectangleConstraint</a>(double&nbsp;w,
  393. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;h)</pre>
  394. <div class="block">Creates a new constraint with a fixed width and a range for
  395. the height.</div>
  396. <dl>
  397. <dt><span class="paramLabel">Parameters:</span></dt>
  398. <dd><code>w</code> - the fixed width.</dd>
  399. <dd><code>h</code> - the height range.</dd>
  400. </dl>
  401. </li>
  402. </ul>
  403. <a name="RectangleConstraint-double-org.jfree.data.Range-org.jfree.chart.block.LengthConstraintType-double-org.jfree.data.Range-org.jfree.chart.block.LengthConstraintType-">
  404. <!-- -->
  405. </a>
  406. <ul class="blockListLast">
  407. <li class="blockList">
  408. <h4>RectangleConstraint</h4>
  409. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.137">RectangleConstraint</a>(double&nbsp;w,
  410. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;widthRange,
  411. <a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;widthConstraintType,
  412. double&nbsp;h,
  413. <a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;heightRange,
  414. <a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;heightConstraintType)</pre>
  415. <div class="block">Creates a new constraint.</div>
  416. <dl>
  417. <dt><span class="paramLabel">Parameters:</span></dt>
  418. <dd><code>w</code> - the fixed or maximum width.</dd>
  419. <dd><code>widthRange</code> - the width range.</dd>
  420. <dd><code>widthConstraintType</code> - the width type.</dd>
  421. <dd><code>h</code> - the fixed or maximum height.</dd>
  422. <dd><code>heightRange</code> - the height range.</dd>
  423. <dd><code>heightConstraintType</code> - the height type.</dd>
  424. </dl>
  425. </li>
  426. </ul>
  427. </li>
  428. </ul>
  429. <!-- ============ METHOD DETAIL ========== -->
  430. <ul class="blockList">
  431. <li class="blockList"><a name="method.detail">
  432. <!-- -->
  433. </a>
  434. <h3>Method Detail</h3>
  435. <a name="getWidth--">
  436. <!-- -->
  437. </a>
  438. <ul class="blockList">
  439. <li class="blockList">
  440. <h4>getWidth</h4>
  441. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.156">getWidth</a>()</pre>
  442. <div class="block">Returns the fixed width.</div>
  443. <dl>
  444. <dt><span class="returnLabel">Returns:</span></dt>
  445. <dd>The width.</dd>
  446. </dl>
  447. </li>
  448. </ul>
  449. <a name="getWidthRange--">
  450. <!-- -->
  451. </a>
  452. <ul class="blockList">
  453. <li class="blockList">
  454. <h4>getWidthRange</h4>
  455. <pre>public&nbsp;<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.165">getWidthRange</a>()</pre>
  456. <div class="block">Returns the width range.</div>
  457. <dl>
  458. <dt><span class="returnLabel">Returns:</span></dt>
  459. <dd>The range (possibly <code>null</code>).</dd>
  460. </dl>
  461. </li>
  462. </ul>
  463. <a name="getWidthConstraintType--">
  464. <!-- -->
  465. </a>
  466. <ul class="blockList">
  467. <li class="blockList">
  468. <h4>getWidthConstraintType</h4>
  469. <pre>public&nbsp;<a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.174">getWidthConstraintType</a>()</pre>
  470. <div class="block">Returns the constraint type.</div>
  471. <dl>
  472. <dt><span class="returnLabel">Returns:</span></dt>
  473. <dd>The constraint type (never <code>null</code>).</dd>
  474. </dl>
  475. </li>
  476. </ul>
  477. <a name="getHeight--">
  478. <!-- -->
  479. </a>
  480. <ul class="blockList">
  481. <li class="blockList">
  482. <h4>getHeight</h4>
  483. <pre>public&nbsp;double&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.183">getHeight</a>()</pre>
  484. <div class="block">Returns the fixed height.</div>
  485. <dl>
  486. <dt><span class="returnLabel">Returns:</span></dt>
  487. <dd>The height.</dd>
  488. </dl>
  489. </li>
  490. </ul>
  491. <a name="getHeightRange--">
  492. <!-- -->
  493. </a>
  494. <ul class="blockList">
  495. <li class="blockList">
  496. <h4>getHeightRange</h4>
  497. <pre>public&nbsp;<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.192">getHeightRange</a>()</pre>
  498. <div class="block">Returns the width range.</div>
  499. <dl>
  500. <dt><span class="returnLabel">Returns:</span></dt>
  501. <dd>The range (possibly <code>null</code>).</dd>
  502. </dl>
  503. </li>
  504. </ul>
  505. <a name="getHeightConstraintType--">
  506. <!-- -->
  507. </a>
  508. <ul class="blockList">
  509. <li class="blockList">
  510. <h4>getHeightConstraintType</h4>
  511. <pre>public&nbsp;<a href="../../../../org/jfree/chart/block/LengthConstraintType.html" title="class in org.jfree.chart.block">LengthConstraintType</a>&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.201">getHeightConstraintType</a>()</pre>
  512. <div class="block">Returns the constraint type.</div>
  513. <dl>
  514. <dt><span class="returnLabel">Returns:</span></dt>
  515. <dd>The constraint type (never <code>null</code>).</dd>
  516. </dl>
  517. </li>
  518. </ul>
  519. <a name="toUnconstrainedWidth--">
  520. <!-- -->
  521. </a>
  522. <ul class="blockList">
  523. <li class="blockList">
  524. <h4>toUnconstrainedWidth</h4>
  525. <pre>public&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/RectangleConstraint.html#line.211">toUnconstrainedWidth</a>()</pre>
  526. <div class="block">Returns a constraint that matches this one on the height attributes,
  527. but has no width constraint.</div>
  528. <dl>
  529. <dt><span class="returnLabel">Returns:</span></dt>
  530. <dd>A new constraint.</dd>
  531. </dl>
  532. </li>
  533. </ul>
  534. <a name="toUnconstrainedHeight--">
  535. <!-- -->
  536. </a>
  537. <ul class="blockList">
  538. <li class="blockList">
  539. <h4>toUnconstrainedHeight</h4>
  540. <pre>public&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/RectangleConstraint.html#line.228">toUnconstrainedHeight</a>()</pre>
  541. <div class="block">Returns a constraint that matches this one on the width attributes,
  542. but has no height constraint.</div>
  543. <dl>
  544. <dt><span class="returnLabel">Returns:</span></dt>
  545. <dd>A new constraint.</dd>
  546. </dl>
  547. </li>
  548. </ul>
  549. <a name="toFixedWidth-double-">
  550. <!-- -->
  551. </a>
  552. <ul class="blockList">
  553. <li class="blockList">
  554. <h4>toFixedWidth</h4>
  555. <pre>public&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/RectangleConstraint.html#line.247">toFixedWidth</a>(double&nbsp;width)</pre>
  556. <div class="block">Returns a constraint that matches this one on the height attributes,
  557. but has a fixed width constraint.</div>
  558. <dl>
  559. <dt><span class="paramLabel">Parameters:</span></dt>
  560. <dd><code>width</code> - the fixed width.</dd>
  561. <dt><span class="returnLabel">Returns:</span></dt>
  562. <dd>A new constraint.</dd>
  563. </dl>
  564. </li>
  565. </ul>
  566. <a name="toFixedHeight-double-">
  567. <!-- -->
  568. </a>
  569. <ul class="blockList">
  570. <li class="blockList">
  571. <h4>toFixedHeight</h4>
  572. <pre>public&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/RectangleConstraint.html#line.261">toFixedHeight</a>(double&nbsp;height)</pre>
  573. <div class="block">Returns a constraint that matches this one on the width attributes,
  574. but has a fixed height constraint.</div>
  575. <dl>
  576. <dt><span class="paramLabel">Parameters:</span></dt>
  577. <dd><code>height</code> - the fixed height.</dd>
  578. <dt><span class="returnLabel">Returns:</span></dt>
  579. <dd>A new constraint.</dd>
  580. </dl>
  581. </li>
  582. </ul>
  583. <a name="toRangeWidth-org.jfree.data.Range-">
  584. <!-- -->
  585. </a>
  586. <ul class="blockList">
  587. <li class="blockList">
  588. <h4>toRangeWidth</h4>
  589. <pre>public&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/RectangleConstraint.html#line.275">toRangeWidth</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;range)</pre>
  590. <div class="block">Returns a constraint that matches this one on the height attributes,
  591. but has a range width constraint.</div>
  592. <dl>
  593. <dt><span class="paramLabel">Parameters:</span></dt>
  594. <dd><code>range</code> - the width range (<code>null</code> not permitted).</dd>
  595. <dt><span class="returnLabel">Returns:</span></dt>
  596. <dd>A new constraint.</dd>
  597. </dl>
  598. </li>
  599. </ul>
  600. <a name="toRangeHeight-org.jfree.data.Range-">
  601. <!-- -->
  602. </a>
  603. <ul class="blockList">
  604. <li class="blockList">
  605. <h4>toRangeHeight</h4>
  606. <pre>public&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/RectangleConstraint.html#line.290">toRangeHeight</a>(<a href="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</a>&nbsp;range)</pre>
  607. <div class="block">Returns a constraint that matches this one on the width attributes,
  608. but has a range height constraint.</div>
  609. <dl>
  610. <dt><span class="paramLabel">Parameters:</span></dt>
  611. <dd><code>range</code> - the height range (<code>null</code> not permitted).</dd>
  612. <dt><span class="returnLabel">Returns:</span></dt>
  613. <dd>A new constraint.</dd>
  614. </dl>
  615. </li>
  616. </ul>
  617. <a name="toString--">
  618. <!-- -->
  619. </a>
  620. <ul class="blockList">
  621. <li class="blockList">
  622. <h4>toString</h4>
  623. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.304">toString</a>()</pre>
  624. <div class="block">Returns a string representation of this instance, mostly used for
  625. debugging purposes.</div>
  626. <dl>
  627. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  628. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  629. <dt><span class="returnLabel">Returns:</span></dt>
  630. <dd>A string.</dd>
  631. </dl>
  632. </li>
  633. </ul>
  634. <a name="calculateConstrainedSize-org.jfree.ui.Size2D-">
  635. <!-- -->
  636. </a>
  637. <ul class="blockListLast">
  638. <li class="blockList">
  639. <h4>calculateConstrainedSize</h4>
  640. <pre>public&nbsp;org.jfree.ui.Size2D&nbsp;<a href="../../../../src-html/org/jfree/chart/block/RectangleConstraint.html#line.318">calculateConstrainedSize</a>(org.jfree.ui.Size2D&nbsp;base)</pre>
  641. <div class="block">Returns the new size that reflects the constraints defined by this
  642. instance.</div>
  643. <dl>
  644. <dt><span class="paramLabel">Parameters:</span></dt>
  645. <dd><code>base</code> - the base size.</dd>
  646. <dt><span class="returnLabel">Returns:</span></dt>
  647. <dd>The constrained size.</dd>
  648. </dl>
  649. </li>
  650. </ul>
  651. </li>
  652. </ul>
  653. </li>
  654. </ul>
  655. </div>
  656. </div>
  657. <!-- ========= END OF CLASS DATA ========= -->
  658. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  659. <div class="bottomNav"><a name="navbar.bottom">
  660. <!-- -->
  661. </a>
  662. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  663. <a name="navbar.bottom.firstrow">
  664. <!-- -->
  665. </a>
  666. <ul class="navList" title="Navigation">
  667. <li><a href="../../../../overview-summary.html">Overview</a></li>
  668. <li><a href="package-summary.html">Package</a></li>
  669. <li class="navBarCell1Rev">Class</li>
  670. <li><a href="class-use/RectangleConstraint.html">Use</a></li>
  671. <li><a href="package-tree.html">Tree</a></li>
  672. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  673. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  674. <li><a href="../../../../help-doc.html">Help</a></li>
  675. </ul>
  676. </div>
  677. <div class="subNav">
  678. <ul class="navList">
  679. <li><a href="../../../../org/jfree/chart/block/LineBorder.html" title="class in org.jfree.chart.block"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  680. <li>Next&nbsp;Class</li>
  681. </ul>
  682. <ul class="navList">
  683. <li><a href="../../../../index.html?org/jfree/chart/block/RectangleConstraint.html" target="_top">Frames</a></li>
  684. <li><a href="RectangleConstraint.html" target="_top">No&nbsp;Frames</a></li>
  685. </ul>
  686. <ul class="navList" id="allclasses_navbar_bottom">
  687. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  688. </ul>
  689. <div>
  690. <script type="text/javascript"><!--
  691. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  692. if(window==top) {
  693. allClassesLink.style.display = "block";
  694. }
  695. else {
  696. allClassesLink.style.display = "none";
  697. }
  698. //-->
  699. </script>
  700. </div>
  701. <div>
  702. <ul class="subNavList">
  703. <li>Summary:&nbsp;</li>
  704. <li>Nested&nbsp;|&nbsp;</li>
  705. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  706. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  707. <li><a href="#method.summary">Method</a></li>
  708. </ul>
  709. <ul class="subNavList">
  710. <li>Detail:&nbsp;</li>
  711. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  712. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  713. <li><a href="#method.detail">Method</a></li>
  714. </ul>
  715. </div>
  716. <a name="skip.navbar.bottom">
  717. <!-- -->
  718. </a></div>
  719. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  720. </body>
  721. </html>