On Tue, 2004-04-06 at 13:13, Ingo PrÃtel wrote:
> 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 <[EMAIL PROTECTED]>
> >>>
> >>> * 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.
OK. We may want to change it later to match Sun's output for
mauve/testing purposes, but for now this is fine.
Tom
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath