pageformat.html

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

HTML
590
字号
<A NAME="REVERSE_LANDSCAPE"><!-- --></A><H3>REVERSE_LANDSCAPE</H3><PRE>public static final int <B>REVERSE_LANDSCAPE</B></PRE><DL><DD>The origin is at the top right of the paper with x  running top to bottom and y running right to left.  Note that this is the Macintosh landscape.</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="PageFormat()"><!-- --></A><H3>PageFormat</H3><PRE>public <B>PageFormat</B>()</PRE><DL><DD>Creates a default, portrait-oriented <code>PageFormat</code>.</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>Makes a copy of this <code>PageFormat</code> with the same contents as this <code>PageFormat</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>PageFormat</code>.</DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public double <B>getWidth</B>()</PRE><DL><DD>Returns the width, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the width.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the page.</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public double <B>getHeight</B>()</PRE><DL><DD>Returns the height, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the height.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the page.</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 point of the imageable area of the <code>Paper</code> object  associated with this <code>PageFormat</code>.  This method takes into account the orientation of the page.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coordinate of the upper left point of the imageable area of the <code>Paper</code> object associated with this <code>PageFormat</code>.</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 point of the imageable area of the <code>Paper</code> object associated with this <code>PageFormat</code>. This method takes into account the orientation of the page.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the upper left point of the imageable area of the <code>Paper</code> object     associated with this <code>PageFormat</code>.</DL></DD></DL><HR><A NAME="getImageableWidth()"><!-- --></A><H3>getImageableWidth</H3><PRE>public double <B>getImageableWidth</B>()</PRE><DL><DD>Returns the width, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the page.</DL></DD></DL><HR><A NAME="getImageableHeight()"><!-- --></A><H3>getImageableHeight</H3><PRE>public double <B>getImageableHeight</B>()</PRE><DL><DD>Return the height, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the page.</DL></DD></DL><HR><A NAME="getPaper()"><!-- --></A><H3>getPaper</H3><PRE>public <A HREF="../../../java/awt/print/Paper.html">Paper</A> <B>getPaper</B>()</PRE><DL><DD>Returns a copy of the <A HREF="../../../java/awt/print/Paper.html"><CODE>Paper</CODE></A> object associated with this <code>PageFormat</code>.  Changes made to the <code>Paper</code> object returned from this method do not affect the <code>Paper</code> object of this  <code>PageFormat</code>.  To update the <code>Paper</code> object of this <code>PageFormat</code>, create a new <code>Paper</code> object and set it into this  <code>PageFormat</code> by using the <A HREF="../../../java/awt/print/PageFormat.html#setPaper(java.awt.print.Paper)"><CODE>setPaper(Paper)</CODE></A>  method.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a copy of the <code>Paper</code> object associated		with this <code>PageFormat</code>.</DL></DD></DL><HR><A NAME="setPaper(java.awt.print.Paper)"><!-- --></A><H3>setPaper</H3><PRE>public void <B>setPaper</B>(<A HREF="../../../java/awt/print/Paper.html">Paper</A>&nbsp;paper)</PRE><DL><DD>Sets the <code>Paper</code> object for this  <code>PageFormat</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paper</CODE> - the <code>Paper</code> object to which to set the <code>Paper</code> object for this <code>PageFormat</code>.<DT><B>Throws:</B><DD><CODE><code>NullPointerException</code></CODE> - a null paper instance was passed as a parameter.</DL></DD></DL><HR><A NAME="setOrientation(int)"><!-- --></A><H3>setOrientation</H3><PRE>public void <B>setOrientation</B>(int&nbsp;orientation)                    throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></PRE><DL><DD>Sets the page orientation. <code>orientation</code> must be one of the constants: PORTRAIT, LANDSCAPE, or REVERSE_LANDSCAPE.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>orientation</CODE> - the new orientation for the page<DT><B>Throws:</B><DD><CODE><code>IllegalArgumentException</code></CODE> - an unknown orientation was requested</DL></DD></DL><HR><A NAME="getOrientation()"><!-- --></A><H3>getOrientation</H3><PRE>public int <B>getOrientation</B>()</PRE><DL><DD>Returns the orientation of this <code>PageFormat</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>this <code>PageFormat</code> object's orientation.</DL></DD></DL><HR><A NAME="getMatrix()"><!-- --></A><H3>getMatrix</H3><PRE>public double[] <B>getMatrix</B>()</PRE><DL><DD>Returns a transformation matrix that translates user space rendering to the requested orientation of the page.  The values are placed into the array as {&nbsp;m00,&nbsp;m10,&nbsp;m01,&nbsp;m11,&nbsp;m02,&nbsp;m12} in the form required by the <A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</CODE></A> constructor.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the matrix used to translate user space rendering to the orientation of the page.<DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</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/PageFormat.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/print/Book.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/print/Paper.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="PageFormat.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 + -
显示快捷键?