nativegraphics.html
来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 311 行
HTML
311 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:50:47 PDT 2002 --><TITLE>: Class NativeGraphics</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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/NativeGraphics.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-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="../../quicktime/qd/GDevice.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/OpenCPicParams.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="NativeGraphics.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.qd</FONT><BR>Class NativeGraphics</H2><PRE>java.lang.Object | +--<B>quicktime.qd.NativeGraphics</B></PRE><HR><DL><DT>public abstract class <B>NativeGraphics</B><DT>extends java.lang.Object</DL><P>You use this class to obtain a QDGraphics object from a Java object known to host a native graphics context. Currently known java objects are java.awt.Components<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#getContext(java.awt.Canvas)">getContext</A></B>(java.awt.Canvas canv)</CODE><BR> This method is called by the Canvas to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform that we are currently running on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#getContext(java.awt.Component)">getContext</A></B>(java.awt.Component canv)</CODE><BR> This method is called by the Canvas to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform that we are currently running on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#getContext(java.lang.Object)">getContext</A></B>(java.lang.Object canv)</CODE><BR> This method is called by a Java container object to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform and Java environment that we are currently running on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#getGWorld()">getGWorld</A></B>()</CODE><BR> This returns the QDGraphics that represents the native drawing surface that you get from java.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Point</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#getLocation()">getLocation</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#lock()">lock</A></B>()</CODE><BR> This will lock the native drawing surface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/NativeGraphics.html#unlock()">unlock</A></B>()</CODE><BR> This will unlock the native drawing surface.</TD></TR></TABLE> <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.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getContext(java.awt.Canvas)"><!-- --></A><H3>getContext</H3><PRE>public static final <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A> <B>getContext</B>(java.awt.Canvas canv) throws <A HREF="../../quicktime/qd/NativeGraphicsException.html">NativeGraphicsException</A>, <A HREF="../../quicktime/QTUnknownOSException.html">QTUnknownOSException</A></PRE><DL><DD>This method is called by the Canvas to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform that we are currently running on.<DD><DL><DT><B>Returns:</B><DD>the platform specific implementation of the NativeGrapics class</DL></DD></DL><HR><A NAME="getContext(java.awt.Component)"><!-- --></A><H3>getContext</H3><PRE>public static final <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A> <B>getContext</B>(java.awt.Component canv) throws <A HREF="../../quicktime/qd/NativeGraphicsException.html">NativeGraphicsException</A>, <A HREF="../../quicktime/QTUnknownOSException.html">QTUnknownOSException</A></PRE><DL><DD>This method is called by the Canvas to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform that we are currently running on.<DD><DL><DT><B>Returns:</B><DD>the platform specific implementation of the NativeGrapics class</DL></DD></DL><HR><A NAME="getContext(java.lang.Object)"><!-- --></A><H3>getContext</H3><PRE>public static final <A HREF="../../quicktime/qd/NativeGraphics.html">NativeGraphics</A> <B>getContext</B>(java.lang.Object canv) throws <A HREF="../../quicktime/qd/NativeGraphicsException.html">NativeGraphicsException</A>, <A HREF="../../quicktime/QTUnknownOSException.html">QTUnknownOSException</A></PRE><DL><DD>This method is called by a Java container object to get the platform specific object that will be able to return the QDGraphics that will be dependent on the particular platform and Java environment that we are currently running on.<DD><DL><DT><B>Returns:</B><DD>the platform specific implementation of the NativeGrapics class</DL></DD></DL><HR><A NAME="getGWorld()"><!-- --></A><H3>getGWorld</H3><PRE>public abstract <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getGWorld</B>() throws <A HREF="../../quicktime/qd/NativeGraphicsException.html">NativeGraphicsException</A></PRE><DL><DD>This returns the QDGraphics that represents the native drawing surface that you get from java.</DL><HR><A NAME="getLocation()"><!-- --></A><H3>getLocation</H3><PRE>public final java.awt.Point <B>getLocation</B>()</PRE><DL></DL><HR><A NAME="lock()"><!-- --></A><H3>lock</H3><PRE>public void <B>lock</B>()</PRE><DL><DD>This will lock the native drawing surface.</DL><HR><A NAME="unlock()"><!-- --></A><H3>unlock</H3><PRE>public void <B>unlock</B>()</PRE><DL><DD>This will unlock the native drawing surface.</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/NativeGraphics.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-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="../../quicktime/qd/GDevice.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/OpenCPicParams.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="NativeGraphics.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?