⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fullscreenwindow.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 directly with the methods of this, the FullScreenWindow, class.<DD><DL><DT><B>Returns:</B><DD>a FullScreen object</DL></DD></DL><HR><A NAME="getPreferredSize()"><!-- --></A><H3>getPreferredSize</H3><PRE>public java.awt.Dimension <B>getPreferredSize</B>()</PRE><DL><DD>This returns a previously set value of the requested size of the FullScreenWindow. It may return a width and height of 0, 0 if no previous size has been requested. In this case the current display size of the screen is used when the screen is placed into full screen mode.<DD><DL><DT><B>Overrides:</B><DD><CODE>getPreferredSize</CODE> in class <CODE>java.awt.Container</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the currently requested size for full screen display</DL></DD></DL><HR><A NAME="setPreferredSize(int, int)"><!-- --></A><H3>setPreferredSize</H3><PRE>public void <B>setPreferredSize</B>(int&nbsp;width,                             int&nbsp;height)</PRE><DL><DD>The application can set the requested size of the full screen when the screen is placed into full screen mode. This method does not establish if the resolution requested is available, it will only request that size when the show method is called. To see if a requested size is available the application should get the FullScreen object from this class (getFullScreen) and call a preflightSize method. The result of the preflightSize method tells you the closest size that the desired screen can be placed in from your requested size.<DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the requested width or 0 to leave the screen at its current resolution when full screen mode is activated with the show method.<DD><CODE>height</CODE> - the requested height or 0 to leave the screen at its current resolution when full screen mode is activated with the show method.</DL></DD></DL><HR><A NAME="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public int <B>getFlags</B>()</PRE><DL><DD>Returns the flags that will be used when the screen is placed in full screen mode with the show method.<DD><DL><DT><B>Returns:</B><DD>the full screen flags</DL></DD></DL><HR><A NAME="setFlags(int)"><!-- --></A><H3>setFlags</H3><PRE>public void <B>setFlags</B>(int&nbsp;flags)</PRE><DL><DD>Sets the flags that will be used when the screen is placed in full screen mode with the show method.<DD><DL><DT><B>Parameters:</B><DD><CODE>flags</CODE> - the full screen flags</DL></DD></DL><HR><A NAME="setGDevice(quicktime.qd.GDevice)"><!-- --></A><H3>setGDevice</H3><PRE>public void <B>setGDevice</B>(<A HREF="../../../quicktime/qd/GDevice.html">GDevice</A>&nbsp;gDevice)</PRE><DL><DD>Sets the device that corresponds to the screen that will be placed in full screen mode with the show method.<DD><DL><DT><B>Parameters:</B><DD><CODE>gDevice</CODE> - the gDevice of a screen of null to set the main screen</DL></DD></DL><HR><A NAME="getGDevice()"><!-- --></A><H3>getGDevice</H3><PRE>public <A HREF="../../../quicktime/qd/GDevice.html">GDevice</A> <B>getGDevice</B>()</PRE><DL><DD>Returns the device that corresponds to the screen that will be placed in full screen mode with the show method.<DD><DL><DT><B>Returns:</B><DD>the gDevice of a screen of null</DL></DD></DL><HR><A NAME="show()"><!-- --></A><H3>show</H3><PRE>public void <B>show</B>()</PRE><DL><DD>This method is used to place the specified screen, at the specified resolution and flags, into full screen mode. It then resizes and positions the FullScreenWindow object so that the content region of this Window takes up the entire screen. It then shows the FullScreenWindow object. On both MacOS and Win32 there are no insets so the entire drawing surface from 0,0 to the width and height is available for display. <P> Due to the restrictions of the usage of addNotify() with this class, the pack() method is also called from this method (as is toFront). Thus the method does multiple things:<UL> <LI>Puts the screen into full screen mode <LI>Sets the size of the window to the size of the screen <LI>call pack() to layout the window. <LI>shows the window and brings it to the front </UL> It is the Applications responsibility to hide this window when done as the user has no direct way to hide the window.<DD><DL><DT><B>Overrides:</B><DD><CODE>show</CODE> in class <CODE>java.awt.Window</CODE></DL></DD></DL><HR><A NAME="hide()"><!-- --></A><H3>hide</H3><PRE>public void <B>hide</B>()</PRE><DL><DD>This method will return the specified screen to normal mode. It then hides the window.<DD><DL><DT><B>Overrides:</B><DD><CODE>hide</CODE> in class <CODE>java.awt.Window</CODE></DL></DD></DL><HR><A NAME="addNotify()"><!-- --></A><H3>addNotify</H3><PRE>public void <B>addNotify</B>()</PRE><DL><DD>The addNotify method can only be successful in this class during or after the execution of the show method. The native Java VM's have peculiarities in windows positioning which are not compatible with the requirement of the FullScreenWindow's purpose to fill the entire screen. An application should never need to call this method directly - if it is called at an inappropriate time the call will silently fail.<DD><DL><DT><B>Overrides:</B><DD><CODE>addNotify</CODE> in class <CODE>java.awt.Window</CODE></DL></DD></DL><HR><A NAME="pack()"><!-- --></A><H3>pack</H3><PRE>public void <B>pack</B>()</PRE><DL><DD>For a full screen window pack can only be called after the window has been shown. The FullScreenWindow.show call will call pack to ensure that the contained components  are laid out correctly.<DD><DL><DT><B>Overrides:</B><DD><CODE>pack</CODE> in class <CODE>java.awt.Window</CODE></DL></DD></DL><HR><A NAME="getInsets()"><!-- --></A><H3>getInsets</H3><PRE>public java.awt.Insets <B>getInsets</B>()</PRE><DL><DD>Returns insets of 0, 0, 0, 0 as a FullScreenWindow has no frame or border.<DD><DL><DT><B>Overrides:</B><DD><CODE>getInsets</CODE> in class <CODE>java.awt.Container</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the insets of this container.</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/FullScreenWindow.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/display/DirectGroup.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/display/GroupController.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="FullScreenWindow.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_classes_inherited_from_class_java.awt.Window">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></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -