Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / output / Ext.util.TextMetrics.js
1 Ext.data.JsonP.Ext_util_TextMetrics({
2   "allMixins": [
3
4   ],
5   "deprecated": null,
6   "docauthor": null,
7   "members": {
8     "cfg": [
9
10     ],
11     "method": [
12       {
13         "deprecated": null,
14         "alias": null,
15         "href": "TextMetrics.html#Ext-util-TextMetrics-method-constructor",
16         "tagname": "method",
17         "protected": false,
18         "shortDoc": "Creates new TextMetrics. ...",
19         "static": false,
20         "params": [
21           {
22             "type": "Mixed",
23             "optional": false,
24             "doc": "<p>The element to bind to.</p>\n",
25             "name": "bindTo"
26           },
27           {
28             "type": "Number",
29             "optional": true,
30             "doc": "<p>(optional) A fixed width to apply to the measuring element.</p>\n",
31             "name": "fixedWidth"
32           }
33         ],
34         "private": false,
35         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
36         "doc": "<p>Creates new TextMetrics.</p>\n",
37         "owner": "Ext.util.TextMetrics",
38         "name": "TextMetrics",
39         "html_filename": "TextMetrics.html",
40         "return": {
41           "type": "Object",
42           "doc": "\n"
43         },
44         "linenr": 47
45       },
46       {
47         "deprecated": null,
48         "alias": null,
49         "protected": false,
50         "tagname": "method",
51         "href": "Base3.html#Ext-Base-method-addStatics",
52         "shortDoc": "Add / override static properties of this class. ...",
53         "static": true,
54         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
55         "private": false,
56         "params": [
57           {
58             "type": "Object",
59             "optional": false,
60             "doc": "\n",
61             "name": "members"
62           }
63         ],
64         "name": "addStatics",
65         "owner": "Ext.Base",
66         "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
67         "linenr": 388,
68         "return": {
69           "type": "Ext.Base",
70           "doc": "<p>this</p>\n"
71         },
72         "html_filename": "Base3.html"
73       },
74       {
75         "deprecated": null,
76         "alias": null,
77         "protected": false,
78         "tagname": "method",
79         "href": "TextMetrics.html#Ext-util-TextMetrics-method-bind",
80         "shortDoc": "Binds this TextMetrics instance to a new element ...",
81         "static": false,
82         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
83         "private": false,
84         "params": [
85           {
86             "type": "Mixed",
87             "optional": false,
88             "doc": "<p>The element</p>\n",
89             "name": "el"
90           }
91         ],
92         "name": "bind",
93         "owner": "Ext.util.TextMetrics",
94         "doc": "<p>Binds this TextMetrics instance to a new element</p>\n",
95         "linenr": 82,
96         "return": {
97           "type": "void",
98           "doc": "\n"
99         },
100         "html_filename": "TextMetrics.html"
101       },
102       {
103         "deprecated": null,
104         "alias": null,
105         "protected": false,
106         "tagname": "method",
107         "href": "Base3.html#Ext-Base-method-callOverridden",
108         "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n    constructo...",
109         "static": false,
110         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
111         "private": false,
112         "params": [
113           {
114             "type": "Array/Arguments",
115             "optional": false,
116             "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
117             "name": "args"
118           }
119         ],
120         "name": "callOverridden",
121         "owner": "Ext.Base",
122         "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
123         "linenr": 269,
124         "return": {
125           "type": "Mixed",
126           "doc": "<p>Returns the result after calling the overridden method</p>\n"
127         },
128         "html_filename": "Base3.html"
129       },
130       {
131         "deprecated": null,
132         "alias": null,
133         "protected": true,
134         "tagname": "method",
135         "href": "Base3.html#Ext-Base-method-callParent",
136         "shortDoc": "Call the parent's overridden method. ...",
137         "static": false,
138         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
139         "private": false,
140         "params": [
141           {
142             "type": "Array/Arguments",
143             "optional": false,
144             "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
145             "name": "args"
146           }
147         ],
148         "name": "callParent",
149         "owner": "Ext.Base",
150         "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n    constructor: function(test) {\n        alert(test);\n    }\n});\n\nExt.define('My.own.B', {\n    extend: 'My.own.A',\n\n    constructor: function(test) {\n        alert(test);\n\n        this.callParent([test + 1]);\n    }\n});\n\nExt.define('My.own.C', {\n    extend: 'My.own.B',\n\n    constructor: function() {\n        alert(\"Going to call parent's overriden constructor...\");\n\n        this.callParent(arguments);\n    }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n                         // alerts '2', then alerts '3'\n</code></pre>\n",
151         "linenr": 124,
152         "return": {
153           "type": "Mixed",
154           "doc": "<p>Returns the result from the superclass' method</p>\n"
155         },
156         "html_filename": "Base3.html"
157       },
158       {
159         "deprecated": null,
160         "alias": null,
161         "protected": false,
162         "tagname": "method",
163         "href": "Base3.html#Ext-Base-method-create",
164         "shortDoc": "Create a new instance of this Class. ...",
165         "static": true,
166         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
167         "private": false,
168         "params": [
169
170         ],
171         "name": "create",
172         "owner": "Ext.Base",
173         "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
174         "linenr": 329,
175         "return": {
176           "type": "Object",
177           "doc": "<p>the created instance.</p>\n"
178         },
179         "html_filename": "Base3.html"
180       },
181       {
182         "deprecated": null,
183         "alias": null,
184         "protected": false,
185         "tagname": "method",
186         "href": "Base3.html#Ext-Base-method-createAlias",
187         "shortDoc": "Create aliases for existing prototype methods. ...",
188         "static": true,
189         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
190         "private": false,
191         "params": [
192           {
193             "type": "String/Object",
194             "optional": false,
195             "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
196             "name": "alias"
197           },
198           {
199             "type": "String/Object",
200             "optional": false,
201             "doc": "<p>The original method name</p>\n",
202             "name": "origin"
203           }
204         ],
205         "name": "createAlias",
206         "owner": "Ext.Base",
207         "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -&gt; test.method1()\n</code></pre>\n",
208         "linenr": 648,
209         "return": {
210           "type": "void",
211           "doc": "\n"
212         },
213         "html_filename": "Base3.html"
214       },
215       {
216         "deprecated": null,
217         "alias": null,
218         "protected": false,
219         "tagname": "method",
220         "href": "TextMetrics.html#Ext-util-TextMetrics-method-destroy",
221         "shortDoc": "Destroy this instance ...",
222         "static": false,
223         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
224         "private": false,
225         "params": [
226
227         ],
228         "name": "destroy",
229         "owner": "Ext.util.TextMetrics",
230         "doc": "<p>Destroy this instance</p>\n",
231         "linenr": 123,
232         "return": {
233           "type": "void",
234           "doc": "\n"
235         },
236         "html_filename": "TextMetrics.html"
237       },
238       {
239         "deprecated": null,
240         "alias": null,
241         "protected": false,
242         "tagname": "method",
243         "href": "TextMetrics.html#Ext-util-TextMetrics-method-getHeight",
244         "shortDoc": "Returns the measured height of the specified text ...",
245         "static": false,
246         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
247         "private": false,
248         "params": [
249           {
250             "type": "String",
251             "optional": false,
252             "doc": "<p>The text to measure</p>\n",
253             "name": "text"
254           }
255         ],
256         "name": "getHeight",
257         "owner": "Ext.util.TextMetrics",
258         "doc": "<p>Returns the measured height of the specified text</p>\n",
259         "linenr": 114,
260         "return": {
261           "type": "Number",
262           "doc": "<p>height The height in pixels</p>\n"
263         },
264         "html_filename": "TextMetrics.html"
265       },
266       {
267         "deprecated": null,
268         "alias": null,
269         "protected": false,
270         "tagname": "method",
271         "href": "Base3.html#Ext-Base-method-getName",
272         "shortDoc": "Get the current class' name in string format. ...",
273         "static": false,
274         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
275         "private": false,
276         "params": [
277
278         ],
279         "name": "getName",
280         "owner": "Ext.Base",
281         "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
282         "linenr": 631,
283         "return": {
284           "type": "String",
285           "doc": "<p>className</p>\n"
286         },
287         "html_filename": "Base3.html"
288       },
289       {
290         "deprecated": null,
291         "alias": null,
292         "protected": false,
293         "tagname": "method",
294         "href": "TextMetrics.html#Ext-util-TextMetrics-method-getSize",
295         "shortDoc": "Returns the size of the specified text based on the internal element's style and width properties ...",
296         "static": false,
297         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
298         "private": false,
299         "params": [
300           {
301             "type": "String",
302             "optional": false,
303             "doc": "<p>The text to measure</p>\n",
304             "name": "text"
305           }
306         ],
307         "name": "getSize",
308         "owner": "Ext.util.TextMetrics",
309         "doc": "<p>Returns the size of the specified text based on the internal element's style and width properties</p>\n",
310         "linenr": 67,
311         "return": {
312           "type": "Object",
313           "doc": "<p>An object containing the text's size <code>{width: (width), height: (height)}</code></p>\n"
314         },
315         "html_filename": "TextMetrics.html"
316       },
317       {
318         "deprecated": null,
319         "alias": null,
320         "protected": false,
321         "tagname": "method",
322         "href": "TextMetrics.html#Ext-util-TextMetrics-method-getWidth",
323         "shortDoc": "Returns the measured width of the specified text ...",
324         "static": false,
325         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
326         "private": false,
327         "params": [
328           {
329             "type": "String",
330             "optional": false,
331             "doc": "<p>The text to measure</p>\n",
332             "name": "text"
333           }
334         ],
335         "name": "getWidth",
336         "owner": "Ext.util.TextMetrics",
337         "doc": "<p>Returns the measured width of the specified text</p>\n",
338         "linenr": 104,
339         "return": {
340           "type": "Number",
341           "doc": "<p>width The width in pixels</p>\n"
342         },
343         "html_filename": "TextMetrics.html"
344       },
345       {
346         "deprecated": null,
347         "alias": null,
348         "protected": false,
349         "tagname": "method",
350         "href": "Base3.html#Ext-Base-method-implement",
351         "shortDoc": "Add methods / properties to the prototype of this class. ...",
352         "static": true,
353         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
354         "private": false,
355         "params": [
356           {
357             "type": "Object",
358             "optional": false,
359             "doc": "\n",
360             "name": "members"
361           }
362         ],
363         "name": "implement",
364         "owner": "Ext.Base",
365         "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
366         "linenr": 415,
367         "return": {
368           "type": "void",
369           "doc": "\n"
370         },
371         "html_filename": "Base3.html"
372       },
373       {
374         "deprecated": null,
375         "alias": null,
376         "protected": true,
377         "tagname": "method",
378         "href": "Base3.html#Ext-Base-method-initConfig",
379         "shortDoc": "Initialize configuration for this class. ...",
380         "static": false,
381         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
382         "private": false,
383         "params": [
384           {
385             "type": "Object",
386             "optional": false,
387             "doc": "\n",
388             "name": "config"
389           }
390         ],
391         "name": "initConfig",
392         "owner": "Ext.Base",
393         "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n\n        return this;\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n",
394         "linenr": 63,
395         "return": {
396           "type": "Object",
397           "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
398         },
399         "html_filename": "Base3.html"
400       },
401       {
402         "deprecated": null,
403         "alias": null,
404         "protected": false,
405         "tagname": "method",
406         "href": "TextMetrics.html#Ext-util-TextMetrics-method-measure",
407         "shortDoc": "Measures the size of the specified text ...",
408         "static": false,
409         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
410         "private": false,
411         "params": [
412           {
413             "type": "String/HTMLElement",
414             "optional": false,
415             "doc": "<p>The element, dom node or id from which to copy existing CSS styles\nthat can affect the size of the rendered text</p>\n",
416             "name": "el"
417           },
418           {
419             "type": "String",
420             "optional": false,
421             "doc": "<p>The text to measure</p>\n",
422             "name": "text"
423           },
424           {
425             "type": "Number",
426             "optional": true,
427             "doc": "<p>(optional) If the text will be multiline, you have to set a fixed width\nin order to accurately measure the text height</p>\n",
428             "name": "fixedWidth"
429           }
430         ],
431         "name": "measure",
432         "owner": "Ext.util.TextMetrics",
433         "doc": "<p>Measures the size of the specified text</p>\n",
434         "linenr": 16,
435         "return": {
436           "type": "Object",
437           "doc": "<p>An object containing the text's size <code>{width: (width), height: (height)}</code></p>\n"
438         },
439         "html_filename": "TextMetrics.html"
440       },
441       {
442         "deprecated": null,
443         "alias": null,
444         "protected": false,
445         "tagname": "method",
446         "href": "Base3.html#Ext-Base-method-override",
447         "shortDoc": "Override prototype members of this class. ...",
448         "static": true,
449         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
450         "private": false,
451         "params": [
452           {
453             "type": "Object",
454             "optional": false,
455             "doc": "\n",
456             "name": "members"
457           }
458         ],
459         "name": "override",
460         "owner": "Ext.Base",
461         "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
462         "linenr": 518,
463         "return": {
464           "type": "Ext.Base",
465           "doc": "<p>this</p>\n"
466         },
467         "html_filename": "Base3.html"
468       },
469       {
470         "deprecated": null,
471         "alias": null,
472         "protected": false,
473         "tagname": "method",
474         "href": "TextMetrics.html#Ext-util-TextMetrics-method-setFixedWidth",
475         "shortDoc": "Sets a fixed width on the internal measurement element. ...",
476         "static": false,
477         "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
478         "private": false,
479         "params": [
480           {
481             "type": "Number",
482             "optional": false,
483             "doc": "<p>The width to set on the element</p>\n",
484             "name": "width"
485           }
486         ],
487         "name": "setFixedWidth",
488         "owner": "Ext.util.TextMetrics",
489         "doc": "<p>Sets a fixed width on the internal measurement element.  If the text will be multiline, you have\nto set a fixed width in order to accurately measure the text height.</p>\n",
490         "linenr": 95,
491         "return": {
492           "type": "void",
493           "doc": "\n"
494         },
495         "html_filename": "TextMetrics.html"
496       },
497       {
498         "deprecated": null,
499         "alias": null,
500         "protected": true,
501         "tagname": "method",
502         "href": "Base3.html#Ext-Base-method-statics",
503         "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
504         "static": false,
505         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
506         "private": false,
507         "params": [
508
509         ],
510         "name": "statics",
511         "owner": "Ext.Base",
512         "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n\n        return this;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n</code></pre>\n",
513         "linenr": 199,
514         "return": {
515           "type": "Class",
516           "doc": "\n"
517         },
518         "html_filename": "Base3.html"
519       }
520     ],
521     "property": [
522       {
523         "type": "Class",
524         "deprecated": null,
525         "alias": null,
526         "protected": true,
527         "tagname": "property",
528         "href": "Base3.html#Ext-Base-property-self",
529         "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
530         "static": false,
531         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
532         "private": false,
533         "name": "self",
534         "owner": "Ext.Base",
535         "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); / dependent on 'this'\n\n        return this;\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n</code></pre>\n",
536         "linenr": 18,
537         "html_filename": "Base3.html"
538       }
539     ],
540     "cssVar": [
541
542     ],
543     "cssMixin": [
544
545     ],
546     "event": [
547
548     ]
549   },
550   "singleton": false,
551   "alias": null,
552   "superclasses": [
553     "Ext.Base"
554   ],
555   "protected": false,
556   "tagname": "class",
557   "mixins": [
558
559   ],
560   "href": "TextMetrics.html#Ext-util-TextMetrics",
561   "subclasses": [
562
563   ],
564   "static": false,
565   "author": null,
566   "component": false,
567   "filename": "/mnt/ebs/nightly/git/SDK/extjs/src/util/TextMetrics.js",
568   "private": false,
569   "alternateClassNames": [
570
571   ],
572   "name": "Ext.util.TextMetrics",
573   "doc": "<p>Provides precise pixel measurements for blocks of text so that you can determine exactly how high and\nwide, in pixels, a given block of text will be. Note that when measuring text, it should be plain text and\nshould not contain any HTML, otherwise it may not be measured correctly.</p>\n\n<p>The measurement works by copying the relevant CSS styles that can affect the font related display,\nthen checking the size of an element that is auto-sized. Note that if the text is multi-lined, you must\nprovide a <strong>fixed width</strong> when doing the measurement.</p>\n\n<p>If multiple measurements are being done on the same element, you create a new instance to initialize\nto avoid the overhead of copying the styles to the element repeatedly.</p>\n",
574   "mixedInto": [
575
576   ],
577   "linenr": 1,
578   "xtypes": [
579
580   ],
581   "html_filename": "TextMetrics.html",
582   "extends": "Ext.Base"
583 });