summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--java/awt/image/AffineTransformOp.java2
-rw-r--r--java/awt/print/Printable.java84
3 files changed, 46 insertions, 48 deletions
diff --git a/ChangeLog b/ChangeLog
index c841b6137..e2894b08d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2004-10-01 Michael Koch <konqueror@gmx.de>
+ * java/awt/image/AffineTransformOp.java
+ (TYPE_BILINEAR): Initialize with 2.
+ * java/awt/print/Printable.java: Jalopied.
+ (PAGE_EXISTS): Initialize with 0;
+ (NO_SUCH_PAGE): Initialized with 1.
+
+2004-10-01 Michael Koch <konqueror@gmx.de>
+
* java/io/DataInputStream.java
(readFully): Throw IndexOutOfBoundsException if len is negative.
diff --git a/java/awt/image/AffineTransformOp.java b/java/awt/image/AffineTransformOp.java
index 45a896b31..06b385ff5 100644
--- a/java/awt/image/AffineTransformOp.java
+++ b/java/awt/image/AffineTransformOp.java
@@ -54,8 +54,8 @@ import java.awt.geom.Rectangle2D;
public class AffineTransformOp implements BufferedImageOp, RasterOp
{
- public static final int TYPE_BILINEAR = 0;
public static final int TYPE_NEAREST_NEIGHBOR = 1;
+ public static final int TYPE_BILINEAR = 2;
private AffineTransform transform;
private RenderingHints hints;
diff --git a/java/awt/print/Printable.java b/java/awt/print/Printable.java
index fecc01a9d..3e63211ef 100644
--- a/java/awt/print/Printable.java
+++ b/java/awt/print/Printable.java
@@ -1,5 +1,5 @@
/* Printable.java -- Renders a page to the print device
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -35,56 +35,46 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
-
package java.awt.print;
import java.awt.Graphics;
+
/**
- * This interface provides a mechanism for the actual printing of pages to the
- * printer. The object implementing this interface performs the page
- * rendering.
- *
- * @author Aaron M. Renn (arenn@urbanophile.com)
- */
+ * This interface provides a mechanism for the actual printing of pages to the
+ * printer. The object implementing this interface performs the page
+ * rendering.
+ *
+ * @author Aaron M. Renn (arenn@urbanophile.com)
+ */
public interface Printable
{
-
-/*
- * Static Variables
- */
-
-/**
- * This value is returned by the <code>print()</code> method to indicate
- * that the requested page number does not exist.
- */
-int NO_SUCH_PAGE = 0;
-
-/**
- * This value is returned by the <code>print()</code> method to indicate
- * that the requested page exists and has been printed.
- */
-int PAGE_EXISTS = 1;
-
-/*************************************************************************/
-
-/**
- * This method prints the specified page to the specified graphics
- * context in the specified format. The pages are numbered starting
- * from zero.
- *
- * @param graphics The graphics context to render the pages on.
- * @param format The format in which to print the page.
- * @param page_number The page number to print, where numbers start at zero.
- *
- * @return <code>PAGE_EXISTS</code> if the requested page exists and was
- * successfully printed, <code>NO_SUCH_PAGE</code> otherwise.
- *
- * @exception PrinterException If an error occurs during printing.
- */
-int
-print(Graphics graphics, PageFormat format, int page_number)
- throws PrinterException;
-
-} // interface Printable
-
+ /**
+ * This value is returned by the <code>print()</code> method to indicate
+ * that the requested page exists and has been printed.
+ */
+ int PAGE_EXISTS = 0;
+
+ /**
+ * This value is returned by the <code>print()</code> method to indicate
+ * that the requested page number does not exist.
+ */
+ int NO_SUCH_PAGE = 1;
+
+ /**
+ * This method prints the specified page to the specified graphics
+ * context in the specified format. The pages are numbered starting
+ * from zero.
+ *
+ * @param graphics The graphics context to render the pages on.
+ * @param format The format in which to print the page.
+ * @param page_number The page number to print, where numbers start at zero.
+ *
+ * @return <code>PAGE_EXISTS</code> if the requested page exists and was
+ * successfully printed, <code>NO_SUCH_PAGE</code> otherwise.
+ *
+ * @exception PrinterException If an error occurs during printing.
+ */
+ int print(Graphics graphics, PageFormat format, int page_number)
+ throws PrinterException;
+}