PageRenderTime 155ms CodeModel.GetById 120ms app.highlight 24ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
HTML | 658 lines | 589 code | 57 blank | 12 comment | 0 complexity | 37699c6eb7838dd3197e732f9c03e966 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:13:55 GMT-08:00 2008 -->
  6<TITLE>
  7ExtendedGridLayout (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.gui.ExtendedGridLayout 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/ExtendedGridLayout.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/ErrorListDialog.ErrorEntry.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/ExtendedGridLayout.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="ExtendedGridLayout.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;FIELD&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;FIELD&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 ExtendedGridLayout</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.gui.ExtendedGridLayout</B>
 83</PRE>
 84<DL>
 85<DT><B>All Implemented Interfaces:</B> <DD>java.awt.LayoutManager, java.awt.LayoutManager2</DD>
 86</DL>
 87<HR>
 88<DL>
 89<DT><PRE>public class <B>ExtendedGridLayout</B><DT>extends java.lang.Object<DT>implements java.awt.LayoutManager2</DL>
 90</PRE>
 91
 92<P>
 93A layout manager that places components in a rectangular grid
 94 with variable cell sizes that supports colspans and rowspans.
 95 <p>
 96 The container is divided into rectangles, and each component is placed
 97 in a rectangular space defined by its colspan and rowspan.
 98 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 <p>
102 This behavior is similar to 
103 <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridLayout.html"><code>java.awt.GridLayout</code></a>
104 but it supports different row heights and
105 column widths for each row/column. </p>
106 <p>
107 For example, the following is a Dialog that lays out ten buttons
108 exactly the same as in the example of the JavaDoc of
109 <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridBagLayout.html"><code>java.awt.GridBagLayout</code></a>
110 with the difference of vertical and horizontal gaps that can be configured:
111 <hr>
112 <blockquote><pre><font color="#000000">
113 <font color="#000000">   1:</font><font color="#009966"><strong>import</strong></font> java.awt.Button;
114 <font color="#000000">   2:</font><font color="#009966"><strong>import</strong></font> java.awt.Dimension;
115 <font color="#000000">   3:</font>
116 <font color="#000000">   4:</font><font color="#009966"><strong>import</strong></font> javax.swing.JDialog;
117 <font color="#990066">   5:</font>
118 <font color="#000000">   6:</font><font color="#009966"><strong>import</strong></font> org.gjt.sp.jedit.gui.ExtendedGridLayout;
119 <font color="#000000">   7:</font><font color="#009966"><strong>import</strong></font> org.gjt.sp.jedit.gui.ExtendedGridLayoutConstraints;
120 <font color="#000000">   8:</font>
121 <font color="#000000">   9:</font><font color="#009966"><strong>import</strong></font> <font color="#006699"><strong>static</strong></font> org.gjt.sp.jedit.gui.ExtendedGridLayoutConstraints.REMAINDER;
122 <font color="#990066">  10:</font>
123 <font color="#000000">  11:</font><font color="#006699"><strong>public</strong></font> <font color="#0099ff"><strong>class</strong></font> ExampleDialog <font color="#006699"><strong>extends</strong></font> JDialog <font color="#000000"><strong>{</strong></font>
124 <font color="#000000">  12:</font>    <font color="#006699"><strong>public</strong></font> <font color="#9966ff">ExampleDialog</font>() <font color="#000000"><strong>{</strong></font>
125 <font color="#000000">  13:</font>        <font color="#cc00cc">super</font>(<font color="#cc00cc">null</font>,<font color="#ff00cc">&quot;</font><font color="#ff00cc">Example</font><font color="#ff00cc"> </font><font color="#ff00cc">Dialog</font><font color="#ff00cc">&quot;</font>,<font color="#cc00cc">true</font>);
126 <font color="#000000">  14:</font>        <font color="#9966ff">setLayout</font>(<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayout</font>(<font color="#ff0000">5</font>,<font color="#ff0000">5</font>,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">Insets</font>(<font color="#ff0000">5</font>,<font color="#ff0000">5</font>,<font color="#ff0000">5</font>,<font color="#ff0000">5</font>)));
127 <font color="#990066">  15:</font>        
128 <font color="#000000">  16:</font>        <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button1</font><font color="#ff00cc">&quot;</font>));
129 <font color="#000000">  17:</font>        <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button2</font><font color="#ff00cc">&quot;</font>));
130 <font color="#000000">  18:</font>        <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button3</font><font color="#ff00cc">&quot;</font>));
131 <font color="#000000">  19:</font>        <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button4</font><font color="#ff00cc">&quot;</font>));
132 <font color="#990066">  20:</font>        Button button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button5</font><font color="#ff00cc">&quot;</font>);
133 <font color="#000000">  21:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">1</font>,REMAINDER,<font color="#ff0000">1</font>,button));
134 <font color="#000000">  22:</font>        button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button6</font><font color="#ff00cc">&quot;</font>);
135 <font color="#000000">  23:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">2</font>,<font color="#ff0000">3</font>,<font color="#ff0000">1</font>,button));
136 <font color="#000000">  24:</font>        button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button7</font><font color="#ff00cc">&quot;</font>);
137 <font color="#990066">  25:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">2</font>,button));
138 <font color="#000000">  26:</font>        button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button8</font><font color="#ff00cc">&quot;</font>);
139 <font color="#000000">  27:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">3</font>,<font color="#ff0000">1</font>,<font color="#ff0000">2</font>,button));
140 <font color="#000000">  28:</font>        button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button9</font><font color="#ff00cc">&quot;</font>);
141 <font color="#000000">  29:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">3</font>,<font color="#ff0000">3</font>,<font color="#ff0000">1</font>,button));
142 <font color="#990066">  30:</font>        button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">&quot;</font><font color="#ff00cc">Button10</font><font color="#ff00cc">&quot;</font>);
143 <font color="#000000">  31:</font>        <font color="#9966ff">add</font>(button,<font color="#006699"><strong>new</strong></font> <font color="#9966ff">ExtendedGridLayoutConstraints</font>(<font color="#ff0000">4</font>,REMAINDER,<font color="#ff0000">1</font>,button));
144 <font color="#000000">  32:</font>        
145 <font color="#000000">  33:</font>        <font color="#9966ff">pack</font>();
146 <font color="#000000">  34:</font>        <font color="#9966ff">setLocationRelativeTo</font>(<font color="#cc00cc">null</font>);
147 <font color="#990066">  35:</font>        <font color="#9966ff">setVisible</font>(<font color="#cc00cc">true</font>);
148 <font color="#000000">  36:</font>    <font color="#000000"><strong>}</strong></font>
149 <font color="#000000">  37:</font>    
150 <font color="#000000">  38:</font>    <font color="#006699"><strong>private</strong></font> Button <font color="#9966ff">makeButton</font>(String name) <font color="#000000"><strong>{</strong></font>
151 <font color="#000000">  39:</font>        Button button <font color="#000000"><strong>=</strong></font> <font color="#006699"><strong>new</strong></font> <font color="#9966ff">Button</font>(name);
152 <font color="#990066">  40:</font>        button.<font color="#9966ff">setMaximumSize</font>(<font color="#006699"><strong>new</strong></font> <font color="#9966ff">Dimension</font>(Integer.MAX_VALUE,Integer.MAX_VALUE));
153 <font color="#000000">  41:</font>        <font color="#006699"><strong>return</strong></font> button;
154 <font color="#000000">  42:</font>    <font color="#000000"><strong>}</strong></font>
155 <font color="#000000">  43:</font><font color="#000000"><strong>}</strong></font>
156 </font></pre></blockquote>
157 <hr>
158 If you use <code>REMAINDER</code> as colspan or rowspan then a component takes
159 up the remaining space in that column or row. Any additional components in
160 a row are ignored and not displayed. Additional components in a column are
161 moved rightside. If a rowspan hits a colspan, the colspan ends and the
162 rowspan takes precedence.
163 <p>
164 Components for which <code>isVisible() == false</code> are ignored. Because
165 of this, components can be replaced "in-place" by adding two components next to
166 each other, with different <code>isVisible()</code> values, and toggling the 
167 <code>setVisible()</code> values of both when we wish to swap the currently
168 visible component with the one that is hidden. </p>
169
170 <p>
171 If you want to reserve free space in a row inbetween components,  
172 add a <a href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/Box.Filler.html"><code>javax.swing.Box.Filler</code></a>
173 to the layout if the free space is in the middle of a row,
174 or just don't add components if the free space
175 should be at the end of a row.</p>
176 <p>
177 If a row is taller, or a column is wider than the <code>maximumSize</code> of a component,
178 the component is resized to its maximum size and aligned according to its
179 <code>alignmentX</code> and <code>alignmentY</code> values. </p>
180 <p>
181 One instance of this class can be used to layout multiple
182 containers at the same time. </p>
183<P>
184
185<P>
186<DL>
187<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><CODE>ExtendedGridLayoutConstraints</CODE></A>, 
188<a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html"><code>java.awt.Component</code></a>, 
189<a href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/Box.Filler.html"><code>javax.swing.Box.Filler</code></a></DL>
190<HR>
191
192<P>
193
194<!-- ======== CONSTRUCTOR SUMMARY ======== -->
195
196<A NAME="constructor_summary"><!-- --></A>
197<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
200<B>Constructor Summary</B></FONT></TH>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#ExtendedGridLayout()">ExtendedGridLayout</A></B>()</CODE>
204
205<BR>
206&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an extended grid layout manager with zero horizontal
207 and vertical gap, and zero distance to the borders
208 of the parent container.</TD>
209</TR>
210<TR BGCOLOR="white" CLASS="TableRowColor">
211<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#ExtendedGridLayout(int, int, java.awt.Insets)">ExtendedGridLayout</A></B>(int&nbsp;hgap,
212                   int&nbsp;vgap,
213                   java.awt.Insets&nbsp;distanceToBorders)</CODE>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an extended grid layout manager with the specified horizontal
217 and vertical gap, and the specified distance to the borders
218 of the parent container.</TD>
219</TR>
220</TABLE>
221&nbsp;
222<!-- ========== METHOD SUMMARY =========== -->
223
224<A NAME="method_summary"><!-- --></A>
225<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
227<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
228<B>Method Summary</B></FONT></TH>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE>&nbsp;void</CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)">addLayoutComponent</A></B>(java.awt.Component&nbsp;component,
234                   java.lang.Object&nbsp;constraints)</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the specified component to the layout, using the specified
238 constraints object.</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/ExtendedGridLayout.html#addLayoutComponent(java.lang.String, java.awt.Component)">addLayoutComponent</A></B>(java.lang.String&nbsp;name,
244                   java.awt.Component&nbsp;component)</CODE>
245
246<BR>
247&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the layout manager uses a per-component string,
248 adds the component <code>component</code> to the layout,
249 associating it with the string specified by <code>name</code>.</TD>
250</TR>
251<TR BGCOLOR="white" CLASS="TableRowColor">
252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253<CODE>&nbsp;float</CODE></FONT></TD>
254<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#getLayoutAlignmentX(java.awt.Container)">getLayoutAlignmentX</A></B>(java.awt.Container&nbsp;container)</CODE>
255
256<BR>
257&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alignment along the X axis.</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/ExtendedGridLayout.html#getLayoutAlignmentY(java.awt.Container)">getLayoutAlignmentY</A></B>(java.awt.Container&nbsp;container)</CODE>
263
264<BR>
265&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alignment along the Y axis.</TD>
266</TR>
267<TR BGCOLOR="white" CLASS="TableRowColor">
268<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269<CODE>&nbsp;void</CODE></FONT></TD>
270<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#invalidateLayout(java.awt.Container)">invalidateLayout</A></B>(java.awt.Container&nbsp;container)</CODE>
271
272<BR>
273&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invalidates the layout, indicating that if the layout manager
274 has cached information it should be discarded.</TD>
275</TR>
276<TR BGCOLOR="white" CLASS="TableRowColor">
277<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278<CODE>&nbsp;void</CODE></FONT></TD>
279<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#layoutContainer(java.awt.Container)">layoutContainer</A></B>(java.awt.Container&nbsp;parent)</CODE>
280
281<BR>
282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lays out the specified container.</TD>
283</TR>
284<TR BGCOLOR="white" CLASS="TableRowColor">
285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
287<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#maximumLayoutSize(java.awt.Container)">maximumLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
288
289<BR>
290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the maximum size dimensions for the specified
291 container, given the components it contains.</TD>
292</TR>
293<TR BGCOLOR="white" CLASS="TableRowColor">
294<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
295<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
296<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#minimumLayoutSize(java.awt.Container)">minimumLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
297
298<BR>
299&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the minimum size dimensions for the specified
300 container, given the components it contains.</TD>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
305<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)">preferredLayoutSize</A></B>(java.awt.Container&nbsp;parent)</CODE>
306
307<BR>
308&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the preferred size dimensions for the specified
309 container, given the components it contains.</TD>
310</TR>
311<TR BGCOLOR="white" CLASS="TableRowColor">
312<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313<CODE>&nbsp;void</CODE></FONT></TD>
314<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(java.awt.Component&nbsp;component)</CODE>
315
316<BR>
317&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified component from the layout.</TD>
318</TR>
319<TR BGCOLOR="white" CLASS="TableRowColor">
320<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
321<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
322<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#toString()">toString</A></B>()</CODE>
323
324<BR>
325&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of the object.</TD>
326</TR>
327</TABLE>
328&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
329<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
330<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
331<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
332</TR>
333<TR BGCOLOR="white" CLASS="TableRowColor">
334<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
335</TR>
336</TABLE>
337&nbsp;
338<P>
339
340<!-- ========= CONSTRUCTOR DETAIL ======== -->
341
342<A NAME="constructor_detail"><!-- --></A>
343<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
344<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
345<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
346<B>Constructor Detail</B></FONT></TH>
347</TR>
348</TABLE>
349
350<A NAME="ExtendedGridLayout(int, int, java.awt.Insets)"><!-- --></A><H3>
351ExtendedGridLayout</H3>
352<PRE>
353public <B>ExtendedGridLayout</B>(int&nbsp;hgap,
354                          int&nbsp;vgap,
355                          java.awt.Insets&nbsp;distanceToBorders)</PRE>
356<DL>
357<DD>Creates an extended grid layout manager with the specified horizontal
358 and vertical gap, and the specified distance to the borders
359 of the parent container.
360<P>
361<DL>
362<DT><B>Parameters:</B><DD><CODE>hgap</CODE> - The horizontal space between two columns (&gt;=0)<DD><CODE>vgap</CODE> - The vertical space between two rows (&gt;=0)<DD><CODE>distanceToBorders</CODE> - The distances to the borders of the parent container
363<DT><B>Throws:</B>
364<DD><CODE>java.lang.IllegalArgumentException</CODE> - if hgap &lt; 0
365<DD><CODE>java.lang.IllegalArgumentException</CODE> - if vgap &lt; 0</DL>
366</DL>
367<HR>
368
369<A NAME="ExtendedGridLayout()"><!-- --></A><H3>
370ExtendedGridLayout</H3>
371<PRE>
372public <B>ExtendedGridLayout</B>()</PRE>
373<DL>
374<DD>Creates an extended grid layout manager with zero horizontal
375 and vertical gap, and zero distance to the borders
376 of the parent container.
377<P>
378</DL>
379
380<!-- ============ METHOD DETAIL ========== -->
381
382<A NAME="method_detail"><!-- --></A>
383<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
384<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
385<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
386<B>Method Detail</B></FONT></TH>
387</TR>
388</TABLE>
389
390<A NAME="addLayoutComponent(java.lang.String, java.awt.Component)"><!-- --></A><H3>
391addLayoutComponent</H3>
392<PRE>
393public void <B>addLayoutComponent</B>(java.lang.String&nbsp;name,
394                               java.awt.Component&nbsp;component)</PRE>
395<DL>
396<DD>If the layout manager uses a per-component string,
397 adds the component <code>component</code> to the layout,
398 associating it with the string specified by <code>name</code>.
399<P>
400<DD><DL>
401<DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
402</DD>
403<DD><DL>
404<DT><B>Parameters:</B><DD><CODE>name</CODE> - The string to be associated with the component.
405                  Has to be <code>null</code>, so that default constraints are used.<DD><CODE>component</CODE> - The component to be added
406<DT><B>Throws:</B>
407<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>name</code> is not <code>null</code><DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#addLayoutComponent(java.awt.Component, java.lang.Object)"><CODE>addLayoutComponent(java.awt.Component, java.lang.Object)</CODE></A></DL>
408</DD>
409</DL>
410<HR>
411
412<A NAME="addLayoutComponent(java.awt.Component, java.lang.Object)"><!-- --></A><H3>
413addLayoutComponent</H3>
414<PRE>
415public void <B>addLayoutComponent</B>(java.awt.Component&nbsp;component,
416                               java.lang.Object&nbsp;constraints)</PRE>
417<DL>
418<DD>Adds the specified component to the layout, using the specified
419 constraints object.
420<P>
421<DD><DL>
422<DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
423</DD>
424<DD><DL>
425<DT><B>Parameters:</B><DD><CODE>component</CODE> - The component to be added<DD><CODE>constraints</CODE> - Where/how the component is added to the layout.
426<DT><B>Throws:</B>
427<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>constraints</code> is not an ExtendedGridLayoutConstraints object
428<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>constraints</code> is a placeholder
429<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>constraints</code> is not the right one for the component<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><CODE>ExtendedGridLayoutConstraints</CODE></A></DL>
430</DD>
431</DL>
432<HR>
433
434<A NAME="removeLayoutComponent(java.awt.Component)"><!-- --></A><H3>
435removeLayoutComponent</H3>
436<PRE>
437public void <B>removeLayoutComponent</B>(java.awt.Component&nbsp;component)</PRE>
438<DL>
439<DD>Removes the specified component from the layout.
440<P>
441<DD><DL>
442<DT><B>Specified by:</B><DD><CODE>removeLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
443</DD>
444<DD><DL>
445<DT><B>Parameters:</B><DD><CODE>component</CODE> - The component to be removed</DL>
446</DD>
447</DL>
448<HR>
449
450<A NAME="getLayoutAlignmentX(java.awt.Container)"><!-- --></A><H3>
451getLayoutAlignmentX</H3>
452<PRE>
453public float <B>getLayoutAlignmentX</B>(java.awt.Container&nbsp;container)</PRE>
454<DL>
455<DD>Returns the alignment along the X axis.  This specifies how
456 the component would like to be aligned relative to other
457 components.  The value should be a number between 0 and 1
458 where 0 represents alignment along the origin, 1 is aligned
459 the furthest away from the origin, 0.5 is centered, etc.
460<P>
461<DD><DL>
462<DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentX</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
463</DD>
464<DD><DL>
465<DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the alignment should be returned
466<DT><B>Returns:</B><DD><code>java.awt.Component.CENTER_ALIGNMENT</code></DL>
467</DD>
468</DL>
469<HR>
470
471<A NAME="getLayoutAlignmentY(java.awt.Container)"><!-- --></A><H3>
472getLayoutAlignmentY</H3>
473<PRE>
474public float <B>getLayoutAlignmentY</B>(java.awt.Container&nbsp;container)</PRE>
475<DL>
476<DD>Returns the alignment along the Y axis. This specifies how
477 the component would like to be aligned relative to other
478 components. The value should be a number between 0 and 1
479 where 0 represents alignment along the origin, 1 is aligned
480 the furthest away from the origin, 0.5 is centered, etc.
481<P>
482<DD><DL>
483<DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentY</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
484</DD>
485<DD><DL>
486<DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the alignment should be returned
487<DT><B>Returns:</B><DD><code>java.awt.Component.CENTER_ALIGNMENT</code></DL>
488</DD>
489</DL>
490<HR>
491
492<A NAME="minimumLayoutSize(java.awt.Container)"><!-- --></A><H3>
493minimumLayoutSize</H3>
494<PRE>
495public java.awt.Dimension <B>minimumLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
496<DL>
497<DD>Calculates the minimum size dimensions for the specified
498 container, given the components it contains.
499<P>
500<DD><DL>
501<DT><B>Specified by:</B><DD><CODE>minimumLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
502</DD>
503<DD><DL>
504<DT><B>Parameters:</B><DD><CODE>parent</CODE> - The component to be laid out
505<DT><B>Returns:</B><DD>The minimum size for the container<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#maximumLayoutSize(java.awt.Container)"><CODE>maximumLayoutSize(java.awt.Container)</CODE></A>, 
506<A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)"><CODE>preferredLayoutSize(java.awt.Container)</CODE></A></DL>
507</DD>
508</DL>
509<HR>
510
511<A NAME="preferredLayoutSize(java.awt.Container)"><!-- --></A><H3>
512preferredLayoutSize</H3>
513<PRE>
514public java.awt.Dimension <B>preferredLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
515<DL>
516<DD>Calculates the preferred size dimensions for the specified
517 container, given the components it contains.
518<P>
519<DD><DL>
520<DT><B>Specified by:</B><DD><CODE>preferredLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
521</DD>
522<DD><DL>
523<DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out
524<DT><B>Returns:</B><DD>The preferred size for the container<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#maximumLayoutSize(java.awt.Container)"><CODE>maximumLayoutSize(java.awt.Container)</CODE></A>, 
525<A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#minimumLayoutSize(java.awt.Container)"><CODE>minimumLayoutSize(java.awt.Container)</CODE></A></DL>
526</DD>
527</DL>
528<HR>
529
530<A NAME="maximumLayoutSize(java.awt.Container)"><!-- --></A><H3>
531maximumLayoutSize</H3>
532<PRE>
533public java.awt.Dimension <B>maximumLayoutSize</B>(java.awt.Container&nbsp;parent)</PRE>
534<DL>
535<DD>Calculates the maximum size dimensions for the specified
536 container, given the components it contains.
537<P>
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<DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out
543<DT><B>Returns:</B><DD>The maximum size for the container<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#minimumLayoutSize(java.awt.Container)"><CODE>minimumLayoutSize(java.awt.Container)</CODE></A>, 
544<A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)"><CODE>preferredLayoutSize(java.awt.Container)</CODE></A></DL>
545</DD>
546</DL>
547<HR>
548
549<A NAME="invalidateLayout(java.awt.Container)"><!-- --></A><H3>
550invalidateLayout</H3>
551<PRE>
552public void <B>invalidateLayout</B>(java.awt.Container&nbsp;container)</PRE>
553<DL>
554<DD>Invalidates the layout, indicating that if the layout manager
555 has cached information it should be discarded.
556<P>
557<DD><DL>
558<DT><B>Specified by:</B><DD><CODE>invalidateLayout</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
559</DD>
560<DD><DL>
561<DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the cached information should be discarded</DL>
562</DD>
563</DL>
564<HR>
565
566<A NAME="layoutContainer(java.awt.Container)"><!-- --></A><H3>
567layoutContainer</H3>
568<PRE>
569public void <B>layoutContainer</B>(java.awt.Container&nbsp;parent)</PRE>
570<DL>
571<DD>Lays out the specified container.
572<P>
573<DD><DL>
574<DT><B>Specified by:</B><DD><CODE>layoutContainer</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
575</DD>
576<DD><DL>
577<DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out</DL>
578</DD>
579</DL>
580<HR>
581
582<A NAME="toString()"><!-- --></A><H3>
583toString</H3>
584<PRE>
585public java.lang.String <B>toString</B>()</PRE>
586<DL>
587<DD>Returns a string representation of the object. In general, the
588 <code>toString</code> method returns a string that
589 "textually represents" this object. The result should
590 be a concise but informative representation that is easy for a
591 person to read.
592<P>
593<DD><DL>
594<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
595</DD>
596<DD><DL>
597
598<DT><B>Returns:</B><DD>a string representation of the object.</DL>
599</DD>
600</DL>
601<!-- ========= END OF CLASS DATA ========= -->
602<HR>
603
604
605<!-- ======= START OF BOTTOM NAVBAR ====== -->
606<A NAME="navbar_bottom"><!-- --></A>
607<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
608<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
609<TR>
610<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
611<A NAME="navbar_bottom_firstrow"><!-- --></A>
612<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
613  <TR ALIGN="center" VALIGN="top">
614  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
615  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
616  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
617  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ExtendedGridLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
618  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
619  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
620  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
621  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
622  </TR>
623</TABLE>
624</TD>
625<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
626</EM>
627</TD>
628</TR>
629
630<TR>
631<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
632&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.ErrorEntry.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
633&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
634<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
635  <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/ExtendedGridLayout.html" target="_top"><B>FRAMES</B></A>  &nbsp;
636&nbsp;<A HREF="ExtendedGridLayout.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
637&nbsp;
638<NOSCRIPT>
639  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
640</NOSCRIPT>
641
642
643</FONT></TD>
644</TR>
645<TR>
646<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
647  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
648<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
649DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
650</TR>
651</TABLE>
652<A NAME="skip-navbar_bottom"></A>
653<!-- ======== END OF BOTTOM NAVBAR ======= -->
654
655<HR>
656
657</BODY>
658</HTML>