1 Ext.data.JsonP.Ext_util_TextMetrics({
3 "name": "Ext.util.TextMetrics",
4 "doc": "<p>\nProvides 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\n<p></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 <b>fixed width</b> when doing the measurement.</p>\n\n\n\n\n<p>\nIf 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.\n</p>\n\n",
9 "alternateClassNames": [
23 "name": "TextMetrics",
24 "member": "Ext.util.TextMetrics",
30 "doc": "<p>The element to bind to.</p>\n",
36 "doc": "<p>A fixed width to apply to the measuring element.</p>\n",
46 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
48 "html_filename": "TextMetrics.html",
49 "href": "TextMetrics.html#Ext-util-TextMetrics-method-constructor",
55 "member": "Ext.util.TextMetrics",
56 "doc": "<p>Binds this TextMetrics instance to a new element</p>\n",
61 "doc": "<p>The element</p>\n",
71 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
73 "html_filename": "TextMetrics.html",
74 "href": "TextMetrics.html#Ext-util-TextMetrics-method-bind",
75 "shortDoc": "<p>Binds this TextMetrics instance to a new element</p>\n"
80 "member": "Ext.util.TextMetrics",
81 "doc": "<p>Destroy this instance</p>\n",
91 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
93 "html_filename": "TextMetrics.html",
94 "href": "TextMetrics.html#Ext-util-TextMetrics-method-destroy",
95 "shortDoc": "<p>Destroy this instance</p>\n"
100 "member": "Ext.util.TextMetrics",
101 "doc": "<p>Returns the measured height of the specified text</p>\n",
106 "doc": "<p>The text to measure</p>\n",
112 "doc": "<p>height The height in pixels</p>\n"
116 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
118 "html_filename": "TextMetrics.html",
119 "href": "TextMetrics.html#Ext-util-TextMetrics-method-getHeight",
120 "shortDoc": "<p>Returns the measured height of the specified text</p>\n"
125 "member": "Ext.util.TextMetrics",
126 "doc": "<p><b>Only available on the instance returned from <a href=\"#/api/Ext.util.TextMetrics--createInstance\" rel=\"Ext.util.TextMetrics--createInstance\" class=\"docClass\">createInstance</a>, <u>not</u> on the singleton.</b></p>\n\n\n<p>Returns the size of the specified text based on the internal element's style and width properties</p>\n",
131 "doc": "<p>The text to measure</p>\n",
137 "doc": "<p>An object containing the text's size {width: (width), height: (height)}</p>\n"
141 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
143 "html_filename": "TextMetrics.html",
144 "href": "TextMetrics.html#Ext-util-TextMetrics-method-getSize",
145 "shortDoc": "Only available on the instance returned from createInstance, not on the singleton.\n\n\nReturns the size of the specifie..."
150 "member": "Ext.util.TextMetrics",
151 "doc": "<p>Returns the measured width of the specified text</p>\n",
156 "doc": "<p>The text to measure</p>\n",
162 "doc": "<p>width The width in pixels</p>\n"
166 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
168 "html_filename": "TextMetrics.html",
169 "href": "TextMetrics.html#Ext-util-TextMetrics-method-getWidth",
170 "shortDoc": "<p>Returns the measured width of the specified text</p>\n"
175 "member": "Ext.util.TextMetrics",
176 "doc": "<p>Measures the size of the specified text</p>\n",
179 "type": "String/HTMLElement",
181 "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",
187 "doc": "<p>The text to measure</p>\n",
192 "name": "fixedWidth",
193 "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",
199 "doc": "<p>An object containing the text's size {width: (width), height: (height)}</p>\n"
203 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
205 "html_filename": "TextMetrics.html",
206 "href": "TextMetrics.html#Ext-util-TextMetrics-method-measure",
207 "shortDoc": "<p>Measures the size of the specified text</p>\n"
211 "name": "setFixedWidth",
212 "member": "Ext.util.TextMetrics",
213 "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",
218 "doc": "<p>The width to set on the element</p>\n",
228 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
230 "html_filename": "TextMetrics.html",
231 "href": "TextMetrics.html#Ext-util-TextMetrics-method-setFixedWidth",
232 "shortDoc": "Sets a fixed width on the internal measurement element. If the text will be multiline, you have\nto set a fixed width..."
241 "filename": "/Users/nick/Projects/sencha/SDK/extjs/src/util/TextMetrics.js",
243 "html_filename": "TextMetrics.html",
244 "href": "TextMetrics.html#Ext-util-TextMetrics",