scrollpane.html

来自「API資料大全」· HTML 代码 · 共 824 行 · 第 1/4 页

HTML
824
字号
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x position to scroll to<DD><CODE>y</CODE> - the y position to scroll to</DL></DD></DL><HR><A NAME="setScrollPosition(java.awt.Point)"><!-- --></A><H3>setScrollPosition</H3><PRE>public void <B>setScrollPosition</B>(<A HREF="../../java/awt/Point.html">Point</A>&nbsp;p)</PRE><DL><DD>Scrolls to the specified position within the child component. A call to this method is only valid if the scroll pane contains a child and the specified position is within legal scrolling bounds of the child.  Specifying a position outside of the legal scrolling bounds of the child will scroll to the closest legal position. Legal bounds are defined to be the rectangle: x = 0, y = 0, width = (child width - view port width), height = (child height - view port height). This is a convenience method which interfaces with the Adjustable objects which represent the state of the scrollbars.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the Point representing the position to scroll to</DL></DD></DL><HR><A NAME="getScrollPosition()"><!-- --></A><H3>getScrollPosition</H3><PRE>public <A HREF="../../java/awt/Point.html">Point</A> <B>getScrollPosition</B>()</PRE><DL><DD>Returns the current x,y position within the child which is displayed at the 0,0 location of the scrolled panel's view port. This is a convenience method which interfaces with the adjustable objects which represent the state of the scrollbars.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the coordinate position for the current scroll position</DL></DD></DL><HR><A NAME="setLayout(java.awt.LayoutManager)"><!-- --></A><H3>setLayout</H3><PRE>public final void <B>setLayout</B>(<A HREF="../../java/awt/LayoutManager.html">LayoutManager</A>&nbsp;mgr)</PRE><DL><DD>Sets the layout manager for this container.  This method is overridden to prevent the layout mgr from being set.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#setLayout(java.awt.LayoutManager)">setLayout</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mgr</CODE> - the specified layout manager</DL></DD></DL><HR><A NAME="doLayout()"><!-- --></A><H3>doLayout</H3><PRE>public void <B>doLayout</B>()</PRE><DL><DD>Lays out this container by resizing its child to its preferred size. If the new preferred size of the child causes the current scroll position to be invalid, the scroll position is set to the closest valid position.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#doLayout()">doLayout</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#validate()"><CODE>Component.validate()</CODE></A></DL></DD></DL><HR><A NAME="layout()"><!-- --></A><H3>layout</H3><PRE>public void <B>layout</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>doLayout()</code>.</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#layout()">layout</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD></DL><HR><A NAME="printComponents(java.awt.Graphics)"><!-- --></A><H3>printComponents</H3><PRE>public void <B>printComponents</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</PRE><DL><DD>Prints the component in this scroll pane.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#printComponents(java.awt.Graphics)">printComponents</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - the specified Graphics window<DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#print(java.awt.Graphics)"><CODE>Component.print(java.awt.Graphics)</CODE></A>, <A HREF="../../java/awt/Component.html#printAll(java.awt.Graphics)"><CODE>Component.printAll(java.awt.Graphics)</CODE></A></DL></DD></DL><HR><A NAME="addNotify()"><!-- --></A><H3>addNotify</H3><PRE>public void <B>addNotify</B>()</PRE><DL><DD>Creates the scroll pane's peer.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#addNotify()">addNotify</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.Container</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#isDisplayable()"><CODE>Component.isDisplayable()</CODE></A>, <A HREF="../../java/awt/Container.html#removeNotify()"><CODE>Container.removeNotify()</CODE></A></DL></DD></DL><HR><A NAME="paramString()"><!-- --></A><H3>paramString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>paramString</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></B></DD><DD>Returns the parameter string representing the state of this  container. This string is useful for debugging.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#paramString()">paramString</A></CODE> in class <CODE><A HREF="../../java/awt/Container.html">Container</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.Container</CODE></DD><DD><DL><DT><B>Returns:</B><DD>the parameter string of this container.</DL></DD></DL><HR><A NAME="getAccessibleContext()"><!-- --></A><H3>getAccessibleContext</H3><PRE>public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE><DL><DD>Gets the AccessibleContext associated with this ScrollPane.  For scroll panes, the AccessibleContext takes the form of an  AccessibleAWTScrollPane.  A new AccessibleAWTScrollPane instance is created if necessary.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/accessibility/Accessible.html#getAccessibleContext()">getAccessibleContext</A></CODE> in interface <CODE><A HREF="../../javax/accessibility/Accessible.html">Accessible</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getAccessibleContext()">getAccessibleContext</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an AccessibleAWTScrollPane that serves as the          AccessibleContext of this ScrollPane</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/ScrollPane.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="../../java/awt/Scrollbar.AccessibleAWTScrollBar.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/awt/ScrollPane.AccessibleAWTScrollPane.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="ScrollPane.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 + =
减小字号Ctrl + -
显示快捷键?