📄 cellrendererpane.html
字号:
<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/Container.html#validate()"><CODE>Container.validate()</CODE></A>, <A HREF="../../java/awt/Container.html#layout()"><CODE>Container.layout()</CODE></A>, <A HREF="../../java/awt/LayoutManager.html"><CODE>LayoutManager</CODE></A></DL></DD></DL><HR><A NAME="paint(java.awt.Graphics)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g)</PRE><DL><DD>Shouldn't be called.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#paint(java.awt.Graphics)">paint</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>Parameters:</B><DD><CODE>g</CODE> - the specified Graphics window<DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#update(java.awt.Graphics)"><CODE>Component.update(java.awt.Graphics)</CODE></A></DL></DD></DL><HR><A NAME="update(java.awt.Graphics)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g)</PRE><DL><DD>Shouldn't be called.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#update(java.awt.Graphics)">update</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>Parameters:</B><DD><CODE>g</CODE> - the specified Graphics window<DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#update(java.awt.Graphics)"><CODE>Component.update(java.awt.Graphics)</CODE></A></DL></DD></DL><HR><A NAME="addImpl(java.awt.Component, java.lang.Object, int)"><!-- --></A><H3>addImpl</H3><PRE>protected void <B>addImpl</B>(<A HREF="../../java/awt/Component.html">Component</A> x, <A HREF="../../java/lang/Object.html">Object</A> constraints, int index)</PRE><DL><DD>If the specified component is already a child of this then we don't bother doing anything - stacking order doesn't matter for cell renderer components (CellRendererPane doesn't paint anyway).<<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Container.html#addImpl(java.awt.Component, java.lang.Object, int)">addImpl</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>Parameters:</B><DD><CODE>comp</CODE> - the component to be added.<DD><CODE>constraints</CODE> - an object expressing layout contraints for this component.<DD><CODE>index</CODE> - the position in the container's list at which to insert the component, where <code>-1</code> means insert at the end.<DT><B>See Also: </B><DD><A HREF="../../java/awt/Container.html#add(java.awt.Component)"><CODE>Container.add(java.awt.Component)</CODE></A>, <A HREF="../../java/awt/Container.html#add(java.awt.Component, int)"><CODE>Container.add(java.awt.Component, int)</CODE></A>, <A HREF="../../java/awt/Container.html#add(java.awt.Component, java.lang.Object)"><CODE>Container.add(java.awt.Component, java.lang.Object)</CODE></A>, <A HREF="../../java/awt/LayoutManager.html"><CODE>LayoutManager</CODE></A></DL></DD></DL><HR><A NAME="paintComponent(java.awt.Graphics, java.awt.Component, java.awt.Container, int, int, int, int, boolean)"><!-- --></A><H3>paintComponent</H3><PRE>public void <B>paintComponent</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../java/awt/Component.html">Component</A> c, <A HREF="../../java/awt/Container.html">Container</A> p, int x, int y, int w, int h, boolean shouldValidate)</PRE><DL><DD>Paint a cell renderer component c on graphics object g. Before the component is drawn it's reparented to this (if that's neccessary), it's bounds are set to w,h and the graphics object is (effectively) translated to x,y. If it's a JComponent, double buffering is temporarily turned off. After the component is painted it's bounds are reset to -w, -h, 0, 0 so that, if it's the last renderer component painted, it will not start consuming input. The Container p is the component we're actually drawing on, typically it's equal to this.getParent(). If shouldValidate is true the component c will be validated before painted.<DD><DL></DL></DD></DL><HR><A NAME="paintComponent(java.awt.Graphics, java.awt.Component, java.awt.Container, int, int, int, int)"><!-- --></A><H3>paintComponent</H3><PRE>public void <B>paintComponent</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../java/awt/Component.html">Component</A> c, <A HREF="../../java/awt/Container.html">Container</A> p, int x, int y, int w, int h)</PRE><DL><DD>Calls this.paintComponent(g, c, p, x, y, w, h, false).<DD><DL></DL></DD></DL><HR><A NAME="paintComponent(java.awt.Graphics, java.awt.Component, java.awt.Container, java.awt.Rectangle)"><!-- --></A><H3>paintComponent</H3><PRE>public void <B>paintComponent</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../java/awt/Component.html">Component</A> c, <A HREF="../../java/awt/Container.html">Container</A> p, <A HREF="../../java/awt/Rectangle.html">Rectangle</A> r)</PRE><DL><DD>Calls this.paintComponent() with the rectangles x,y,width,height fields.<DD><DL></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 CellRendererPane. For CellRendererPanes, the AccessibleContext takes the form of an AccessibleCellRendererPane. A new AccessibleCellRendererPane 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 AccessibleCellRendererPane that serves as the AccessibleContext of this CellRendererPane</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/CellRendererPane.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/ButtonGroup.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/CellRendererPane.AccessibleCellRendererPane.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="CellRendererPane.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -