classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for java.awt.image.Raster


From: Ingo Prötel
Subject: Re: Patch for java.awt.image.Raster
Date: Tue, 06 Apr 2004 19:13:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113



Thomas Fitzsimmons wrote:
On Mon, 2004-04-05 at 11:06, Ingo Prötel wrote:

Note new attachment.

Ingo Prötel wrote:

I suggest the following patch
2004-04-05  Ingo Proetel  <address@hidden>

   * java/awt/image/Raster.java (toString): Added method.

ingo




+ + /**
+   * Create a String representing the stat of this Raster.
                                       ^
                                       state?

+   * @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("]");
+
Is this result in the same format as the result produced by Sun's
Raster.toString?
Tom

Actually, I don't know. The doc says Raster does not overwrite the toString method. So I guess it looks different. I just found it helpful to debug.

--
Ingo Prötel                                          address@hidden
aicas GmbH                                        http://www.aicas.com
Haid-und-Neu-Str. 18                        phone   +49 721 663 968-32
76131 Karlsruhe                             fax     +49 721 663 968-93
Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]