Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
* scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
* gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
* java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
* java/lang/Math.java: New override file.
* java/lang/Character.java: Merged from Classpath.
(start, end): Now 'int's.
(canonicalName): New field.
(CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
(UnicodeBlock): Added argument.
(of): New overload.
(forName): New method.
Updated unicode blocks.
(sets): Updated.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r111942
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Pageable.java -- Pages to be printed
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2006 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -39,75 +39,52 @@ exception statement from your version. */
|
||||
package java.awt.print;
|
||||
|
||||
/**
|
||||
* This interface represents pages that are to be printed.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
*/
|
||||
* This interface represents pages that are to be printed.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
*/
|
||||
public interface Pageable
|
||||
{
|
||||
/**
|
||||
* This constant is returned when <code>getNumberOfPages()</code> cannot
|
||||
* determine the number of pages available for printing.
|
||||
*/
|
||||
int UNKNOWN_NUMBER_OF_PAGES = - 1;
|
||||
|
||||
/*
|
||||
* Static Variables
|
||||
*/
|
||||
/**
|
||||
* This method returns the number of pages this object contains, or
|
||||
* <code>UNKNOWN_NUMBER_OF_PAGES</code> if it cannot determine the number
|
||||
* of pages to be printed.
|
||||
*
|
||||
* @return The number of pages to be printed, or
|
||||
* <code>UNKNOWN_NUMBER_OF_PAGES</code> if this is unknown.
|
||||
*/
|
||||
int getNumberOfPages();
|
||||
|
||||
/**
|
||||
* This constant is returned when <code>getNumberOfPages()</code>
|
||||
* cannot determine the number of pages available for printing.
|
||||
*/
|
||||
int UNKNOWN_NUMBER_OF_PAGES = -1;
|
||||
/**
|
||||
* This method returns the <code>PageFormat</code> instance for the
|
||||
* specified page. Page numbers start at zero. An exception is thrown if the
|
||||
* requested page does not exist.
|
||||
*
|
||||
* @param pageIndex The index of the page to return the
|
||||
* <code>PageFormat</code> for.
|
||||
* @return The <code>PageFormat</code> for the requested page.
|
||||
* @exception IndexOutOfBoundsException If the requested page number does
|
||||
* not exist.
|
||||
*/
|
||||
PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/*
|
||||
* Instance Methods
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method returns the number of pages this object contains, or
|
||||
* <code>UNKNOWN_NUMBER_OF_PAGES</code> if it cannot determine the number
|
||||
* of pages to be printed.
|
||||
*
|
||||
* @return The number of pages to be printed, or
|
||||
* <code>UNKNOWN_NUMBER_OF_PAGES</code> if this is unknown.
|
||||
*/
|
||||
int
|
||||
getNumberOfPages();
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* This method returns the <code>PageFormat</code> instance for the
|
||||
* specified page. Page numbers start at zero. An exception is thrown if
|
||||
* the requested page does not exist.
|
||||
*
|
||||
* @param pageIndex The index of the page to return the
|
||||
* <code>PageFormat</code> for.
|
||||
*
|
||||
* @return The <code>PageFormat</code> for the requested page.
|
||||
*
|
||||
* @exception IndexOutOfBoundsException If the requested page number does
|
||||
* not exist.
|
||||
*/
|
||||
PageFormat
|
||||
getPageFormat(int pageIndex) throws IndexOutOfBoundsException;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* This method returns the <code>Printable</code> instance for the
|
||||
* specified page. Page numbers start at zero. An exception is thrown if
|
||||
* the requested page does not exist.
|
||||
*
|
||||
* @param pageIndex The index of the page to return the
|
||||
* <code>Printable</code> for.
|
||||
*
|
||||
* @return The <code>Printable</code> for the requested page.
|
||||
*
|
||||
* @exception IndexOutOfBoundsException If the requested page number does
|
||||
* not exist.
|
||||
*/
|
||||
Printable
|
||||
getPrintable(int pageIndex) throws IndexOutOfBoundsException;
|
||||
|
||||
} // interface Pageable
|
||||
/**
|
||||
* This method returns the <code>Printable</code> instance for the specified
|
||||
* page. Page numbers start at zero. An exception is thrown if the requested
|
||||
* page does not exist.
|
||||
*
|
||||
* @param pageIndex The index of the page to return the
|
||||
* <code>Printable</code> for.
|
||||
* @return The <code>Printable</code> for the requested page.
|
||||
* @exception IndexOutOfBoundsException If the requested page number does
|
||||
* not exist.
|
||||
*/
|
||||
Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user