aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/image/Raster.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/image/Raster.java')
-rw-r--r--libjava/java/awt/image/Raster.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/libjava/java/awt/image/Raster.java b/libjava/java/awt/image/Raster.java
index ff6033a..4fd194e 100644
--- a/libjava/java/awt/image/Raster.java
+++ b/libjava/java/awt/image/Raster.java
@@ -452,4 +452,25 @@ public class Raster
y-sampleModelTranslateY,
w, h, b, dArray, dataBuffer);
}
+
+ /**
+ * Create a String representing the stat of this Raster.
+ * @return A String representing the stat of this Raster.
+ * @see java.lang.Object#toString()
+ */
+ public String toString()
+ {
+ StringBuffer result = new StringBuffer();
+
+ result.append(getClass().getName());
+ result.append("[(");
+ result.append(minX).append(",").append(minY).append("), ");
+ result.append(width).append(" x ").append(height).append(",");
+ result.append(sampleModel).append(",");
+ result.append(dataBuffer);
+ result.append("]");
+
+ return result.toString();
+ }
+
}