⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scrollpanelayout.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
 of this method.  It only exists for backwards compatibility with the Swing 1.0.2 (and earlier) versions of this class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - an int giving the display policy</DL></DD></DL><HR><A NAME="getViewport()"><!-- --></A><H3>getViewport</H3><PRE>public <A HREF="../../javax/swing/JViewport.html">JViewport</A> <B>getViewport</B>()</PRE><DL><DD>Returns the JViewport object that displays the scrollable contents.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the JViewport object that displays the scrollable contents<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getViewport()"><CODE>JScrollPane.getViewport()</CODE></A></DL></DD></DL><HR><A NAME="getHorizontalScrollBar()"><!-- --></A><H3>getHorizontalScrollBar</H3><PRE>public <A HREF="../../javax/swing/JScrollBar.html">JScrollBar</A> <B>getHorizontalScrollBar</B>()</PRE><DL><DD>Returns the JScrollBar object that handles horizontal scrolling.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the JScrollBar object that handles horizontal scrolling<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getHorizontalScrollBar()"><CODE>JScrollPane.getHorizontalScrollBar()</CODE></A></DL></DD></DL><HR><A NAME="getVerticalScrollBar()"><!-- --></A><H3>getVerticalScrollBar</H3><PRE>public <A HREF="../../javax/swing/JScrollBar.html">JScrollBar</A> <B>getVerticalScrollBar</B>()</PRE><DL><DD>Returns the JScrollBar object that handles vertical scrolling.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the JScrollBar object that handles vertical scrolling<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getVerticalScrollBar()"><CODE>JScrollPane.getVerticalScrollBar()</CODE></A></DL></DD></DL><HR><A NAME="getRowHeader()"><!-- --></A><H3>getRowHeader</H3><PRE>public <A HREF="../../javax/swing/JViewport.html">JViewport</A> <B>getRowHeader</B>()</PRE><DL><DD>Returns the JViewport object that is the row header.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the JViewport object that is the row header<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getRowHeader()"><CODE>JScrollPane.getRowHeader()</CODE></A></DL></DD></DL><HR><A NAME="getColumnHeader()"><!-- --></A><H3>getColumnHeader</H3><PRE>public <A HREF="../../javax/swing/JViewport.html">JViewport</A> <B>getColumnHeader</B>()</PRE><DL><DD>Returns the JViewport object that is the column header.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the JViewport object that is the column header<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getColumnHeader()"><CODE>JScrollPane.getColumnHeader()</CODE></A></DL></DD></DL><HR><A NAME="getCorner(java.lang.String)"><!-- --></A><H3>getCorner</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getCorner</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;key)</PRE><DL><DD>Returns the Component at the specified corner.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the String specifying the corner<DT><B>Returns:</B><DD>the Component at the specified corner, as defined in         <A HREF="../../javax/swing/ScrollPaneConstants.html"><CODE>ScrollPaneConstants</CODE></A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JScrollPane.html#getCorner(java.lang.String)"><CODE>JScrollPane.getCorner(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="preferredLayoutSize(java.awt.Container)"><!-- --></A><H3>preferredLayoutSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>preferredLayoutSize</B>(<A HREF="../../java/awt/Container.html">Container</A>&nbsp;parent)</PRE><DL><DD>The preferred size of a ScrollPane is the size of the insets, plus the preferred size of the viewport, plus the preferred size of  the visible headers, plus the preferred size of the scrollbars that will appear given the current view and the current scrollbar displayPolicies.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/LayoutManager.html#preferredLayoutSize(java.awt.Container)">preferredLayoutSize</A></CODE> in interface <CODE><A HREF="../../java/awt/LayoutManager.html">LayoutManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the Container that will be laid out<DT><B>Returns:</B><DD>a Dimension object specifying the preferred size of the          viewport and any scrollbars.<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ViewportLayout.html"><CODE>ViewportLayout</CODE></A>, <A HREF="../../java/awt/LayoutManager.html"><CODE>LayoutManager</CODE></A></DL></DD></DL><HR><A NAME="minimumLayoutSize(java.awt.Container)"><!-- --></A><H3>minimumLayoutSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>minimumLayoutSize</B>(<A HREF="../../java/awt/Container.html">Container</A>&nbsp;parent)</PRE><DL><DD>The minimum size of a ScrollPane is the size of the insets  plus minimum size of the viewport, plus the scrollpane's viewportBorder insets, plus the minimum size  of the visible headers, plus the minimum size of the  scrollbars whose displayPolicy isn't NEVER.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/LayoutManager.html#minimumLayoutSize(java.awt.Container)">minimumLayoutSize</A></CODE> in interface <CODE><A HREF="../../java/awt/LayoutManager.html">LayoutManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the Container that will be laid out<DT><B>Returns:</B><DD>a Dimension object specifying the minimum size</DL></DD></DL><HR><A NAME="layoutContainer(java.awt.Container)"><!-- --></A><H3>layoutContainer</H3><PRE>public void <B>layoutContainer</B>(<A HREF="../../java/awt/Container.html">Container</A>&nbsp;parent)</PRE><DL><DD>Lay out the scrollpane. The positioning of components depends on the following constraints: <ul> <li> The row header, if present and visible, gets its preferred height and the viewports width.  <li> The column header, if present and visible, gets its preferred width and the viewports height.  <li> If a vertical scrollbar is needed, i.e. if the viewports extent height is smaller than its view height or if the displayPolicy is ALWAYS, it's treated like the row header wrt it's dimensions and it's made visible.  <li> If a horizontal scrollbar is needed it's treated like the column header (and see the vertical scrollbar item).  <li> If the scrollpane has a non-null viewportBorder, then space is allocated for that.  <li> The viewport gets the space available after accounting for the previous constraints.  <li> The corner components, if provided, are aligned with the  ends of the scrollbars and headers. If there's a vertical scrollbar the right corners appear, if there's a horizontal scrollbar the lower corners appear, a row header gets left corners and a column header gets upper corners. </ul><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/LayoutManager.html#layoutContainer(java.awt.Container)">layoutContainer</A></CODE> in interface <CODE><A HREF="../../java/awt/LayoutManager.html">LayoutManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the Container to lay out</DL></DD></DL><HR><A NAME="getViewportBorderBounds(javax.swing.JScrollPane)"><!-- --></A><H3>getViewportBorderBounds</H3><PRE>public <A HREF="../../java/awt/Rectangle.html">Rectangle</A> <B>getViewportBorderBounds</B>(<A HREF="../../javax/swing/JScrollPane.html">JScrollPane</A>&nbsp;scrollpane)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version Swing1.1    replaced by <code>JScrollPane.getViewportBorderBounds()</code>.</I><P><DD>Returns the bounds of the border around the specified scroll pane's  viewport.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size and position of the viewport border</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ScrollPaneLayout.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/swing/RepaintManager.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/ScrollPaneLayout.UIResource.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ScrollPaneLayout.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&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><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -