PageRenderTime 94ms CodeModel.GetById 18ms RepoModel.GetById 8ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/gui/VariableGridLayout.html

#
HTML | 710 lines | 622 code | 74 blank | 14 comment | 0 complexity | 0e2ea6cd06c3b6f1e36bc7a4de0de2ec MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:00 GMT-08:00 2008 -->
  6. <TITLE>
  7. VariableGridLayout (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.gui.VariableGridLayout class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/VariableGridLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/ToolBarManager.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;NEXT CLASS</FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/VariableGridLayout.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="VariableGridLayout.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.gui</FONT>
  66. <BR>
  67. Class VariableGridLayout</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.gui.VariableGridLayout</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD>java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable</DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public class <B>VariableGridLayout</B><DT>extends java.lang.Object<DT>implements java.awt.LayoutManager2, java.io.Serializable</DL>
  78. </PRE>
  79. <P>
  80. The <code>VariableGridLayout</code> class is a layout manager
  81. that lays out a container's components in a rectangular grid
  82. with variable cell sizes.<p>
  83. The container is divided into rectangles, and one component is placed
  84. in each rectangle. Each row is as large as the largest component in
  85. that row, and each column is as wide as the widest component in
  86. that column.<p>
  87. This behavior is basically the same as in
  88. <code>java.awt.GridLayout</code>, but with different row heights and
  89. column widths for each row/column.<p>
  90. For example, the following is an applet that lays out six buttons
  91. into three rows and two columns:<p>
  92. <blockquote><pre>
  93. import java.awt.*;
  94. import java.applet.Applet;
  95. public class ButtonGrid extends Applet {
  96. public void init() {
  97. setLayout(new VariableGridLayout(VariableGridLayout.FIXED_NUM_COLUMNS, 2));
  98. add(new Button("1"));
  99. add(new Button("2"));
  100. add(new Button("3"));
  101. add(new Button("4"));
  102. add(new Button("5"));
  103. add(new Button("6"));
  104. }
  105. }
  106. </pre></blockquote><p>
  107. <b>Programmer's remark:</b> VariableGridLayout could be faster, if it would
  108. reside in the package java.awt, because then it could access some
  109. package private fields of <code>Container</code> or
  110. <code>Component</code>. Instead, it has to call
  111. <code>Component.getSize()</code>,
  112. which allocates memory on the heap.<p>
  113. <b>Todo:</b>
  114. <ul>
  115. <li>Ability to span components over more than one cell horizontally and vertically.
  116. </ul>
  117. <P>
  118. <P>
  119. <DL>
  120. <DT><B>See Also:</B><DD><CODE>GridLayout</CODE>,
  121. <A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.gui.VariableGridLayout">Serialized Form</A></DL>
  122. <HR>
  123. <P>
  124. <!-- =========== FIELD SUMMARY =========== -->
  125. <A NAME="field_summary"><!-- --></A>
  126. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  127. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  128. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  129. <B>Field Summary</B></FONT></TH>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  133. <CODE>static&nbsp;int</CODE></FONT></TD>
  134. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#FIXED_NUM_COLUMNS">FIXED_NUM_COLUMNS</A></B></CODE>
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  140. <CODE>static&nbsp;int</CODE></FONT></TD>
  141. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#FIXED_NUM_ROWS">FIXED_NUM_ROWS</A></B></CODE>
  142. <BR>
  143. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  144. </TR>
  145. </TABLE>
  146. &nbsp;
  147. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  148. <A NAME="constructor_summary"><!-- --></A>
  149. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  150. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  151. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  152. <B>Constructor Summary</B></FONT></TH>
  153. </TR>
  154. <TR BGCOLOR="white" CLASS="TableRowColor">
  155. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#VariableGridLayout()">VariableGridLayout</A></B>()</CODE>
  156. <BR>
  157. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a variable grid layout manager with mode FIXED_NUM_ROWS,
  158. number of rows == 1, zero horizontal and vertical gap, and zero distance to borders.</TD>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#VariableGridLayout(int, int)">VariableGridLayout</A></B>(int&nbsp;mode,
  162. int&nbsp;size)</CODE>
  163. <BR>
  164. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a variable grid layout manager with the specified mode
  165. and size, zero horizontal and vertical gap, and zero distance to borders.</TD>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#VariableGridLayout(int, int, int, int)">VariableGridLayout</A></B>(int&nbsp;mode,
  169. int&nbsp;size,
  170. int&nbsp;hgap,
  171. int&nbsp;vgap)</CODE>
  172. <BR>
  173. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a variable grid layout manager with the specified mode,
  174. size, horizontal and vertical gap, and zero distance to borders.</TD>
  175. </TR>
  176. <TR BGCOLOR="white" CLASS="TableRowColor">
  177. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#VariableGridLayout(int, int, int, int, boolean)">VariableGridLayout</A></B>(int&nbsp;mode,
  178. int&nbsp;size,
  179. int&nbsp;hgap,
  180. int&nbsp;vgap,
  181. boolean&nbsp;takeSizesIntoAccount)</CODE>
  182. <BR>
  183. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a variable grid layout manager with the specified mode,
  184. size, horizontal and vertical gap, eventually taking minimum and maximum
  185. sizes into account when distributing free space, depending on takeSizesIntoAccount
  186. and zero distance to borders.</TD>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#VariableGridLayout(int, int, int, int, boolean, java.awt.Insets)">VariableGridLayout</A></B>(int&nbsp;mode,
  190. int&nbsp;size,
  191. int&nbsp;hgap,
  192. int&nbsp;vgap,
  193. boolean&nbsp;takeSizesIntoAccount,
  194. java.awt.Insets&nbsp;distanceToBorders)</CODE>
  195. <BR>
  196. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a variable grid layout manager with the specified mode,
  197. size, horizontal and vertical gap, eventually taking minimum and maximum
  198. sizes into account when distributing free space, depending on takeSizesIntoAccount
  199. and the specified distance to the borders.</TD>
  200. </TR>
  201. </TABLE>
  202. &nbsp;
  203. <!-- ========== METHOD SUMMARY =========== -->
  204. <A NAME="method_summary"><!-- --></A>
  205. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  206. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  207. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  208. <B>Method Summary</B></FONT></TH>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  212. <CODE>&nbsp;void</CODE></FONT></TD>
  213. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(java.awt.Component&nbsp;component,
  214. java.lang.Object&nbsp;constraints)</CODE>
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Not used in this class.</TD>
  217. </TR>
  218. <TR BGCOLOR="white" CLASS="TableRowColor">
  219. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  220. <CODE>&nbsp;void</CODE></FONT></TD>
  221. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(java.lang.String&nbsp;name,
  222. java.awt.Component&nbsp;component)</CODE>
  223. <BR>
  224. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Not used in this class.</TD>
  225. </TR>
  226. <TR BGCOLOR="white" CLASS="TableRowColor">
  227. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  228. <CODE>&nbsp;float</CODE></FONT></TD>
  229. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#getLayoutAlignmentX(java.awt.Container)">getLayoutAlignmentX</A></B>(java.awt.Container&nbsp;container)</CODE>
  230. <BR>
  231. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Always returns 0.5.</TD>
  232. </TR>
  233. <TR BGCOLOR="white" CLASS="TableRowColor">
  234. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  235. <CODE>&nbsp;float</CODE></FONT></TD>
  236. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#getLayoutAlignmentY(java.awt.Container)">getLayoutAlignmentY</A></B>(java.awt.Container&nbsp;container)</CODE>
  237. <BR>
  238. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Always returns 0.5.</TD>
  239. </TR>
  240. <TR BGCOLOR="white" CLASS="TableRowColor">
  241. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  242. <CODE>&nbsp;void</CODE></FONT></TD>
  243. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#invalidateLayout(java.awt.Container)">invalidateLayout</A></B>(java.awt.Container&nbsp;container)</CODE>
  244. <BR>
  245. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  246. </TR>
  247. <TR BGCOLOR="white" CLASS="TableRowColor">
  248. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  249. <CODE>&nbsp;void</CODE></FONT></TD>
  250. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#layoutContainer(java.awt.Container)">layoutContainer</A></B>(java.awt.Container&nbsp;parent)</CODE>
  251. <BR>
  252. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  253. </TR>
  254. <TR BGCOLOR="white" CLASS="TableRowColor">
  255. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  256. <CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
  257. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#maximumLayoutSize(java.awt.Container)">maximumLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
  258. <BR>
  259. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  260. </TR>
  261. <TR BGCOLOR="white" CLASS="TableRowColor">
  262. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  263. <CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
  264. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#minimumLayoutSize(java.awt.Container)">minimumLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
  265. <BR>
  266. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  267. </TR>
  268. <TR BGCOLOR="white" CLASS="TableRowColor">
  269. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  270. <CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
  271. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#preferredLayoutSize(java.awt.Container)">preferredLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
  272. <BR>
  273. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  274. </TR>
  275. <TR BGCOLOR="white" CLASS="TableRowColor">
  276. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  277. <CODE>&nbsp;void</CODE></FONT></TD>
  278. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(java.awt.Component&nbsp;component)</CODE>
  279. <BR>
  280. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Not used in this class.</TD>
  281. </TR>
  282. <TR BGCOLOR="white" CLASS="TableRowColor">
  283. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  284. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  285. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/VariableGridLayout.html#toString()">toString</A></B>()</CODE>
  286. <BR>
  287. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string representation of this variable grid layout's values.</TD>
  288. </TR>
  289. </TABLE>
  290. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  291. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  292. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  293. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  294. </TR>
  295. <TR BGCOLOR="white" CLASS="TableRowColor">
  296. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  297. </TR>
  298. </TABLE>
  299. &nbsp;
  300. <P>
  301. <!-- ============ FIELD DETAIL =========== -->
  302. <A NAME="field_detail"><!-- --></A>
  303. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  304. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  305. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  306. <B>Field Detail</B></FONT></TH>
  307. </TR>
  308. </TABLE>
  309. <A NAME="FIXED_NUM_ROWS"><!-- --></A><H3>
  310. FIXED_NUM_ROWS</H3>
  311. <PRE>
  312. public static final int <B>FIXED_NUM_ROWS</B></PRE>
  313. <DL>
  314. <DL>
  315. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.gui.VariableGridLayout.FIXED_NUM_ROWS">Constant Field Values</A></DL>
  316. </DL>
  317. <HR>
  318. <A NAME="FIXED_NUM_COLUMNS"><!-- --></A><H3>
  319. FIXED_NUM_COLUMNS</H3>
  320. <PRE>
  321. public static final int <B>FIXED_NUM_COLUMNS</B></PRE>
  322. <DL>
  323. <DL>
  324. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.gui.VariableGridLayout.FIXED_NUM_COLUMNS">Constant Field Values</A></DL>
  325. </DL>
  326. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  327. <A NAME="constructor_detail"><!-- --></A>
  328. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  329. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  330. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  331. <B>Constructor Detail</B></FONT></TH>
  332. </TR>
  333. </TABLE>
  334. <A NAME="VariableGridLayout(int, int, int, int, boolean, java.awt.Insets)"><!-- --></A><H3>
  335. VariableGridLayout</H3>
  336. <PRE>
  337. public <B>VariableGridLayout</B>(int&nbsp;mode,
  338. int&nbsp;size,
  339. int&nbsp;hgap,
  340. int&nbsp;vgap,
  341. boolean&nbsp;takeSizesIntoAccount,
  342. java.awt.Insets&nbsp;distanceToBorders)</PRE>
  343. <DL>
  344. <DD>Creates a variable grid layout manager with the specified mode,
  345. size, horizontal and vertical gap, eventually taking minimum and maximum
  346. sizes into account when distributing free space, depending on takeSizesIntoAccount
  347. and the specified distance to the borders.
  348. <P>
  349. <DL>
  350. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS<DD><CODE>size</CODE> - The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS (>0)<DD><CODE>hgap</CODE> - The horizontal space between cells (>=0)<DD><CODE>vgap</CODE> - The vertical space between cells (>=0)<DD><CODE>takeSizesIntoAccount</CODE> - Whether to take minimum and maximum sizes into account when distributing free space<DD><CODE>distanceToBorders</CODE> - The distances to the borders
  351. <DT><B>Throws:</B>
  352. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0</DL>
  353. </DL>
  354. <HR>
  355. <A NAME="VariableGridLayout(int, int, int, int, boolean)"><!-- --></A><H3>
  356. VariableGridLayout</H3>
  357. <PRE>
  358. public <B>VariableGridLayout</B>(int&nbsp;mode,
  359. int&nbsp;size,
  360. int&nbsp;hgap,
  361. int&nbsp;vgap,
  362. boolean&nbsp;takeSizesIntoAccount)</PRE>
  363. <DL>
  364. <DD>Creates a variable grid layout manager with the specified mode,
  365. size, horizontal and vertical gap, eventually taking minimum and maximum
  366. sizes into account when distributing free space, depending on takeSizesIntoAccount
  367. and zero distance to borders.
  368. <P>
  369. <DL>
  370. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS<DD><CODE>size</CODE> - The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS (>0)<DD><CODE>hgap</CODE> - The horizontal space between cells (>=0)<DD><CODE>vgap</CODE> - The vertical space between cells (>=0)<DD><CODE>takeSizesIntoAccount</CODE> - Whether to take minimum and maximum sizes into account when distributing free space
  371. <DT><B>Throws:</B>
  372. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0</DL>
  373. </DL>
  374. <HR>
  375. <A NAME="VariableGridLayout(int, int, int, int)"><!-- --></A><H3>
  376. VariableGridLayout</H3>
  377. <PRE>
  378. public <B>VariableGridLayout</B>(int&nbsp;mode,
  379. int&nbsp;size,
  380. int&nbsp;hgap,
  381. int&nbsp;vgap)</PRE>
  382. <DL>
  383. <DD>Creates a variable grid layout manager with the specified mode,
  384. size, horizontal and vertical gap, and zero distance to borders.
  385. The minimum and maximum Component sizes are not taken into account
  386. when distributing free space.
  387. <P>
  388. <DL>
  389. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS<DD><CODE>size</CODE> - The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS<DD><CODE>hgap</CODE> - The horizontal space between cells<DD><CODE>vgap</CODE> - The vertical space between cells
  390. <DT><B>Throws:</B>
  391. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0 or hgap or vgap is < 0</DL>
  392. </DL>
  393. <HR>
  394. <A NAME="VariableGridLayout(int, int)"><!-- --></A><H3>
  395. VariableGridLayout</H3>
  396. <PRE>
  397. public <B>VariableGridLayout</B>(int&nbsp;mode,
  398. int&nbsp;size)</PRE>
  399. <DL>
  400. <DD>Creates a variable grid layout manager with the specified mode
  401. and size, zero horizontal and vertical gap, and zero distance to borders.
  402. Does not take minimum and maximum Component sizes into account when distributing
  403. free space.
  404. <P>
  405. <DL>
  406. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The mode in which to operate. Either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS<DD><CODE>size</CODE> - The amount of rows for mode FIXED_NUM_ROWS or the amount of columns for mode FIXED_NUM_COLUMNS
  407. <DT><B>Throws:</B>
  408. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if mode is not either FIXED_NUM_ROWS or FIXED_NUM_COLUMNS or size is <= 0</DL>
  409. </DL>
  410. <HR>
  411. <A NAME="VariableGridLayout()"><!-- --></A><H3>
  412. VariableGridLayout</H3>
  413. <PRE>
  414. public <B>VariableGridLayout</B>()</PRE>
  415. <DL>
  416. <DD>Creates a variable grid layout manager with mode FIXED_NUM_ROWS,
  417. number of rows == 1, zero horizontal and vertical gap, and zero distance to borders.
  418. Does not take minimum and maximum Component sizes into account when
  419. distributing free space.
  420. <P>
  421. </DL>
  422. <!-- ============ METHOD DETAIL ========== -->
  423. <A NAME="method_detail"><!-- --></A>
  424. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  425. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  426. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  427. <B>Method Detail</B></FONT></TH>
  428. </TR>
  429. </TABLE>
  430. <A NAME="addLayoutComponent(java.lang.String, java.awt.Component)"><!-- --></A><H3>
  431. addLayoutComponent</H3>
  432. <PRE>
  433. public void <B>addLayoutComponent</B>(java.lang.String&nbsp;name,
  434. java.awt.Component&nbsp;component)</PRE>
  435. <DL>
  436. <DD>Not used in this class.
  437. <P>
  438. <DD><DL>
  439. <DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
  440. </DD>
  441. <DD><DL>
  442. </DL>
  443. </DD>
  444. </DL>
  445. <HR>
  446. <A NAME="addLayoutComponent(java.awt.Component, java.lang.Object)"><!-- --></A><H3>
  447. addLayoutComponent</H3>
  448. <PRE>
  449. public void <B>addLayoutComponent</B>(java.awt.Component&nbsp;component,
  450. java.lang.Object&nbsp;constraints)</PRE>
  451. <DL>
  452. <DD>Not used in this class.
  453. <P>
  454. <DD><DL>
  455. <DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
  456. </DD>
  457. <DD><DL>
  458. </DL>
  459. </DD>
  460. </DL>
  461. <HR>
  462. <A NAME="removeLayoutComponent(java.awt.Component)"><!-- --></A><H3>
  463. removeLayoutComponent</H3>
  464. <PRE>
  465. public void <B>removeLayoutComponent</B>(java.awt.Component&nbsp;component)</PRE>
  466. <DL>
  467. <DD>Not used in this class.
  468. <P>
  469. <DD><DL>
  470. <DT><B>Specified by:</B><DD><CODE>removeLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
  471. </DD>
  472. <DD><DL>
  473. </DL>
  474. </DD>
  475. </DL>
  476. <HR>
  477. <A NAME="getLayoutAlignmentX(java.awt.Container)"><!-- --></A><H3>
  478. getLayoutAlignmentX</H3>
  479. <PRE>
  480. public float <B>getLayoutAlignmentX</B>(java.awt.Container&nbsp;container)</PRE>
  481. <DL>
  482. <DD>Always returns 0.5.
  483. <P>
  484. <DD><DL>
  485. <DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentX</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
  486. </DD>
  487. <DD><DL>
  488. </DL>
  489. </DD>
  490. </DL>
  491. <HR>
  492. <A NAME="getLayoutAlignmentY(java.awt.Container)"><!-- --></A><H3>
  493. getLayoutAlignmentY</H3>
  494. <PRE>
  495. public float <B>getLayoutAlignmentY</B>(java.awt.Container&nbsp;container)</PRE>
  496. <DL>
  497. <DD>Always returns 0.5.
  498. <P>
  499. <DD><DL>
  500. <DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentY</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
  501. </DD>
  502. <DD><DL>
  503. </DL>
  504. </DD>
  505. </DL>
  506. <HR>
  507. <A NAME="preferredLayoutSize(java.awt.Container)"><!-- --></A><H3>
  508. preferredLayoutSize</H3>
  509. <PRE>
  510. public java.awt.Dimension <B>preferredLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
  511. <DL>
  512. <DD><DL>
  513. <DT><B>Specified by:</B><DD><CODE>preferredLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
  514. </DD>
  515. <DD><DL>
  516. </DL>
  517. </DD>
  518. </DL>
  519. <HR>
  520. <A NAME="minimumLayoutSize(java.awt.Container)"><!-- --></A><H3>
  521. minimumLayoutSize</H3>
  522. <PRE>
  523. public java.awt.Dimension <B>minimumLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
  524. <DL>
  525. <DD><DL>
  526. <DT><B>Specified by:</B><DD><CODE>minimumLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
  527. </DD>
  528. <DD><DL>
  529. </DL>
  530. </DD>
  531. </DL>
  532. <HR>
  533. <A NAME="maximumLayoutSize(java.awt.Container)"><!-- --></A><H3>
  534. maximumLayoutSize</H3>
  535. <PRE>
  536. public java.awt.Dimension <B>maximumLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
  537. <DL>
  538. <DD><DL>
  539. <DT><B>Specified by:</B><DD><CODE>maximumLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
  540. </DD>
  541. <DD><DL>
  542. </DL>
  543. </DD>
  544. </DL>
  545. <HR>
  546. <A NAME="layoutContainer(java.awt.Container)"><!-- --></A><H3>
  547. layoutContainer</H3>
  548. <PRE>
  549. public void <B>layoutContainer</B>(java.awt.Container&nbsp;parent)</PRE>
  550. <DL>
  551. <DD><DL>
  552. <DT><B>Specified by:</B><DD><CODE>layoutContainer</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
  553. </DD>
  554. <DD><DL>
  555. </DL>
  556. </DD>
  557. </DL>
  558. <HR>
  559. <A NAME="invalidateLayout(java.awt.Container)"><!-- --></A><H3>
  560. invalidateLayout</H3>
  561. <PRE>
  562. public void <B>invalidateLayout</B>(java.awt.Container&nbsp;container)</PRE>
  563. <DL>
  564. <DD><DL>
  565. <DT><B>Specified by:</B><DD><CODE>invalidateLayout</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
  566. </DD>
  567. <DD><DL>
  568. </DL>
  569. </DD>
  570. </DL>
  571. <HR>
  572. <A NAME="toString()"><!-- --></A><H3>
  573. toString</H3>
  574. <PRE>
  575. public java.lang.String <B>toString</B>()</PRE>
  576. <DL>
  577. <DD>Returns the string representation of this variable grid layout's values.
  578. <P>
  579. <DD><DL>
  580. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  581. </DD>
  582. <DD><DL>
  583. <DT><B>Returns:</B><DD>a string representation of this variable grid layout.</DL>
  584. </DD>
  585. </DL>
  586. <!-- ========= END OF CLASS DATA ========= -->
  587. <HR>
  588. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  589. <A NAME="navbar_bottom"><!-- --></A>
  590. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  591. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  592. <TR>
  593. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  594. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  595. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  596. <TR ALIGN="center" VALIGN="top">
  597. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  598. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  599. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  600. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/VariableGridLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  601. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  602. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  603. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  604. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  605. </TR>
  606. </TABLE>
  607. </TD>
  608. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  609. </EM>
  610. </TD>
  611. </TR>
  612. <TR>
  613. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  614. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/ToolBarManager.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
  615. &nbsp;NEXT CLASS</FONT></TD>
  616. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  617. <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/VariableGridLayout.html" target="_top"><B>FRAMES</B></A> &nbsp;
  618. &nbsp;<A HREF="VariableGridLayout.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  619. &nbsp;
  620. <NOSCRIPT>
  621. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  622. </NOSCRIPT>
  623. </FONT></TD>
  624. </TR>
  625. <TR>
  626. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  627. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  628. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  629. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  630. </TR>
  631. </TABLE>
  632. <A NAME="skip-navbar_bottom"></A>
  633. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  634. <HR>
  635. </BODY>
  636. </HTML>