* This method returns the <code>PageFormat</code> object for the
* specified page.
*
- * @param page_numbers The number of the page to get information for, where
+ * @param page_number The number of the page to get information for, where
* page numbers start at 0.
*
* @return The <code>PageFormat</code> object for the specified page.
* This method returns the <code>Printable</code> object for the
* specified page.
*
- * @param page_numbers The number of the page to get information for, where
+ * @param page_number The number of the page to get information for, where
* page numbers start at 0.
*
* @return The <code>Printable</code> object for the specified page.
* @exception NullPointerException If any argument is <code>null</code>.
*/
public void
-append(Printable painter, PageFormat page_format, int num_pages)
+append(Printable printable, PageFormat page_format, int num_pages)
{
for (int i = 0; i < num_pages; i++)
{
- printables.addElement(painter);
+ printables.addElement(printable);
page_formats.addElement(page_format);
}
}
* @param printable The new <code>Printable</code> for the page.
* @param page_format The new <code>PageFormat</code> for the page.
*
- * @param IndexOutOfBoundsException If the specified page does not exist.
+ * @throws IndexOutOfBoundsException If the specified page does not exist.
*/
public void
setPage(int page_num, Printable printable, PageFormat page_format)
printables.setElementAt(printable, page_num);
page_formats.setElementAt(page_format, page_num);
}
-
-} // class Book
-
+}