comparison dwt/graphics/Color.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 184ab53b7785
children 36f5cb12e1a2
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
19 import dwt.graphics.Resource; 19 import dwt.graphics.Resource;
20 import dwt.graphics.RGB; 20 import dwt.graphics.RGB;
21 import dwt.graphics.Device; 21 import dwt.graphics.Device;
22 22
23 import tango.text.convert.Format; 23 import tango.text.convert.Format;
24 import dwt.dwthelper.utils;
24 25
25 /** 26 /**
26 * Instances of this class manage the operating system resources that 27 * Instances of this class manage the operating system resources that
27 * implement DWT's RGB color model. To create a color you can either 28 * implement DWT's RGB color model. To create a color you can either
28 * specify the individual color components as integers in the range 29 * specify the individual color components as integers in the range
315 * Returns a string containing a concise, human-readable 316 * Returns a string containing a concise, human-readable
316 * description of the receiver. 317 * description of the receiver.
317 * 318 *
318 * @return a string representation of the receiver 319 * @return a string representation of the receiver
319 */ 320 */
320 override public char[] toString () { 321 override public String toString () {
321 if (isDisposed()) return "Color {*DISPOSED*}"; //$NON-NLS-1$ 322 if (isDisposed()) return "Color {*DISPOSED*}"; //$NON-NLS-1$
322 return Format( "Color {{{}, {}, {}}", getRed(), getGreen(), getBlue()); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ 323 return Format( "Color {{{}, {}, {}}", getRed(), getGreen(), getBlue()); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
323 } 324 }
324 325
325 /** 326 /**