graphicsdevice.html

来自「API資料大全」· HTML 代码 · 共 414 行 · 第 1/2 页

HTML
414
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the identification string associated with this  <code>GraphicsDevice</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/GraphicsDevice.html#getType()">getType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the type of this <code>GraphicsDevice</code>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="TYPE_RASTER_SCREEN"><!-- --></A><H3>TYPE_RASTER_SCREEN</H3><PRE>public static final int <B>TYPE_RASTER_SCREEN</B></PRE><DL><DD>Device is a raster screen.</DL><HR><A NAME="TYPE_PRINTER"><!-- --></A><H3>TYPE_PRINTER</H3><PRE>public static final int <B>TYPE_PRINTER</B></PRE><DL><DD>Device is a printer.</DL><HR><A NAME="TYPE_IMAGE_BUFFER"><!-- --></A><H3>TYPE_IMAGE_BUFFER</H3><PRE>public static final int <B>TYPE_IMAGE_BUFFER</B></PRE><DL><DD>Device is an image buffer.  This buffer can reside in device or system memory but it is not physically viewable by the user.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="GraphicsDevice()"><!-- --></A><H3>GraphicsDevice</H3><PRE>protected <B>GraphicsDevice</B>()</PRE><DL><DD>This is an abstract class that cannot be instantiated directly. Instances must be obtained from a suitable factory or query method.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/awt/GraphicsEnvironment.html#getScreenDevices()"><CODE>GraphicsEnvironment.getScreenDevices()</CODE></A>, <A HREF="../../java/awt/GraphicsEnvironment.html#getDefaultScreenDevice()"><CODE>GraphicsEnvironment.getDefaultScreenDevice()</CODE></A>, <A HREF="../../java/awt/GraphicsConfiguration.html#getDevice()"><CODE>GraphicsConfiguration.getDevice()</CODE></A></DL></DD></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="getType()"><!-- --></A><H3>getType</H3><PRE>public abstract int <B>getType</B>()</PRE><DL><DD>Returns the type of this <code>GraphicsDevice</code>.<DD><DL><DT><B>Returns:</B><DD>the type of this <code>GraphicsDevice</code>, which can either be TYPE_RASTER_SCREEN, TYPE_PRINTER or TYPE_IMAGE_BUFFER.<DT><B>See Also: </B><DD><A HREF="../../java/awt/GraphicsDevice.html#TYPE_RASTER_SCREEN"><CODE>TYPE_RASTER_SCREEN</CODE></A>, <A HREF="../../java/awt/GraphicsDevice.html#TYPE_PRINTER"><CODE>TYPE_PRINTER</CODE></A>, <A HREF="../../java/awt/GraphicsDevice.html#TYPE_IMAGE_BUFFER"><CODE>TYPE_IMAGE_BUFFER</CODE></A></DL></DD></DL><HR><A NAME="getIDstring()"><!-- --></A><H3>getIDstring</H3><PRE>public abstract <A HREF="../../java/lang/String.html">String</A> <B>getIDstring</B>()</PRE><DL><DD>Returns the identification string associated with this  <code>GraphicsDevice</code>.<DD><DL><DT><B>Returns:</B><DD>a <code>String</code> that is the identification of this <code>GraphicsDevice</code>.</DL></DD></DL><HR><A NAME="getConfigurations()"><!-- --></A><H3>getConfigurations</H3><PRE>public abstract <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A>[] <B>getConfigurations</B>()</PRE><DL><DD>Returns all of the <code>GraphicsConfiguration</code> objects associated with this <code>GraphicsDevice</code>.<DD><DL><DT><B>Returns:</B><DD>an array of <code>GraphicsConfiguration</code> objects that are associated with this  <code>GraphicsDevice</code>.</DL></DD></DL><HR><A NAME="getDefaultConfiguration()"><!-- --></A><H3>getDefaultConfiguration</H3><PRE>public abstract <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A> <B>getDefaultConfiguration</B>()</PRE><DL><DD>Returns the default <code>GraphicsConfiguration</code> associated with this <code>GraphicsDevice</code>.<DD><DL><DT><B>Returns:</B><DD>the default <code>GraphicsConfiguration</code> of this <code>GraphicsDevice</code>.</DL></DD></DL><HR><A NAME="getBestConfiguration(java.awt.GraphicsConfigTemplate)"><!-- --></A><H3>getBestConfiguration</H3><PRE>public <A HREF="../../java/awt/GraphicsConfiguration.html">GraphicsConfiguration</A> <B>getBestConfiguration</B>(<A HREF="../../java/awt/GraphicsConfigTemplate.html">GraphicsConfigTemplate</A>&nbsp;gct)</PRE><DL><DD>Returns the "best" configuration possible that passes the criteria defined in the <A HREF="../../java/awt/GraphicsConfigTemplate.html"><CODE>GraphicsConfigTemplate</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>gct</CODE> - the <code>GraphicsConfigTemplate</code> object used to obtain a valid <code>GraphicsConfiguration</code><DT><B>Returns:</B><DD>a <code>GraphicsConfiguration</code> that passes the criteria defined in the specified <code>GraphicsConfigTemplate</code>.<DT><B>See Also: </B><DD><A HREF="../../java/awt/GraphicsConfigTemplate.html"><CODE>GraphicsConfigTemplate</CODE></A></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/GraphicsDevice.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/awt/GraphicsConfiguration.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/awt/GraphicsEnvironment.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="GraphicsDevice.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><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 + =
减小字号Ctrl + -
显示快捷键?