📄 jcanvas3d.html
字号:
<DT><B>Specified by:</B><DD><CODE>ancestorRemoved</CODE> in interface <CODE>javax.swing.event.AncestorListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>event</CODE> - </DL></DD></DL><HR><A NAME="getOffscreenCanvas3D()"><!-- --></A><H3>getOffscreenCanvas3D</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> <B>getOffscreenCanvas3D</B>()</PRE><DL><DD>Returns the offscreen heavyweight canvas of that lightweight component.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the heavyweight canvas that lies in the deepness of this Component.</DL></DD></DL><HR><A NAME="getResizeMode()"><!-- --></A><H3>getResizeMode</H3><PRE>public int <B>getResizeMode</B>()</PRE><DL><DD>Retrieves the resize mode for that component.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the resize mode, which can be one of RESIZE_IMMEDIATELY or RESIZE_DELAYED</DL></DD></DL><HR><A NAME="getResizeValidationDelay()"><!-- --></A><H3>getResizeValidationDelay</H3><PRE>public int <B>getResizeValidationDelay</B>()</PRE><DL><DD>Retrieves the validation delay for that canvas, whatever the resize mode is set to.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the validation delay.</DL></DD></DL><HR><A NAME="paintComponent(java.awt.Graphics)"><!-- --></A><H3>paintComponent</H3><PRE>public void <B>paintComponent</B>(java.awt.Graphics g)</PRE><DL><DD>Paints the result of the rendering. If the rendered buffer is not useable (render thread being between [code]postRender()[/code] and [code]postSwap()[/code]), it will wait for it to be ready. Otherwise it will directly paint the previous buffer.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>paintComponent</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - </DL></DD></DL><HR><A NAME="processComponentKeyEvent(java.awt.event.KeyEvent)"><!-- --></A><H3>processComponentKeyEvent</H3><PRE>protected void <B>processComponentKeyEvent</B>(java.awt.event.KeyEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processComponentKeyEvent</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processFocusEvent(java.awt.event.FocusEvent)"><!-- --></A><H3>processFocusEvent</H3><PRE>protected void <B>processFocusEvent</B>(java.awt.event.FocusEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processFocusEvent</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processInputMethodEvent(java.awt.event.InputMethodEvent)"><!-- --></A><H3>processInputMethodEvent</H3><PRE>protected void <B>processInputMethodEvent</B>(java.awt.event.InputMethodEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processInputMethodEvent</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processKeyEvent(java.awt.event.KeyEvent)"><!-- --></A><H3>processKeyEvent</H3><PRE>protected void <B>processKeyEvent</B>(java.awt.event.KeyEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processKeyEvent</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processMouseEvent(java.awt.event.MouseEvent)"><!-- --></A><H3>processMouseEvent</H3><PRE>protected void <B>processMouseEvent</B>(java.awt.event.MouseEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processMouseEvent</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processMouseMotionEvent(java.awt.event.MouseEvent)"><!-- --></A><H3>processMouseMotionEvent</H3><PRE>protected void <B>processMouseMotionEvent</B>(java.awt.event.MouseEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processMouseMotionEvent</CODE> in class <CODE>javax.swing.JComponent</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="processMouseWheelEvent(java.awt.event.MouseWheelEvent)"><!-- --></A><H3>processMouseWheelEvent</H3><PRE>protected void <B>processMouseWheelEvent</B>(java.awt.event.MouseWheelEvent e)</PRE><DL><DD>Redirects event to canvas and to superclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>processMouseWheelEvent</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - </DL></DD></DL><HR><A NAME="setBounds(int, int, int, int)"><!-- --></A><H3>setBounds</H3><PRE>public void <B>setBounds</B>(int x, int y, int width, int height)</PRE><DL><DD><P><DD><DL><DT><B>Overrides:</B><DD><CODE>setBounds</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - <DD><CODE>y</CODE> - <DD><CODE>width</CODE> - <DD><CODE>height</CODE> - </DL></DD></DL><HR><A NAME="setResizeMode(int)"><!-- --></A><H3>setResizeMode</H3><PRE>public void <B>setResizeMode</B>(int resizeMode)</PRE><DL><DD>Sets resize mode to be used on this component. Resize mode permits to have smoother canvas resizes. The time taken by a canvas to be resized can be pretty long: renderer has to stop, current render has to end, everything has to be initialized again, and after all that has been done, renderer is started again, then the image is displayed once rendered. Resize mode uses a timer to make those steps only after the last refresh request occured. 'Latest refresh' is determined by the amount of time between now and the last time you asked for a size change. If that time expires, a real resize is done. In between, the same size is rendered, but the drawn image is scaled down/up. This has some drawbacks, as the image can appear blocked, imprecise, distorted, incomplete for that while, but most of the time only some of the drawbacks will be users will see nothing. Default delay is set to 100ms, which is low enough for common human not to be able to really see that the rendered image is scaled.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>resizeMode</CODE> - can be one of RESIZE_IMMEDIATELY or RESIZE_DELAYED<DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/exp/swing/JCanvas3D.html#RESIZE_IMMEDIATELY"><CODE>RESIZE_IMMEDIATELY</CODE></A>, <A HREF="../../../../../com/sun/j3d/exp/swing/JCanvas3D.html#RESIZE_DELAYED"><CODE>RESIZE_DELAYED</CODE></A></DL></DD></DL><HR><A NAME="setResizeValidationDelay(int)"><!-- --></A><H3>setResizeValidationDelay</H3><PRE>public void <B>setResizeValidationDelay</B>(int resizeValidationDelay)</PRE><DL><DD>Sets the validation delay for the component. The validation delay is the maximum time allowed for the canvas resizing to occur using rendered buffer scaling. Once that delay expired, the canvas is resized at the lowest level possible, thus in the rendering pipeline. Note: Changing this field is only useful if resize mode is set to RESIZE_IMMEDIATELY or RESIZE_DELAYED<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>resizeValidationDelay</CODE> - the delay before a real resize would occur.<DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/exp/swing/JCanvas3D.html#RESIZE_IMMEDIATELY"><CODE>RESIZE_IMMEDIATELY</CODE></A>, <A HREF="../../../../../com/sun/j3d/exp/swing/JCanvas3D.html#RESIZE_DELAYED"><CODE>RESIZE_DELAYED</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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="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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sun/j3d/exp/swing/JCanvas3D.html" target="_top"><B>FRAMES</B></A> <A HREF="JCanvas3D.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -