aboutsummaryrefslogtreecommitdiffstats
path: root/src/java-1.4
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-08-15 09:57:07 +0000
committerJeremias Maerki <jeremias@apache.org>2004-08-15 09:57:07 +0000
commit965c0835b0c83b404582e05d8dac5366dde1aa14 (patch)
tree25584cd19355a98acd5440f5836c11c344330001 /src/java-1.4
parent573ad6b538bbb7c44b5cf43c90525ca95ba14bb5 (diff)
downloadxmlgraphics-fop-965c0835b0c83b404582e05d8dac5366dde1aa14.tar.gz
xmlgraphics-fop-965c0835b0c83b404582e05d8dac5366dde1aa14.zip
JDK 1.5 compile-time compatibility (still doesn't compile under 1.5, yet)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197875 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java-1.4')
-rw-r--r--src/java-1.4/org/apache/fop/svg/GraphicsConfiguration.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/java-1.4/org/apache/fop/svg/GraphicsConfiguration.java b/src/java-1.4/org/apache/fop/svg/GraphicsConfiguration.java
index 06967860f..ae2b4c8e5 100644
--- a/src/java-1.4/org/apache/fop/svg/GraphicsConfiguration.java
+++ b/src/java-1.4/org/apache/fop/svg/GraphicsConfiguration.java
@@ -18,6 +18,9 @@
package org.apache.fop.svg;
+
+import java.awt.image.VolatileImage;
+
/**
* Adapter to allow subclassing java.awt.GraphicsConfiguration without
* compilation errors.
@@ -28,7 +31,19 @@ package org.apache.fop.svg;
*/
abstract public class GraphicsConfiguration extends java.awt.GraphicsConfiguration {
- public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height) {
+ /**
+ * @see java.awt.GraphicsConfiguration#createCompatibleVolatileImage(int, int)
+ * @since JDK 1.4
+ */
+ public VolatileImage createCompatibleVolatileImage(int width, int height) {
+ return null;
+ }
+
+ /**
+ * @see java.awt.GraphicsConfiguration#createCompatibleVolatileImage(int, int, int)
+ * @since JDK 1.5
+ */
+ public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency) {
return null;
}