book.html
来自「API資料大全」· HTML 代码 · 共 381 行 · 第 1/2 页
HTML
381 行
<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="Book()"><!-- --></A><H3>Book</H3><PRE>public <B>Book</B>()</PRE><DL><DD>Creates a new, empty <code>Book</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="getNumberOfPages()"><!-- --></A><H3>getNumberOfPages</H3><PRE>public int <B>getNumberOfPages</B>()</PRE><DL><DD>Returns the number of pages in this <code>Book</code>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/print/Pageable.html#getNumberOfPages()">getNumberOfPages</A></CODE> in interface <CODE><A HREF="../../../java/awt/print/Pageable.html">Pageable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of pages this <code>Book</code> contains.</DL></DD></DL><HR><A NAME="getPageFormat(int)"><!-- --></A><H3>getPageFormat</H3><PRE>public <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A> <B>getPageFormat</B>(int pageIndex) throws <A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></PRE><DL><DD>Returns the <A HREF="../../../java/awt/print/PageFormat.html"><CODE>PageFormat</CODE></A> of the page specified by <code>pageIndex</code>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/print/Pageable.html#getPageFormat(int)">getPageFormat</A></CODE> in interface <CODE><A HREF="../../../java/awt/print/Pageable.html">Pageable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - the zero based index of the page whose <code>PageFormat</code> is being requested<DT><B>Returns:</B><DD>the <code>PageFormat</code> describing the size and orientation of the page.<DT><B>Throws:</B><DD><CODE><code>IndexOutOfBoundsException</code></CODE> - The <code>Pageable</code> does not contain the requested page</DL></DD></DL><HR><A NAME="getPrintable(int)"><!-- --></A><H3>getPrintable</H3><PRE>public <A HREF="../../../java/awt/print/Printable.html">Printable</A> <B>getPrintable</B>(int pageIndex) throws <A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></PRE><DL><DD>Returns the <A HREF="../../../java/awt/print/Printable.html"><CODE>Printable</CODE></A> instance responsible for rendering the page specified by <code>pageIndex</code>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/print/Pageable.html#getPrintable(int)">getPrintable</A></CODE> in interface <CODE><A HREF="../../../java/awt/print/Pageable.html">Pageable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - the zero based index of the page whose <code>Printable</code> is being requested<DT><B>Returns:</B><DD>the <code>Printable</code> that renders the page.<DT><B>Throws:</B><DD><CODE><code>IndexOutOfBoundsException</code></CODE> - the <code>Pageable</code> does not contain the requested page.</DL></DD></DL><HR><A NAME="setPage(int, java.awt.print.Printable, java.awt.print.PageFormat)"><!-- --></A><H3>setPage</H3><PRE>public void <B>setPage</B>(int pageIndex, <A HREF="../../../java/awt/print/Printable.html">Printable</A> painter, <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A> page) throws <A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></PRE><DL><DD>Sets the <code>PageFormat</code> and the <code>Painter</code> for a specified page number.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - the zero based index of the page whose painter and format is altered<DD><CODE>painter</CODE> - the <code>Printable</code> instance that renders the page<DD><CODE>page</CODE> - the size and orientation of the page<DT><B>Throws:</B><DD><CODE><code>IndexOutOfBoundsException</code></CODE> - If the specified page is not already in this <code>Book</code><DD><CODE><code>NullPointerException</code></CODE> - If the <code>painter</code> or <code>page</code> argument is <code>null</code></DL></DD></DL><HR><A NAME="append(java.awt.print.Printable, java.awt.print.PageFormat)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(<A HREF="../../../java/awt/print/Printable.html">Printable</A> painter, <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A> page)</PRE><DL><DD>Appends a single page to the end of this <code>Book</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>painter</CODE> - the <code>Printable</code> instance that renders the page<DD><CODE>page</CODE> - the size and orientation of the page<DT><B>Throws:</B><DD><CODE><code>NullPointerException</code></CODE> - If the <code>painter</code> or <code>page</code> argument is <code>null</code></DL></DD></DL><HR><A NAME="append(java.awt.print.Printable, java.awt.print.PageFormat, int)"><!-- --></A><H3>append</H3><PRE>public void <B>append</B>(<A HREF="../../../java/awt/print/Printable.html">Printable</A> painter, <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A> page, int numPages)</PRE><DL><DD>Appends <code>numPages</code> pages to the end of this <code>Book</code>. Each of the pages is associated with <code>page</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>painter</CODE> - the <code>Printable</code> instance that renders the page<DD><CODE>page</CODE> - the size and orientation of the page<DD><CODE>numPages</CODE> - the number of pages to be added to the this <code>Book</code>.<DT><B>Throws:</B><DD><CODE><code>NullPointerException</code></CODE> - If the <code>painter</code> or <code>page</code> argument is <code>null</code></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/Book.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"> PREV CLASS <A HREF="../../../java/awt/print/PageFormat.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="Book.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 + -
显示快捷键?