paper.html
来自「API資料大全」· HTML 代码 · 共 444 行 · 第 1/2 页
HTML
444 行
<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="Paper()"><!-- --></A><H3>Paper</H3><PRE>public <B>Paper</B>()</PRE><DL><DD>Creates a letter sized piece of paper with one inch margins.</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="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Creates a copy of this <code>Paper</code> with the same contents as this <code>Paper</code>.<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>a copy of this <code>Paper</code>.</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public double <B>getHeight</B>()</PRE><DL><DD>Returns the height of the page in 1/72nds of an inch.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the page described by this <code>Paper</code>.</DL></DD></DL><HR><A NAME="setSize(double, double)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(double width, double height)</PRE><DL><DD>Sets the width and height of this <code>Paper</code> object, which represents the properties of the page onto which printing occurs. The dimensions are supplied in 1/72nds of an inch.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the value to which to set this <code>Paper</code> object's width<DD><CODE>height</CODE> - the value to which to set this <code>Paper</code> object's height</DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public double <B>getWidth</B>()</PRE><DL><DD>Returns the width of the page in 1/72nds of an inch.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the page described by this <code>Paper</code>.</DL></DD></DL><HR><A NAME="setImageableArea(double, double, double, double)"><!-- --></A><H3>setImageableArea</H3><PRE>public void <B>setImageableArea</B>(double x, double y, double width, double height)</PRE><DL><DD>Sets the imageable area of this <code>Paper</code>. The imageable area is the area on the page in which printing occurs.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x, y</CODE> - the coordinates to which to set the upper-left corner of the imageable area of this <code>Paper</code><DD><CODE>width</CODE> - the value to which to set the width of the imageable area of this <code>Paper</code><DD><CODE>height</CODE> - the value to which to set the height of the imageable area of this <code>Paper</code></DL></DD></DL><HR><A NAME="getImageableX()"><!-- --></A><H3>getImageableX</H3><PRE>public double <B>getImageableX</B>()</PRE><DL><DD>Returns the x coordinate of the upper-left corner of this <code>Paper</code> object's imageable area.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coordinate of the imageable area.</DL></DD></DL><HR><A NAME="getImageableY()"><!-- --></A><H3>getImageableY</H3><PRE>public double <B>getImageableY</B>()</PRE><DL><DD>Returns the y coordinate of the upper-left corner of this <code>Paper</code> object's imageable area.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the imageable area.</DL></DD></DL><HR><A NAME="getImageableWidth()"><!-- --></A><H3>getImageableWidth</H3><PRE>public double <B>getImageableWidth</B>()</PRE><DL><DD>Returns the width of this <code>Paper</code> object's imageable area.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the imageable area.</DL></DD></DL><HR><A NAME="getImageableHeight()"><!-- --></A><H3>getImageableHeight</H3><PRE>public double <B>getImageableHeight</B>()</PRE><DL><DD>Returns the height of this <code>Paper</code> object's imageable area.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the imageable area.</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/Paper.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/print/PageFormat.html"><B>PREV CLASS</B></A> <A HREF="../../../java/awt/print/PrinterJob.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="Paper.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 + -
显示快捷键?