📄 viewer.html
字号:
<HR><A NAME="getCanvas3D()"><!-- --></A><H3>getCanvas3D</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> <B>getCanvas3D</B>()</PRE><DL><DD>Returns the 0th Canvas3D object associated with this Viewer object<P><DD><DL><DT><B>Returns:</B><DD>a reference to the 0th Canvas3D object associated with this Viewer object<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getCanvas3D(int)"><!-- --></A><H3>getCanvas3D</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> <B>getCanvas3D</B>(int canvasNum)</PRE><DL><DD>Returns the Canvas3D object at the specified index associated with this Viewer object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>canvasNum</CODE> - the index of the Canvas3D object to retrieve; if there is no Canvas3D object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to a Canvas3D object associated with this Viewer object<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getCanvas3Ds()"><!-- --></A><H3>getCanvas3Ds</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A>[] <B>getCanvas3Ds</B>()</PRE><DL><DD>Returns all the Canvas3D objects associated with this Viewer object.<P><DD><DL><DT><B>Returns:</B><DD>an array of references to the Canvas3D objects associated with this Viewer object<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getCanvases()"><!-- --></A><H3>getCanvases</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html" title="class in javax.media.j3d">Canvas3D</A> <B>getCanvases</B>()</PRE><DL><DD><B>Deprecated.</B> <I>superceded by getCanvas3D()</I><P><DD>Returns the canvas associated with this Viewer object.<P><DD><DL></DL></DD></DL><HR><A NAME="getFrame()"><!-- --></A><H3>getFrame</H3><PRE>public java.awt.Frame <B>getFrame</B>()</PRE><DL><DD><B>Deprecated.</B> <I>AWT Frame components are no longer created by the Viewer class.</I><P><DD>This method is no longer supported since Java 3D 1.3.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.UnsupportedOperationException</CODE> - if called.</DL></DD></DL><HR><A NAME="getJFrame(int)"><!-- --></A><H3>getJFrame</H3><PRE>public javax.swing.JFrame <B>getJFrame</B>(int frameNum)</PRE><DL><DD>Returns the JFrame object created by this Viewer object at the specified index. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object, a JPanel containing the Canvas3D object, and a JFrame to place the JPanel in. <p> NOTE: When running under JDK 1.4 or newer, the JFrame always directly contains the JPanel which contains the Canvas3D. When running under JDK 1.3.1 and creating a borderless full screen through a configuration file, the JFrame will instead contain a JWindow which will contain the JPanel and Canvas3D. <p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>frameNum</CODE> - the index of the JFrame object to retrieve; if there is no JFrame object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to JFrame object created by this Viewer object<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getJFrames()"><!-- --></A><H3>getJFrames</H3><PRE>public javax.swing.JFrame[] <B>getJFrames</B>()</PRE><DL><DD>Returns all the JFrames created by this Viewer object. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object, a JPanel containing the Canvas3D object, and a JFrame to place the JPanel in.<p> NOTE: When running under JDK 1.4 or newer, the JFrame always directly contains the JPanel which contains the Canvas3D. When running under JDK 1.3.1 and creating a borderless full screen through a configuration file, the JFrame will instead contain a JWindow which will contain the JPanel and Canvas3D.<p><P><DD><DL><DT><B>Returns:</B><DD>an array of references to the JFrame objects created by this Viewer object, or null if no JFrame objects were created<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getPanel()"><!-- --></A><H3>getPanel</H3><PRE>public java.awt.Panel <B>getPanel</B>()</PRE><DL><DD><B>Deprecated.</B> <I>AWT Panel components are no longer created by the Viewer class.</I><P><DD>This method is no longer supported since Java 3D 1.3.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.UnsupportedOperationException</CODE> - if called.</DL></DD></DL><HR><A NAME="getJPanel(int)"><!-- --></A><H3>getJPanel</H3><PRE>public javax.swing.JPanel <B>getJPanel</B>(int panelNum)</PRE><DL><DD>Returns the JPanel object created by this Viewer object at the specified index. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object and a JPanel into which to place the Canvas3D object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>panelNum</CODE> - the index of the JPanel object to retrieve; if there is no JPanel object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to a JPanel object created by this Viewer object<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="getJPanels()"><!-- --></A><H3>getJPanels</H3><PRE>public javax.swing.JPanel[] <B>getJPanels</B>()</PRE><DL><DD>Returns all the JPanel objects created by this Viewer object. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object and a JPanel into which to place the Canvas3D object.<P><DD><DL><DT><B>Returns:</B><DD>an array of references to the JPanel objects created by this Viewer object, or null or no JPanel objects were created<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DD></DL><HR><A NAME="createAudioDevice()"><!-- --></A><H3>createAudioDevice</H3><PRE>public <A HREF="../../../../../javax/media/j3d/AudioDevice.html" title="interface in javax.media.j3d">AudioDevice</A> <B>createAudioDevice</B>()</PRE><DL><DD>Used to create and initialize a default AudioDevice3D used for sound rendering.<P><DD><DL><DT><B>Returns:</B><DD>reference to created AudioDevice, or null if error occurs.</DL></DD></DL><HR><A NAME="getUniverse()"><!-- --></A><H3>getUniverse</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe">SimpleUniverse</A> <B>getUniverse</B>()</PRE><DL><DD>Returns the Universe to which this Viewer is attached<P><DD><DL><DT><B>Returns:</B><DD>the Universe to which this Viewer is attached<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></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"> <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/j3d/utils/universe/ViewerAvatar.html" title="class in com.sun.j3d.utils.universe"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sun/j3d/utils/universe/Viewer.html" target="_top"><B>FRAMES</B></A> <A HREF="Viewer.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: NESTED | 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><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 + -