comparison dwt/graphics/RGB.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 9a64a7781bab
children fd9c62a2998e
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
15 public import dwt.internal.SerializableCompatibility; 15 public import dwt.internal.SerializableCompatibility;
16 16
17 import dwt.DWT; 17 import dwt.DWT;
18 import Math = tango.math.Math : min, max; 18 import Math = tango.math.Math : min, max;
19 import tango.text.convert.Format; 19 import tango.text.convert.Format;
20 import dwt.dwthelper.utils;
20 21
21 /** 22 /**
22 * Instances of this class are descriptions of colors in 23 * Instances of this class are descriptions of colors in
23 * terms of the primary additive color model (red, green and 24 * terms of the primary additive color model (red, green and
24 * blue). A color may be described in terms of the relative 25 * blue). A color may be described in terms of the relative
221 * Returns a String containing a concise, human-readable 222 * Returns a String containing a concise, human-readable
222 * description of the receiver. 223 * description of the receiver.
223 * 224 *
224 * @return a String representation of the <code>RGB</code> 225 * @return a String representation of the <code>RGB</code>
225 */ 226 */
226 public override char[] toString() { 227 public override String toString() {
227 return Format( "RGB {{{}, {}, {}}", red, green, blue ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ 228 return Format( "RGB {{{}, {}, {}}", red, green, blue ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
228 } 229 }
229 230
230 } 231 }