/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
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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:55 GMT-08:00 2008 -->
- <TITLE>
- ExtendedGridLayout (jEdit API)
- </TITLE>
- <META NAME="keywords" CONTENT="org.gjt.sp.jedit.gui.ExtendedGridLayout class">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
- <NOSCRIPT>
- </NOSCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" >
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExtendedGridLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.ErrorEntry.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/ExtendedGridLayout.html" target="_top"><B>FRAMES</B></A>
- <A HREF="ExtendedGridLayout.html" target="_top"><B>NO FRAMES</B></A>
-
- <NOSCRIPT>
- <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- org.gjt.sp.jedit.gui</FONT>
- <BR>
- Class ExtendedGridLayout</H2>
- <PRE>
- java.lang.Object
- <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.gui.ExtendedGridLayout</B>
- </PRE>
- <DL>
- <DT><B>All Implemented Interfaces:</B> <DD>java.awt.LayoutManager, java.awt.LayoutManager2</DD>
- </DL>
- <HR>
- <DL>
- <DT><PRE>public class <B>ExtendedGridLayout</B><DT>extends java.lang.Object<DT>implements java.awt.LayoutManager2</DL>
- </PRE>
- <P>
- A layout manager that places components in a rectangular grid
- with variable cell sizes that supports colspans and rowspans.
- <p>
- The container is divided into rectangles, and each component is placed
- in a rectangular space defined by its colspan and rowspan.
- Each row is as large as the largest component in
- that row, and each column is as wide as the widest component in
- that column. </p>
- <p>
- This behavior is similar to
- <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridLayout.html"><code>java.awt.GridLayout</code></a>
- but it supports different row heights and
- column widths for each row/column. </p>
- <p>
- For example, the following is a Dialog that lays out ten buttons
- exactly the same as in the example of the JavaDoc of
- <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridBagLayout.html"><code>java.awt.GridBagLayout</code></a>
- with the difference of vertical and horizontal gaps that can be configured:
- <hr>
- <blockquote><pre><font color="#000000">
- <font color="#000000"> 1:</font><font color="#009966"><strong>import</strong></font> java.awt.Button;
- <font color="#000000"> 2:</font><font color="#009966"><strong>import</strong></font> java.awt.Dimension;
- <font color="#000000"> 3:</font>
- <font color="#000000"> 4:</font><font color="#009966"><strong>import</strong></font> javax.swing.JDialog;
- <font color="#990066"> 5:</font>
- <font color="#000000"> 6:</font><font color="#009966"><strong>import</strong></font> org.gjt.sp.jedit.gui.ExtendedGridLayout;
- <font color="#000000"> 7:</font><font color="#009966"><strong>import</strong></font> org.gjt.sp.jedit.gui.ExtendedGridLayoutConstraints;
- <font color="#000000"> 8:</font>
- <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;
- <font color="#990066"> 10:</font>
- <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>
- <font color="#000000"> 12:</font> <font color="#006699"><strong>public</strong></font> <font color="#9966ff">ExampleDialog</font>() <font color="#000000"><strong>{</strong></font>
- <font color="#000000"> 13:</font> <font color="#cc00cc">super</font>(<font color="#cc00cc">null</font>,<font color="#ff00cc">"</font><font color="#ff00cc">Example</font><font color="#ff00cc"> </font><font color="#ff00cc">Dialog</font><font color="#ff00cc">"</font>,<font color="#cc00cc">true</font>);
- <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>)));
- <font color="#990066"> 15:</font>
- <font color="#000000"> 16:</font> <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button1</font><font color="#ff00cc">"</font>));
- <font color="#000000"> 17:</font> <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button2</font><font color="#ff00cc">"</font>));
- <font color="#000000"> 18:</font> <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button3</font><font color="#ff00cc">"</font>));
- <font color="#000000"> 19:</font> <font color="#9966ff">add</font>(<font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button4</font><font color="#ff00cc">"</font>));
- <font color="#990066"> 20:</font> Button button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button5</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#000000"> 22:</font> button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button6</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#000000"> 24:</font> button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button7</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#000000"> 26:</font> button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button8</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#000000"> 28:</font> button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button9</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#990066"> 30:</font> button <font color="#000000"><strong>=</strong></font> <font color="#9966ff">makeButton</font>(<font color="#ff00cc">"</font><font color="#ff00cc">Button10</font><font color="#ff00cc">"</font>);
- <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));
- <font color="#000000"> 32:</font>
- <font color="#000000"> 33:</font> <font color="#9966ff">pack</font>();
- <font color="#000000"> 34:</font> <font color="#9966ff">setLocationRelativeTo</font>(<font color="#cc00cc">null</font>);
- <font color="#990066"> 35:</font> <font color="#9966ff">setVisible</font>(<font color="#cc00cc">true</font>);
- <font color="#000000"> 36:</font> <font color="#000000"><strong>}</strong></font>
- <font color="#000000"> 37:</font>
- <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>
- <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);
- <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));
- <font color="#000000"> 41:</font> <font color="#006699"><strong>return</strong></font> button;
- <font color="#000000"> 42:</font> <font color="#000000"><strong>}</strong></font>
- <font color="#000000"> 43:</font><font color="#000000"><strong>}</strong></font>
- </font></pre></blockquote>
- <hr>
- If you use <code>REMAINDER</code> as colspan or rowspan then a component takes
- up the remaining space in that column or row. Any additional components in
- a row are ignored and not displayed. Additional components in a column are
- moved rightside. If a rowspan hits a colspan, the colspan ends and the
- rowspan takes precedence.
- <p>
- Components for which <code>isVisible() == false</code> are ignored. Because
- of this, components can be replaced "in-place" by adding two components next to
- each other, with different <code>isVisible()</code> values, and toggling the
- <code>setVisible()</code> values of both when we wish to swap the currently
- visible component with the one that is hidden. </p>
- <p>
- If you want to reserve free space in a row inbetween components,
- 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>
- to the layout if the free space is in the middle of a row,
- or just don't add components if the free space
- should be at the end of a row.</p>
- <p>
- If a row is taller, or a column is wider than the <code>maximumSize</code> of a component,
- the component is resized to its maximum size and aligned according to its
- <code>alignmentX</code> and <code>alignmentY</code> values. </p>
- <p>
- One instance of this class can be used to layout multiple
- containers at the same time. </p>
- <P>
- <P>
- <DL>
- <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>,
- <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html"><code>java.awt.Component</code></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></DL>
- <HR>
- <P>
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <A NAME="constructor_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Constructor Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#ExtendedGridLayout()">ExtendedGridLayout</A></B>()</CODE>
- <BR>
- Creates an extended grid layout manager with zero horizontal
- and vertical gap, and zero distance to the borders
- of the parent container.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#ExtendedGridLayout(int, int, java.awt.Insets)">ExtendedGridLayout</A></B>(int hgap,
- int vgap,
- java.awt.Insets distanceToBorders)</CODE>
- <BR>
- Creates an extended grid layout manager with the specified horizontal
- and vertical gap, and the specified distance to the borders
- of the parent container.</TD>
- </TR>
- </TABLE>
-
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <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 component,
- java.lang.Object constraints)</CODE>
- <BR>
- Adds the specified component to the layout, using the specified
- constraints object.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <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 name,
- java.awt.Component component)</CODE>
- <BR>
- If the layout manager uses a per-component string,
- adds the component <code>component</code> to the layout,
- associating it with the string specified by <code>name</code>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> float</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#getLayoutAlignmentX(java.awt.Container)">getLayoutAlignmentX</A></B>(java.awt.Container container)</CODE>
- <BR>
- Returns the alignment along the X axis.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> float</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#getLayoutAlignmentY(java.awt.Container)">getLayoutAlignmentY</A></B>(java.awt.Container container)</CODE>
- <BR>
- Returns the alignment along the Y axis.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#invalidateLayout(java.awt.Container)">invalidateLayout</A></B>(java.awt.Container container)</CODE>
- <BR>
- Invalidates the layout, indicating that if the layout manager
- has cached information it should be discarded.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#layoutContainer(java.awt.Container)">layoutContainer</A></B>(java.awt.Container parent)</CODE>
- <BR>
- Lays out the specified container.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.awt.Dimension</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#maximumLayoutSize(java.awt.Container)">maximumLayoutSize</A></B>(java.awt.Container parent)</CODE>
- <BR>
- Calculates the maximum size dimensions for the specified
- container, given the components it contains.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.awt.Dimension</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#minimumLayoutSize(java.awt.Container)">minimumLayoutSize</A></B>(java.awt.Container parent)</CODE>
- <BR>
- Calculates the minimum size dimensions for the specified
- container, given the components it contains.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.awt.Dimension</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)">preferredLayoutSize</A></B>(java.awt.Container parent)</CODE>
- <BR>
- Calculates the preferred size dimensions for the specified
- container, given the components it contains.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(java.awt.Component component)</CODE>
- <BR>
- Removes the specified component from the layout.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#toString()">toString</A></B>()</CODE>
- <BR>
- Returns a string representation of the object.</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
- </TR>
- </TABLE>
-
- <P>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <A NAME="constructor_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Constructor Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="ExtendedGridLayout(int, int, java.awt.Insets)"><!-- --></A><H3>
- ExtendedGridLayout</H3>
- <PRE>
- public <B>ExtendedGridLayout</B>(int hgap,
- int vgap,
- java.awt.Insets distanceToBorders)</PRE>
- <DL>
- <DD>Creates an extended grid layout manager with the specified horizontal
- and vertical gap, and the specified distance to the borders
- of the parent container.
- <P>
- <DL>
- <DT><B>Parameters:</B><DD><CODE>hgap</CODE> - The horizontal space between two columns (>=0)<DD><CODE>vgap</CODE> - The vertical space between two rows (>=0)<DD><CODE>distanceToBorders</CODE> - The distances to the borders of the parent container
- <DT><B>Throws:</B>
- <DD><CODE>java.lang.IllegalArgumentException</CODE> - if hgap < 0
- <DD><CODE>java.lang.IllegalArgumentException</CODE> - if vgap < 0</DL>
- </DL>
- <HR>
- <A NAME="ExtendedGridLayout()"><!-- --></A><H3>
- ExtendedGridLayout</H3>
- <PRE>
- public <B>ExtendedGridLayout</B>()</PRE>
- <DL>
- <DD>Creates an extended grid layout manager with zero horizontal
- and vertical gap, and zero distance to the borders
- of the parent container.
- <P>
- </DL>
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="addLayoutComponent(java.lang.String, java.awt.Component)"><!-- --></A><H3>
- addLayoutComponent</H3>
- <PRE>
- public void <B>addLayoutComponent</B>(java.lang.String name,
- java.awt.Component component)</PRE>
- <DL>
- <DD>If the layout manager uses a per-component string,
- adds the component <code>component</code> to the layout,
- associating it with the string specified by <code>name</code>.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>name</CODE> - The string to be associated with the component.
- Has to be <code>null</code>, so that default constraints are used.<DD><CODE>component</CODE> - The component to be added
- <DT><B>Throws:</B>
- <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>
- </DD>
- </DL>
- <HR>
- <A NAME="addLayoutComponent(java.awt.Component, java.lang.Object)"><!-- --></A><H3>
- addLayoutComponent</H3>
- <PRE>
- public void <B>addLayoutComponent</B>(java.awt.Component component,
- java.lang.Object constraints)</PRE>
- <DL>
- <DD>Adds the specified component to the layout, using the specified
- constraints object.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>addLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
- </DD>
- <DD><DL>
- <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.
- <DT><B>Throws:</B>
- <DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>constraints</code> is not an ExtendedGridLayoutConstraints object
- <DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>constraints</code> is a placeholder
- <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>
- </DD>
- </DL>
- <HR>
- <A NAME="removeLayoutComponent(java.awt.Component)"><!-- --></A><H3>
- removeLayoutComponent</H3>
- <PRE>
- public void <B>removeLayoutComponent</B>(java.awt.Component component)</PRE>
- <DL>
- <DD>Removes the specified component from the layout.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>removeLayoutComponent</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>component</CODE> - The component to be removed</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getLayoutAlignmentX(java.awt.Container)"><!-- --></A><H3>
- getLayoutAlignmentX</H3>
- <PRE>
- public float <B>getLayoutAlignmentX</B>(java.awt.Container container)</PRE>
- <DL>
- <DD>Returns the alignment along the X axis. This specifies how
- the component would like to be aligned relative to other
- components. The value should be a number between 0 and 1
- where 0 represents alignment along the origin, 1 is aligned
- the furthest away from the origin, 0.5 is centered, etc.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentX</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the alignment should be returned
- <DT><B>Returns:</B><DD><code>java.awt.Component.CENTER_ALIGNMENT</code></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getLayoutAlignmentY(java.awt.Container)"><!-- --></A><H3>
- getLayoutAlignmentY</H3>
- <PRE>
- public float <B>getLayoutAlignmentY</B>(java.awt.Container container)</PRE>
- <DL>
- <DD>Returns the alignment along the Y axis. This specifies how
- the component would like to be aligned relative to other
- components. The value should be a number between 0 and 1
- where 0 represents alignment along the origin, 1 is aligned
- the furthest away from the origin, 0.5 is centered, etc.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>getLayoutAlignmentY</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the alignment should be returned
- <DT><B>Returns:</B><DD><code>java.awt.Component.CENTER_ALIGNMENT</code></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="minimumLayoutSize(java.awt.Container)"><!-- --></A><H3>
- minimumLayoutSize</H3>
- <PRE>
- public java.awt.Dimension <B>minimumLayoutSize</B>(java.awt.Container parent)</PRE>
- <DL>
- <DD>Calculates the minimum size dimensions for the specified
- container, given the components it contains.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>minimumLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The component to be laid out
- <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>,
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)"><CODE>preferredLayoutSize(java.awt.Container)</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="preferredLayoutSize(java.awt.Container)"><!-- --></A><H3>
- preferredLayoutSize</H3>
- <PRE>
- public java.awt.Dimension <B>preferredLayoutSize</B>(java.awt.Container parent)</PRE>
- <DL>
- <DD>Calculates the preferred size dimensions for the specified
- container, given the components it contains.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>preferredLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out
- <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>,
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#minimumLayoutSize(java.awt.Container)"><CODE>minimumLayoutSize(java.awt.Container)</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="maximumLayoutSize(java.awt.Container)"><!-- --></A><H3>
- maximumLayoutSize</H3>
- <PRE>
- public java.awt.Dimension <B>maximumLayoutSize</B>(java.awt.Container parent)</PRE>
- <DL>
- <DD>Calculates the maximum size dimensions for the specified
- container, given the components it contains.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>maximumLayoutSize</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out
- <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>,
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayout.html#preferredLayoutSize(java.awt.Container)"><CODE>preferredLayoutSize(java.awt.Container)</CODE></A></DL>
- </DD>
- </DL>
- <HR>
- <A NAME="invalidateLayout(java.awt.Container)"><!-- --></A><H3>
- invalidateLayout</H3>
- <PRE>
- public void <B>invalidateLayout</B>(java.awt.Container container)</PRE>
- <DL>
- <DD>Invalidates the layout, indicating that if the layout manager
- has cached information it should be discarded.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>invalidateLayout</CODE> in interface <CODE>java.awt.LayoutManager2</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>container</CODE> - The container for which the cached information should be discarded</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="layoutContainer(java.awt.Container)"><!-- --></A><H3>
- layoutContainer</H3>
- <PRE>
- public void <B>layoutContainer</B>(java.awt.Container parent)</PRE>
- <DL>
- <DD>Lays out the specified container.
- <P>
- <DD><DL>
- <DT><B>Specified by:</B><DD><CODE>layoutContainer</CODE> in interface <CODE>java.awt.LayoutManager</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The container to be laid out</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="toString()"><!-- --></A><H3>
- toString</H3>
- <PRE>
- public java.lang.String <B>toString</B>()</PRE>
- <DL>
- <DD>Returns a string representation of the object. In general, the
- <code>toString</code> method returns a string that
- "textually represents" this object. The result should
- be a concise but informative representation that is easy for a
- person to read.
- <P>
- <DD><DL>
- <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
- </DD>
- <DD><DL>
- <DT><B>Returns:</B><DD>a string representation of the object.</DL>
- </DD>
- </DL>
- <!-- ========= END OF CLASS DATA ========= -->
- <HR>
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <A NAME="navbar_bottom"><!-- --></A>
- <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_bottom_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExtendedGridLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.ErrorEntry.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>
- <A HREF="../../../../../org/gjt/sp/jedit/gui/ExtendedGridLayoutConstraints.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/ExtendedGridLayout.html" target="_top"><B>FRAMES</B></A>
- <A HREF="ExtendedGridLayout.html" target="_top"><B>NO FRAMES</B></A>
-
- <NOSCRIPT>
- <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- </BODY>
- </HTML>