📄 repaintmanager.html
字号:
<B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="RepaintManager()"><!-- --></A><H3>RepaintManager</H3><PRE>public <B>RepaintManager</B>()</PRE><DL><DD>Create a new RepaintManager instance. You rarely call this constructor. directly. To get the default RepaintManager, use RepaintManager.currentManager(JComponent) (normally "this").</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="currentManager(java.awt.Component)"><!-- --></A><H3>currentManager</H3><PRE>public static <A HREF="../../javax/swing/RepaintManager.html">RepaintManager</A> <B>currentManager</B>(<A HREF="../../java/awt/Component.html">Component</A> c)</PRE><DL><DD>Return the RepaintManager for the calling thread given a Component.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - a Component -- unused in the default implementation, but could be used by an overridden version to return a different RepaintManager depending on the Component<DT><B>Returns:</B><DD>the RepaintManager object</DL></DD></DL><HR><A NAME="currentManager(javax.swing.JComponent)"><!-- --></A><H3>currentManager</H3><PRE>public static <A HREF="../../javax/swing/RepaintManager.html">RepaintManager</A> <B>currentManager</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD>Return the RepaintManager for the calling thread given a JComponent. <p> Note: This method exists for backward binary compatibility with earlier versions of the Swing library. It simply returns the result returned by <A HREF="../../javax/swing/RepaintManager.html#currentManager(java.awt.Component)"><CODE>currentManager(Component)</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - a JComponent -- unused<DT><B>Returns:</B><DD>the RepaintManager object</DL></DD></DL><HR><A NAME="setCurrentManager(javax.swing.RepaintManager)"><!-- --></A><H3>setCurrentManager</H3><PRE>public static void <B>setCurrentManager</B>(<A HREF="../../javax/swing/RepaintManager.html">RepaintManager</A> aRepaintManager)</PRE><DL><DD>Set the RepaintManager that should be used for the calling thread. <b>aRepaintManager</b> will become the current RepaintManager for the calling thread's thread group.<DD><DL><DT><B>Parameters:</B><DD><CODE>aRepaintManager</CODE> - the RepaintManager object to use</DL></DD></DL><HR><A NAME="addInvalidComponent(javax.swing.JComponent)"><!-- --></A><H3>addInvalidComponent</H3><PRE>public void <B>addInvalidComponent</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> invalidComponent)</PRE><DL><DD>Mark the component as in need of layout and queue a runnable for the event dispatching thread that will validate the components first isValidateRoot() ancestor.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#isValidateRoot()"><CODE>JComponent.isValidateRoot()</CODE></A>, <A HREF="../../javax/swing/RepaintManager.html#removeInvalidComponent(javax.swing.JComponent)"><CODE>removeInvalidComponent(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="removeInvalidComponent(javax.swing.JComponent)"><!-- --></A><H3>removeInvalidComponent</H3><PRE>public void <B>removeInvalidComponent</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> component)</PRE><DL><DD>Remove a component from the list of invalid components.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/RepaintManager.html#addInvalidComponent(javax.swing.JComponent)"><CODE>addInvalidComponent(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="addDirtyRegion(javax.swing.JComponent, int, int, int, int)"><!-- --></A><H3>addDirtyRegion</H3><PRE>public void <B>addDirtyRegion</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> c, int x, int y, int w, int h)</PRE><DL><DD>Add a component in the list of components that should be refreshed. If <i>c</i> already has a dirty region, the rectangle <i>(x,y,w,h)</i> will be unioned with the region that should be redrawn.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#repaint(long, int, int, int, int)"><CODE>JComponent.repaint(long, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="getDirtyRegion(javax.swing.JComponent)"><!-- --></A><H3>getDirtyRegion</H3><PRE>public <A HREF="../../java/awt/Rectangle.html">Rectangle</A> <B>getDirtyRegion</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> aComponent)</PRE><DL><DD>Return the current dirty region for a component. Return an empty rectangle if the component is not dirty.</DL><HR><A NAME="markCompletelyDirty(javax.swing.JComponent)"><!-- --></A><H3>markCompletelyDirty</H3><PRE>public void <B>markCompletelyDirty</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> aComponent)</PRE><DL><DD>Mark a component completely dirty. <b>aComponent</b> will be completely painted during the next paintDirtyRegions() call.</DL><HR><A NAME="markCompletelyClean(javax.swing.JComponent)"><!-- --></A><H3>markCompletelyClean</H3><PRE>public void <B>markCompletelyClean</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> aComponent)</PRE><DL><DD>Mark a component completely clean. <b>aComponent</b> will not get painted during the next paintDirtyRegions() call.</DL><HR><A NAME="isCompletelyDirty(javax.swing.JComponent)"><!-- --></A><H3>isCompletelyDirty</H3><PRE>public boolean <B>isCompletelyDirty</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> aComponent)</PRE><DL><DD>Convenience method that returns true if <b>aComponent</b> will be completely painted during the next paintDirtyRegions(). If computing dirty regions is expensive for your component, use this method and avoid computing dirty region if it return true.</DL><HR><A NAME="validateInvalidComponents()"><!-- --></A><H3>validateInvalidComponents</H3><PRE>public void <B>validateInvalidComponents</B>()</PRE><DL><DD>Validate all of the components that have been marked invalid.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/RepaintManager.html#addInvalidComponent(javax.swing.JComponent)"><CODE>addInvalidComponent(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="paintDirtyRegions()"><!-- --></A><H3>paintDirtyRegions</H3><PRE>public void <B>paintDirtyRegions</B>()</PRE><DL><DD>Paint all of the components that have been marked dirty.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/RepaintManager.html#addDirtyRegion(javax.swing.JComponent, int, int, int, int)"><CODE>addDirtyRegion(javax.swing.JComponent, int, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string that displays and identifies this object's properties.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String representation of this object</DL></DD></DL><HR><A NAME="getOffscreenBuffer(java.awt.Component, int, int)"><!-- --></A><H3>getOffscreenBuffer</H3><PRE>public <A HREF="../../java/awt/Image.html">Image</A> <B>getOffscreenBuffer</B>(<A HREF="../../java/awt/Component.html">Component</A> c, int proposedWidth, int proposedHeight)</PRE><DL><DD>Return the offscreen buffer that should be used as a double buffer with the component <code>c</code> By default there is a double buffer per RepaintManager. The buffer might be smaller than <code>(proposedWidth,proposedHeight)</code> This happens when the maximum double buffer size as been set for the receiving repaint manager.</DL><HR><A NAME="setDoubleBufferMaximumSize(java.awt.Dimension)"><!-- --></A><H3>setDoubleBufferMaximumSize</H3><PRE>public void <B>setDoubleBufferMaximumSize</B>(<A HREF="../../java/awt/Dimension.html">Dimension</A> d)</PRE><DL><DD>Set the maximum double buffer size.</DL><HR><A NAME="getDoubleBufferMaximumSize()"><!-- --></A><H3>getDoubleBufferMaximumSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getDoubleBufferMaximumSize</B>()</PRE><DL><DD>Returns the maximum double buffer size.<DD><DL><DT><B>Returns:</B><DD>a Dimension object representing the maximum size</DL></DD></DL><HR><A NAME="setDoubleBufferingEnabled(boolean)"><!-- --></A><H3>setDoubleBufferingEnabled</H3><PRE>public void <B>setDoubleBufferingEnabled</B>(boolean aFlag)</PRE><DL><DD>Enables or disables double buffering.<DD><DL><DT><B>Parameters:</B><DD><CODE>aFlag</CODE> - true to activate double buffering</DL></DD></DL><HR><A NAME="isDoubleBufferingEnabled()"><!-- --></A><H3>isDoubleBufferingEnabled</H3><PRE>public boolean <B>isDoubleBufferingEnabled</B>()</PRE><DL><DD>Returns true if this object is double buffered.<DD><DL><DT><B>Returns:</B><DD>true if this object is double buffered</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RepaintManager.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/swing/ProgressMonitorInputStream.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/ScrollPaneLayout.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> <A HREF="RepaintManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== 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 + -