summaryrefslogtreecommitdiff
path: root/gnu/java/awt/java2d/RasterGraphics.java
diff options
context:
space:
mode:
authorMario Torre <neugens@limasoftware.net>2008-05-29 16:41:39 +0000
committerMario Torre <neugens@limasoftware.net>2008-05-29 16:41:39 +0000
commitc191297d1febe4e68c77215726c451c095d9c954 (patch)
treee8c9585dd1ab0ad6353c50e9d4a7f08f7075fa5b /gnu/java/awt/java2d/RasterGraphics.java
parent1a8cbdd821fd0bcd92cd104abc091ababd777973 (diff)
downloadclasspath-c191297d1febe4e68c77215726c451c095d9c954.tar.gz
2008-05-29 Mario Torre <neugens@aicas.com>
* gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): now set directly the foreground color the application wants to use to draw. On null, behave like OpenJDK, drawing black. (renderScanline): fixed NPE, paintContext never initialized. Correctely retrieve destination raster (getColor): Return the correct type. (static initializer): HashMap now typed. (background): now defaults to black and not null. (getPaintContext): new method. Initialize lazily the PaintContext. (foreground): new field. (isForegroundColorNull): likewise. (getDeviceBounds): made abstract. * gnu/java/awt/java2d/RasterGraphics.java (getDeviceBounds): new method. * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): pass correct value of Y to doScanline. * gnu/java/awt/peer/x/GLGraphics.java (getDeviceBounds): new method. (setBackground): synch with new Escher 2.0 API. * gnu/java/awt/peer/x/XGraphicsConfiguration.java (getDefaultTransform): implemented. (getBounds): new method. * java/awt/AlphaComposite.java (derive(int) and derive(float)): new methods. * java/awt/image/WritableRaster.java (createWritableTranslatedChild): now call createWritableChild. (createWritableChild): reformatted.
Diffstat (limited to 'gnu/java/awt/java2d/RasterGraphics.java')
-rw-r--r--gnu/java/awt/java2d/RasterGraphics.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/java/awt/java2d/RasterGraphics.java b/gnu/java/awt/java2d/RasterGraphics.java
index 98d47b406..013782204 100644
--- a/gnu/java/awt/java2d/RasterGraphics.java
+++ b/gnu/java/awt/java2d/RasterGraphics.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package gnu.java.awt.java2d;
import java.awt.GraphicsConfiguration;
+import java.awt.Rectangle;
import java.awt.image.ColorModel;
import java.awt.image.WritableRaster;
@@ -100,4 +101,9 @@ public class RasterGraphics
return null;
}
+ @Override
+ protected Rectangle getDeviceBounds()
+ {
+ return this.raster.getBounds();
+ }
}