borderlayout.html
来自「API資料大全」· HTML 代码 · 共 881 行 · 第 1/3 页
HTML
881 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#getHgap()">getHgap</A></B>()</CODE><BR> Returns the horizontal gap between components.</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="../../java/awt/BorderLayout.html#getLayoutAlignmentX(java.awt.Container)">getLayoutAlignmentX</A></B>(<A HREF="../../java/awt/Container.html">Container</A> parent)</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="../../java/awt/BorderLayout.html#getLayoutAlignmentY(java.awt.Container)">getLayoutAlignmentY</A></B>(<A HREF="../../java/awt/Container.html">Container</A> parent)</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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#getVgap()">getVgap</A></B>()</CODE><BR> Returns the vertical gap between components.</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="../../java/awt/BorderLayout.html#invalidateLayout(java.awt.Container)">invalidateLayout</A></B>(<A HREF="../../java/awt/Container.html">Container</A> target)</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="../../java/awt/BorderLayout.html#layoutContainer(java.awt.Container)">layoutContainer</A></B>(<A HREF="../../java/awt/Container.html">Container</A> target)</CODE><BR> Lays out the container argument using this border layout.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#maximumLayoutSize(java.awt.Container)">maximumLayoutSize</A></B>(<A HREF="../../java/awt/Container.html">Container</A> target)</CODE><BR> Returns the maximum dimensions for this layout given the components in the specified target container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#minimumLayoutSize(java.awt.Container)">minimumLayoutSize</A></B>(<A HREF="../../java/awt/Container.html">Container</A> target)</CODE><BR> Determines the minimum size of the <code>target</code> container using this layout manager.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#preferredLayoutSize(java.awt.Container)">preferredLayoutSize</A></B>(<A HREF="../../java/awt/Container.html">Container</A> target)</CODE><BR> Determines the preferred size of the <code>target</code> container using this layout manager, based on the components in the container.</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="../../java/awt/BorderLayout.html#removeLayoutComponent(java.awt.Component)">removeLayoutComponent</A></B>(<A HREF="../../java/awt/Component.html">Component</A> comp)</CODE><BR> Removes the specified component from this border layout.</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="../../java/awt/BorderLayout.html#setHgap(int)">setHgap</A></B>(int hgap)</CODE><BR> Sets the horizontal gap between components.</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="../../java/awt/BorderLayout.html#setVgap(int)">setVgap</A></B>(int vgap)</CODE><BR> Sets the vertical gap between components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/BorderLayout.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of the state of this border layout.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="NORTH"><!-- --></A><H3>NORTH</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>NORTH</B></PRE><DL><DD>The north layout constraint (top of container).</DL><HR><A NAME="SOUTH"><!-- --></A><H3>SOUTH</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>SOUTH</B></PRE><DL><DD>The south layout constraint (bottom of container).</DL><HR><A NAME="EAST"><!-- --></A><H3>EAST</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>EAST</B></PRE><DL><DD>The east layout constraint (right side of container).</DL><HR><A NAME="WEST"><!-- --></A><H3>WEST</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>WEST</B></PRE><DL><DD>The west layout constraint (left side of container).</DL><HR><A NAME="CENTER"><!-- --></A><H3>CENTER</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>CENTER</B></PRE><DL><DD>The center layout constraint (middle of container).</DL><HR><A NAME="BEFORE_FIRST_LINE"><!-- --></A><H3>BEFORE_FIRST_LINE</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>BEFORE_FIRST_LINE</B></PRE><DL><DD>The component comes before the first line of the layout's content. For Western, top-to-bottom, left-to-right orientations, this is equivalent to NORTH.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getComponentOrientation()"><CODE>Component.getComponentOrientation()</CODE></A><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="AFTER_LAST_LINE"><!-- --></A><H3>AFTER_LAST_LINE</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>AFTER_LAST_LINE</B></PRE><DL><DD>The component comes after the last line of the layout's content. For Western, top-to-bottom, left-to-right orientations, this is equivalent to SOUTH.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getComponentOrientation()"><CODE>Component.getComponentOrientation()</CODE></A><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="BEFORE_LINE_BEGINS"><!-- --></A><H3>BEFORE_LINE_BEGINS</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>BEFORE_LINE_BEGINS</B></PRE><DL><DD>The component goes at the beginning of the line direction for the layout. For Western, top-to-bottom, left-to-right orientations, this is equivalent to WEST.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getComponentOrientation()"><CODE>Component.getComponentOrientation()</CODE></A><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="AFTER_LINE_ENDS"><!-- --></A><H3>AFTER_LINE_ENDS</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>AFTER_LINE_ENDS</B></PRE><DL><DD>The component goes at the end of the line direction for the layout. For Western, top-to-bottom, left-to-right orientations, this is equivalent to EAST.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getComponentOrientation()"><CODE>Component.getComponentOrientation()</CODE></A><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BorderLayout()"><!-- --></A><H3>BorderLayout</H3><PRE>public <B>BorderLayout</B>()</PRE><DL><DD>Constructs a new border layout with no gaps between components.</DL><HR><A NAME="BorderLayout(int, int)"><!-- --></A><H3>BorderLayout</H3><PRE>public <B>BorderLayout</B>(int hgap, int vgap)</PRE><DL><DD>Constructs a border layout with the specified gaps between components. The horizontal gap is specified by <code>hgap</code> and the vertical gap is specified by <code>vgap</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>hgap</CODE> - the horizontal gap.<DD><CODE>vgap</CODE> - the vertical gap.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getHgap()"><!-- --></A><H3>getHgap</H3><PRE>public int <B>getHgap</B>()</PRE><DL><DD>Returns the horizontal gap between components.<DD><DL></DL></DD><DD><DL><DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="setHgap(int)"><!-- --></A><H3>setHgap</H3><PRE>public void <B>setHgap</B>(int hgap)</PRE><DL><DD>Sets the horizontal gap between components.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hgap</CODE> - the horizontal gap between components<DT><B>Since: </B><DD>JDK1.1</DD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?