PageRenderTime 73ms CodeModel.GetById 45ms app.highlight 19ms RepoModel.GetById 1ms app.codeStats 0ms

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