rendercontext.html
来自「API資料大全」· HTML 代码 · 共 570 行 · 第 1/2 页
HTML
570 行
<DL><DD>Constructs a RenderContext with a given transform. The area of interest is taken to be the entire renderable area. No rendering hints are used.<DD><DL><DT><B>Parameters:</B><DD><CODE>usr2dev</CODE> - an AffineTransform.</DL></DD></DL><HR><A NAME="RenderContext(java.awt.geom.AffineTransform, java.awt.RenderingHints)"><!-- --></A><H3>RenderContext</H3><PRE>public <B>RenderContext</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> usr2dev, <A HREF="../../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</PRE><DL><DD>Constructs a RenderContext with a given transform and rendering hints. The area of interest is taken to be the entire renderable area.<DD><DL><DT><B>Parameters:</B><DD><CODE>usr2dev</CODE> - an AffineTransform.<DD><CODE>hints</CODE> - a RenderingHints object containing rendering hints.</DL></DD></DL><HR><A NAME="RenderContext(java.awt.geom.AffineTransform, java.awt.Shape)"><!-- --></A><H3>RenderContext</H3><PRE>public <B>RenderContext</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> usr2dev, <A HREF="../../../../java/awt/Shape.html">Shape</A> aoi)</PRE><DL><DD>Constructs a RenderContext with a given transform and area of interest. The area of interest is supplied as a Shape. No rendering hints are used.<DD><DL><DT><B>Parameters:</B><DD><CODE>usr2dev</CODE> - an AffineTransform.<DD><CODE>aoi</CODE> - a Shape representing the area of interest.</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="getRenderingHints()"><!-- --></A><H3>getRenderingHints</H3><PRE>public <A HREF="../../../../java/awt/RenderingHints.html">RenderingHints</A> <B>getRenderingHints</B>()</PRE><DL><DD>Gets the rendering hints of this <code>RenderContext</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>RenderingHints</code> object that represents the rendering hints of this <code>RenderContext</code>.</DL></DD></DL><HR><A NAME="setRenderingHints(java.awt.RenderingHints)"><!-- --></A><H3>setRenderingHints</H3><PRE>public void <B>setRenderingHints</B>(<A HREF="../../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</PRE><DL><DD>Sets the rendering hints of this <code>RenderContext</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hints</CODE> - a <code>RenderingHints</code> object that represents the rendering hints to assign to this <code>RenderContext</code>.</DL></DD></DL><HR><A NAME="setTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>setTransform</H3><PRE>public void <B>setTransform</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> newTransform)</PRE><DL><DD>Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newTransform</CODE> - the new AffineTransform.</DL></DD></DL><HR><A NAME="preConcatenateTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>preConcatenateTransform</H3><PRE>public void <B>preConcatenateTransform</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> modTransform)</PRE><DL><DD>Modifies the current user-to-device transform by prepending another transform. In matrix notation the operation is: <pre> [this] = [modTransform] x [this] </pre><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>modTransform</CODE> - the AffineTransform to prepend to the current usr2dev transform.</DL></DD></DL><HR><A NAME="preConcetenateTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>preConcetenateTransform</H3><PRE>public void <B>preConcetenateTransform</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> modTransform)</PRE><DL><DD><B>Deprecated.</B> <I>replaced by <code>preConcatenateTransform(AffineTransform)</code>.</I><P><DD>Modifies the current user-to-device transform by prepending another transform. In matrix notation the operation is: <pre> [this] = [modTransform] x [this] </pre> This method does the same thing as the preConcatenateTransform method. It is here for backward compatibility with previous releases which misspelled the method name.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>modTransform</CODE> - the AffineTransform to prepend to the current usr2dev transform.</DL></DD></DL><HR><A NAME="concatenateTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>concatenateTransform</H3><PRE>public void <B>concatenateTransform</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> modTransform)</PRE><DL><DD>Modifies the current user-to-device transform by appending another transform. In matrix notation the operation is: <pre> [this] = [this] x [modTransform] </pre><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>modTransform</CODE> - the AffineTransform to append to the current usr2dev transform.</DL></DD></DL><HR><A NAME="concetenateTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>concetenateTransform</H3><PRE>public void <B>concetenateTransform</B>(<A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> modTransform)</PRE><DL><DD><B>Deprecated.</B> <I>replaced by <code>concatenateTransform(AffineTransform)</code>.</I><P><DD>Modifies the current user-to-device transform by appending another transform. In matrix notation the operation is: <pre> [this] = [this] x [modTransform] </pre> This method does the same thing as the concatenateTransform method. It is here for backward compatibility with previous releases which misspelled the method name.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>modTransform</CODE> - the AffineTransform to append to the current usr2dev transform.</DL></DD></DL><HR><A NAME="getTransform()"><!-- --></A><H3>getTransform</H3><PRE>public <A HREF="../../../../java/awt/geom/AffineTransform.html">AffineTransform</A> <B>getTransform</B>()</PRE><DL><DD>Gets the current user-to-device AffineTransform.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a reference to the current AffineTransform.</DL></DD></DL><HR><A NAME="setAreaOfInterest(java.awt.Shape)"><!-- --></A><H3>setAreaOfInterest</H3><PRE>public void <B>setAreaOfInterest</B>(<A HREF="../../../../java/awt/Shape.html">Shape</A> newAoi)</PRE><DL><DD>Sets the current area of interest. The old area is discarded.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newAoi</CODE> - The new area of interest.</DL></DD></DL><HR><A NAME="getAreaOfInterest()"><!-- --></A><H3>getAreaOfInterest</H3><PRE>public <A HREF="../../../../java/awt/Shape.html">Shape</A> <B>getAreaOfInterest</B>()</PRE><DL><DD>Gets the ares of interest currently contained in the RenderContext.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a reference to the area of interest of the RenderContext, or null if none is specified.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Makes a copy of a RenderContext. The area of interest is copied by reference. The usr2dev AffineTransform and hints are cloned, while the area of interest is copied by reference.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the new cloned RenderContext.</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> </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/RenderContext.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../java/awt/image/renderable/RenderableImageProducer.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="RenderContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== 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 + -
显示快捷键?