Mercurial > projects > dwt-win
comparison dwt/graphics/Transform.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 | 0405e18fec7f |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
19 | 19 |
20 import dwt.graphics.Resource; | 20 import dwt.graphics.Resource; |
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 represent transformation matrices for | 27 * Instances of this class represent transformation matrices for |
27 * points expressed as (x, y) pairs of floating point numbers. | 28 * points expressed as (x, y) pairs of floating point numbers. |
28 * <p> | 29 * <p> |
341 * Returns a string containing a concise, human-readable | 342 * Returns a string containing a concise, human-readable |
342 * description of the receiver. | 343 * description of the receiver. |
343 * | 344 * |
344 * @return a string representation of the receiver | 345 * @return a string representation of the receiver |
345 */ | 346 */ |
346 override public char[] toString() { | 347 override public String toString() { |
347 if (isDisposed()) return "Transform {*DISPOSED*}"; | 348 if (isDisposed()) return "Transform {*DISPOSED*}"; |
348 float[6] elements; | 349 float[6] elements; |
349 getElements(elements); | 350 getElements(elements); |
350 return Format("Transform {{{},{},{},{},{}}", elements [0], elements [1], elements [2], elements [3], elements [4], elements [5] ); | 351 return Format("Transform {{{},{},{},{},{}}", elements [0], elements [1], elements [2], elements [3], elements [4], elements [5] ); |
351 } | 352 } |