Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / output / Ext.draw.Surface.js
1 Ext.data.JsonP.Ext_draw_Surface({
2   "allMixins": [
3     "Ext.util.Observable"
4   ],
5   "deprecated": null,
6   "docauthor": null,
7   "members": {
8     "cfg": [
9       {
10         "type": "Number",
11         "deprecated": null,
12         "alias": null,
13         "protected": false,
14         "tagname": "cfg",
15         "href": "Surface.html#Ext-draw-Surface-cfg-height",
16         "shortDoc": "The height of this component in pixels (defaults to auto). ...",
17         "static": false,
18         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
19         "private": false,
20         "name": "height",
21         "owner": "Ext.draw.Surface",
22         "doc": "<p>The height of this component in pixels (defaults to auto).\n<strong>Note</strong> to express this dimension as a percentage or offset see Ext.Component.anchor.</p>\n",
23         "linenr": 206,
24         "html_filename": "Surface.html"
25       },
26       {
27         "type": "Object",
28         "deprecated": null,
29         "alias": null,
30         "protected": false,
31         "tagname": "cfg",
32         "href": "Observable.html#Ext-util-Observable-cfg-listeners",
33         "shortDoc": "A config object containing one or more event handlers to be added to this object during initialization. ...",
34         "static": false,
35         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
36         "private": false,
37         "name": "listeners",
38         "owner": "Ext.util.Observable",
39         "doc": "<p>A config object containing one or more event handlers to be added to this object during initialization. This\nshould be a valid listeners config object as specified in the <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> example for attaching multiple\nhandlers at once.</p>\n\n<p><strong>DOM events from ExtJS <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a></strong></p>\n\n<p>While <em>some</em> ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this is usually\nonly done when extra value can be added. For example the <a href=\"#/api/Ext.view.View\" rel=\"Ext.view.View\" class=\"docClass\">DataView</a>'s <strong><code><a href=\"#/api/Ext.view.View-event-itemclick\" rel=\"Ext.view.View-event-itemclick\" class=\"docClass\">itemclick</a></code></strong> event passing the node clicked on. To access DOM events directly from a\nchild element of a Component, we need to specify the <code>element</code> option to identify the Component property to add a\nDOM listener to:</p>\n\n<pre><code>new Ext.panel.Panel({\n    width: 400,\n    height: 200,\n    dockedItems: [{\n        xtype: 'toolbar'\n    }],\n    listeners: {\n        click: {\n            element: 'el', //bind to the underlying el property on the panel\n            fn: function(){ console.log('click el'); }\n        },\n        dblclick: {\n            element: 'body', //bind to the underlying body property on the panel\n            fn: function(){ console.log('dblclick body'); }\n        }\n    }\n});\n</code></pre>\n",
40         "linenr": 102,
41         "html_filename": "Observable.html"
42       },
43       {
44         "type": "Number",
45         "deprecated": null,
46         "alias": null,
47         "protected": false,
48         "tagname": "cfg",
49         "href": "Surface.html#Ext-draw-Surface-cfg-width",
50         "shortDoc": "The width of this component in pixels (defaults to auto). ...",
51         "static": false,
52         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
53         "private": false,
54         "name": "width",
55         "owner": "Ext.draw.Surface",
56         "doc": "<p>The width of this component in pixels (defaults to auto).\n<strong>Note</strong> to express this dimension as a percentage or offset see Ext.Component.anchor.</p>\n",
57         "linenr": 211,
58         "html_filename": "Surface.html"
59       }
60     ],
61     "method": [
62       {
63         "deprecated": null,
64         "alias": null,
65         "href": "Surface.html#Ext-draw-Surface-method-constructor",
66         "tagname": "method",
67         "protected": false,
68         "shortDoc": "Creates new Surface. ...",
69         "static": false,
70         "params": [
71           {
72             "type": "Object",
73             "optional": true,
74             "doc": "<p>(optional) Config object.</p>\n",
75             "name": "config"
76           }
77         ],
78         "private": false,
79         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
80         "doc": "<p>Creates new Surface.</p>\n",
81         "owner": "Ext.draw.Surface",
82         "name": "Surface",
83         "html_filename": "Surface.html",
84         "return": {
85           "type": "Object",
86           "doc": "\n"
87         },
88         "linenr": 223
89       },
90       {
91         "deprecated": null,
92         "alias": null,
93         "protected": false,
94         "tagname": "method",
95         "href": "Surface.html#Ext-draw-Surface-method-add",
96         "shortDoc": "Adds a Sprite to the surface. ...",
97         "static": false,
98         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
99         "private": false,
100         "params": [
101
102         ],
103         "name": "add",
104         "owner": "Ext.draw.Surface",
105         "doc": "<p>Adds a Sprite to the surface. See <a href=\"#/api/Ext.draw.Sprite\" rel=\"Ext.draw.Sprite\" class=\"docClass\">Ext.draw.Sprite</a> for the configuration object to be\npassed into this method.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.add({\n    type: 'circle',\n    fill: '#ffc',\n    radius: 100,\n    x: 100,\n    y: 100\n});\n</code></pre>\n",
106         "linenr": 485,
107         "return": {
108           "type": "void",
109           "doc": "\n"
110         },
111         "html_filename": "Surface.html"
112       },
113       {
114         "deprecated": null,
115         "alias": null,
116         "protected": false,
117         "tagname": "method",
118         "href": "Surface.html#Ext-draw-Surface-method-addCls",
119         "shortDoc": "Adds one or more CSS classes to the element. ...",
120         "static": false,
121         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
122         "private": false,
123         "params": [
124           {
125             "type": "Object",
126             "optional": false,
127             "doc": "<p>The sprite to add the class to.</p>\n",
128             "name": "sprite"
129           },
130           {
131             "type": "String/[String]",
132             "optional": false,
133             "doc": "<p>The CSS class to add, or an array of classes</p>\n",
134             "name": "className"
135           }
136         ],
137         "name": "addCls",
138         "owner": "Ext.draw.Surface",
139         "doc": "<p>Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.addCls(sprite, 'x-visible');\n</code></pre>\n",
140         "linenr": 273,
141         "return": {
142           "type": "void",
143           "doc": "\n"
144         },
145         "html_filename": "Surface.html"
146       },
147       {
148         "deprecated": null,
149         "alias": null,
150         "protected": false,
151         "tagname": "method",
152         "href": "Observable.html#Ext-util-Observable-method-addEvents",
153         "shortDoc": "Adds the specified events to the list of events which this Observable may fire. ...",
154         "static": false,
155         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
156         "private": false,
157         "params": [
158           {
159             "type": "Object/String",
160             "optional": false,
161             "doc": "<p>Either an object with event names as properties with a value of <code>true</code> or the first\nevent name string if multiple event names are being passed as separate parameters. Usage:</p>\n\n<pre><code>this.addEvents({\n    storeloaded: true,\n    storecleared: true\n});\n</code></pre>\n",
162             "name": "o"
163           },
164           {
165             "type": "String...",
166             "optional": false,
167             "doc": "<p>Optional additional event names if multiple event names are being passed as separate\nparameters. Usage:</p>\n\n<pre><code>this.addEvents('storeloaded', 'storecleared');\n</code></pre>\n",
168             "name": "more"
169           }
170         ],
171         "name": "addEvents",
172         "owner": "Ext.util.Observable",
173         "doc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n",
174         "linenr": 494,
175         "return": {
176           "type": "void",
177           "doc": "\n"
178         },
179         "html_filename": "Observable.html"
180       },
181       {
182         "deprecated": null,
183         "alias": null,
184         "protected": false,
185         "tagname": "method",
186         "href": "Surface.html#Ext-draw-Surface-method-addGradient",
187         "shortDoc": "Adds a gradient definition to the Surface. ...",
188         "static": false,
189         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
190         "private": false,
191         "params": [
192
193         ],
194         "name": "addGradient",
195         "owner": "Ext.draw.Surface",
196         "doc": "<p>Adds a gradient definition to the Surface. Note that in some surface engines, adding\na gradient via this method will not take effect if the surface has already been rendered.\nTherefore, it is preferred to pass the gradients as an item to the surface config, rather\nthan calling this method, especially if the surface is rendered immediately (e.g. due to\n'renderTo' in its config). For more information on how to create gradients in the Chart\nconfiguration object please refer to <a href=\"#/api/Ext.chart.Chart\" rel=\"Ext.chart.Chart\" class=\"docClass\">Ext.chart.Chart</a>.</p>\n\n<p>The gradient object to be passed into this method is composed by:</p>\n\n<ul>\n<li><strong>id</strong> - string - The unique name of the gradient.</li>\n<li><strong>angle</strong> - number, optional - The angle of the gradient in degrees.</li>\n<li><strong>stops</strong> - object - An object with numbers as keys (from 0 to 100) and style objects as values.</li>\n</ul>\n\n\n<p>For example:</p>\n\n<p>   drawComponent.surface.addGradient({</p>\n\n<pre><code>   id: 'gradientId',\n   angle: 45,\n   stops: {\n       0: {\n           color: '#555'\n       },\n       100: {\n           color: '#ddd'\n       }\n   }\n</code></pre>\n\n<p>   });</p>\n",
197         "linenr": 452,
198         "return": {
199           "type": "void",
200           "doc": "\n"
201         },
202         "html_filename": "Surface.html"
203       },
204       {
205         "deprecated": null,
206         "alias": null,
207         "protected": false,
208         "tagname": "method",
209         "href": "Observable.html#Ext-util-Observable-method-addListener",
210         "shortDoc": "Appends an event handler to this object. ...",
211         "static": false,
212         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
213         "private": false,
214         "params": [
215           {
216             "type": "String",
217             "optional": false,
218             "doc": "<p>The name of the event to listen for. May also be an object who's property names are\nevent names.</p>\n",
219             "name": "eventName"
220           },
221           {
222             "type": "Function",
223             "optional": false,
224             "doc": "<p>The method the event invokes.  Will be called with arguments given to\n<a href=\"#/api/Ext.draw.Surface-method-fireEvent\" rel=\"Ext.draw.Surface-method-fireEvent\" class=\"docClass\">fireEvent</a> plus the <code>options</code> parameter described below.</p>\n",
225             "name": "handler"
226           },
227           {
228             "type": "Object",
229             "optional": true,
230             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the handler function is executed. <strong>If\nomitted, defaults to the object which fired the event.</strong></p>\n",
231             "name": "scope"
232           },
233           {
234             "type": "Object",
235             "optional": true,
236             "doc": "<p>(optional) An object containing handler configuration.</p>\n\n<p><strong>Note:</strong> Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.</p>\n\n<p>This object may contain any of the following properties:</p>\n\n<ul>\n<li><p><strong>scope</strong> : Object</p>\n\n<p>The scope (<code>this</code> reference) in which the handler function is executed. <strong>If omitted, defaults to the object\nwhich fired the event.</strong></p></li>\n<li><p><strong>delay</strong> : Number</p>\n\n<p>The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>\n<li><p><strong>single</strong> : Boolean</p>\n\n<p>True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>\n<li><p><strong>buffer</strong> : Number</p>\n\n<p>Causes the handler to be scheduled to run in an <a href=\"#/api/Ext.util.DelayedTask\" rel=\"Ext.util.DelayedTask\" class=\"docClass\">Ext.util.DelayedTask</a> delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is <em>not</em> invoked, but the new\nhandler is scheduled in its place.</p></li>\n<li><p><strong>target</strong> : Observable</p>\n\n<p>Only call the handler if the event was fired on the target Observable, <em>not</em> if the event was bubbled up from a\nchild Observable.</p></li>\n<li><p><strong>element</strong> : String</p>\n\n<p><strong>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</strong> The name of a Component\nproperty which references an element to add a listener to.</p>\n\n<p>This option is useful during Component construction to add DOM event listeners to elements of\n<a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which will exist only after the Component is rendered.\nFor example, to add a click listener to a Panel's body:</p>\n\n<pre><code>new Ext.panel.Panel({\n    title: 'The title',\n    listeners: {\n        click: this.handlePanelClick,\n        element: 'body'\n    }\n});\n</code></pre></li>\n</ul>\n\n\n<p><strong>Combining Options</strong></p>\n\n<p>Using the options argument, it is possible to combine different types of listeners:</p>\n\n<p>A delayed, one-time listener.</p>\n\n<pre><code>myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n</code></pre>\n\n<p><strong>Attaching multiple handlers in 1 call</strong></p>\n\n<p>The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple events. For example:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n</code></pre>\n\n<p>One can also specify options for each event handler separately:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n</code></pre>\n",
237             "name": "options"
238           }
239         ],
240         "name": "addListener",
241         "owner": "Ext.util.Observable",
242         "doc": "<p>Appends an event handler to this object.</p>\n",
243         "linenr": 278,
244         "return": {
245           "type": "void",
246           "doc": "\n"
247         },
248         "html_filename": "Observable.html"
249       },
250       {
251         "deprecated": null,
252         "alias": null,
253         "protected": false,
254         "tagname": "method",
255         "href": "Observable.html#Ext-util-Observable-method-addManagedListener",
256         "shortDoc": "Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed. ...",
257         "static": false,
258         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
259         "private": false,
260         "params": [
261           {
262             "type": "Observable/Element",
263             "optional": false,
264             "doc": "<p>The item to which to add a listener/listeners.</p>\n",
265             "name": "item"
266           },
267           {
268             "type": "Object/String",
269             "optional": false,
270             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
271             "name": "ename"
272           },
273           {
274             "type": "Function",
275             "optional": true,
276             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
277             "name": "fn"
278           },
279           {
280             "type": "Object",
281             "optional": true,
282             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
283             "name": "scope"
284           },
285           {
286             "type": "Object",
287             "optional": true,
288             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the\n<a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
289             "name": "opt"
290           }
291         ],
292         "name": "addManagedListener",
293         "owner": "Ext.util.Observable",
294         "doc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed.</p>\n",
295         "linenr": 156,
296         "return": {
297           "type": "void",
298           "doc": "\n"
299         },
300         "html_filename": "Observable.html"
301       },
302       {
303         "deprecated": null,
304         "alias": null,
305         "protected": false,
306         "tagname": "method",
307         "href": "Base3.html#Ext-Base-method-addStatics",
308         "shortDoc": "Add / override static properties of this class. ...",
309         "static": true,
310         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
311         "private": false,
312         "params": [
313           {
314             "type": "Object",
315             "optional": false,
316             "doc": "\n",
317             "name": "members"
318           }
319         ],
320         "name": "addStatics",
321         "owner": "Ext.Base",
322         "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",
323         "linenr": 388,
324         "return": {
325           "type": "Ext.Base",
326           "doc": "<p>this</p>\n"
327         },
328         "html_filename": "Base3.html"
329       },
330       {
331         "deprecated": null,
332         "alias": null,
333         "protected": false,
334         "tagname": "method",
335         "href": "Base3.html#Ext-Base-method-callOverridden",
336         "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n    constructo...",
337         "static": false,
338         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
339         "private": false,
340         "params": [
341           {
342             "type": "Array/Arguments",
343             "optional": false,
344             "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
345             "name": "args"
346           }
347         ],
348         "name": "callOverridden",
349         "owner": "Ext.Base",
350         "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",
351         "linenr": 269,
352         "return": {
353           "type": "Mixed",
354           "doc": "<p>Returns the result after calling the overridden method</p>\n"
355         },
356         "html_filename": "Base3.html"
357       },
358       {
359         "deprecated": null,
360         "alias": null,
361         "protected": true,
362         "tagname": "method",
363         "href": "Base3.html#Ext-Base-method-callParent",
364         "shortDoc": "Call the parent's overridden method. ...",
365         "static": false,
366         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
367         "private": false,
368         "params": [
369           {
370             "type": "Array/Arguments",
371             "optional": false,
372             "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",
373             "name": "args"
374           }
375         ],
376         "name": "callParent",
377         "owner": "Ext.Base",
378         "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",
379         "linenr": 124,
380         "return": {
381           "type": "Mixed",
382           "doc": "<p>Returns the result from the superclass' method</p>\n"
383         },
384         "html_filename": "Base3.html"
385       },
386       {
387         "deprecated": null,
388         "alias": null,
389         "protected": false,
390         "tagname": "method",
391         "href": "Observable.html#Ext-util-Observable-method-capture",
392         "shortDoc": "Starts capture on the specified Observable. ...",
393         "static": true,
394         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
395         "private": false,
396         "params": [
397           {
398             "type": "Observable",
399             "optional": false,
400             "doc": "<p>The Observable to capture events from.</p>\n",
401             "name": "o"
402           },
403           {
404             "type": "Function",
405             "optional": false,
406             "doc": "<p>The function to call when an event is fired.</p>\n",
407             "name": "fn"
408           },
409           {
410             "type": "Object",
411             "optional": true,
412             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to\nthe Observable firing the event.</p>\n",
413             "name": "scope"
414           }
415         ],
416         "name": "capture",
417         "owner": "Ext.util.Observable",
418         "doc": "<p>Starts capture on the specified Observable. All events will be passed to the supplied function with the event\nname + standard signature of the event <strong>before</strong> the event is fired. If the supplied function returns false,\nthe event will not fire.</p>\n",
419         "linenr": 54,
420         "return": {
421           "type": "void",
422           "doc": "\n"
423         },
424         "html_filename": "Observable.html"
425       },
426       {
427         "deprecated": null,
428         "alias": null,
429         "protected": false,
430         "tagname": "method",
431         "href": "Observable.html#Ext-util-Observable-method-clearListeners",
432         "shortDoc": "Removes all listeners for this object including the managed listeners ...",
433         "static": false,
434         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
435         "private": false,
436         "params": [
437
438         ],
439         "name": "clearListeners",
440         "owner": "Ext.util.Observable",
441         "doc": "<p>Removes all listeners for this object including the managed listeners</p>\n",
442         "linenr": 425,
443         "return": {
444           "type": "void",
445           "doc": "\n"
446         },
447         "html_filename": "Observable.html"
448       },
449       {
450         "deprecated": null,
451         "alias": null,
452         "protected": false,
453         "tagname": "method",
454         "href": "Observable.html#Ext-util-Observable-method-clearManagedListeners",
455         "shortDoc": "Removes all managed listeners for this object. ...",
456         "static": false,
457         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
458         "private": false,
459         "params": [
460
461         ],
462         "name": "clearManagedListeners",
463         "owner": "Ext.util.Observable",
464         "doc": "<p>Removes all managed listeners for this object.</p>\n",
465         "linenr": 454,
466         "return": {
467           "type": "void",
468           "doc": "\n"
469         },
470         "html_filename": "Observable.html"
471       },
472       {
473         "deprecated": null,
474         "alias": null,
475         "protected": false,
476         "tagname": "method",
477         "href": "Surface.html#Ext-draw-Surface-method-create",
478         "shortDoc": "Creates and returns a new concrete Surface instance appropriate for the current environment. ...",
479         "static": true,
480         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
481         "private": false,
482         "params": [
483           {
484             "type": "Object",
485             "optional": false,
486             "doc": "<p>Initial configuration for the Surface instance</p>\n",
487             "name": "config"
488           },
489           {
490             "type": "[String]",
491             "optional": false,
492             "doc": "<p>Optional order of implementations to use; the first one that is\navailable in the current environment will be used. Defaults to <code>['Svg', 'Vml']</code>.</p>\n",
493             "name": "enginePriority"
494           }
495         ],
496         "name": "create",
497         "owner": "Ext.draw.Surface",
498         "doc": "<p>Creates and returns a new concrete Surface instance appropriate for the current environment.</p>\n",
499         "linenr": 137,
500         "return": {
501           "type": "Object",
502           "doc": "<p>The created Surface or false.</p>\n"
503         },
504         "html_filename": "Surface.html"
505       },
506       {
507         "deprecated": null,
508         "alias": null,
509         "protected": false,
510         "tagname": "method",
511         "href": "Base3.html#Ext-Base-method-createAlias",
512         "shortDoc": "Create aliases for existing prototype methods. ...",
513         "static": true,
514         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
515         "private": false,
516         "params": [
517           {
518             "type": "String/Object",
519             "optional": false,
520             "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",
521             "name": "alias"
522           },
523           {
524             "type": "String/Object",
525             "optional": false,
526             "doc": "<p>The original method name</p>\n",
527             "name": "origin"
528           }
529         ],
530         "name": "createAlias",
531         "owner": "Ext.Base",
532         "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",
533         "linenr": 648,
534         "return": {
535           "type": "void",
536           "doc": "\n"
537         },
538         "html_filename": "Base3.html"
539       },
540       {
541         "deprecated": null,
542         "alias": null,
543         "protected": false,
544         "tagname": "method",
545         "href": "Surface.html#Ext-draw-Surface-method-destroy",
546         "shortDoc": "Destroys the surface. ...",
547         "static": false,
548         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
549         "private": false,
550         "params": [
551
552         ],
553         "name": "destroy",
554         "owner": "Ext.draw.Surface",
555         "doc": "<p>Destroys the surface. This is done by removing all components from it and\nalso removing its reference to a DOM element.</p>\n\n<p>For example:</p>\n\n<pre><code> drawComponent.surface.destroy();\n</code></pre>\n",
556         "linenr": 835,
557         "return": {
558           "type": "void",
559           "doc": "\n"
560         },
561         "html_filename": "Surface.html"
562       },
563       {
564         "deprecated": null,
565         "alias": null,
566         "protected": false,
567         "tagname": "method",
568         "href": "Observable.html#Ext-util-Observable-method-enableBubble",
569         "shortDoc": "Enables events fired by this Observable to bubble up an owner hierarchy by calling this.getBubbleTarget() if\npresent. ...",
570         "static": false,
571         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
572         "private": false,
573         "params": [
574           {
575             "type": "String/[String]",
576             "optional": false,
577             "doc": "<p>The event name to bubble, or an Array of event names.</p>\n",
578             "name": "events"
579           }
580         ],
581         "name": "enableBubble",
582         "owner": "Ext.util.Observable",
583         "doc": "<p>Enables events fired by this Observable to bubble up an owner hierarchy by calling <code>this.getBubbleTarget()</code> if\npresent. There is no implementation in the Observable base class.</p>\n\n<p>This is commonly used by Ext.Components to bubble events to owner Containers.\nSee <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>. The default implementation in <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Ext.Component</a> returns the\nComponent's immediate owner. But if a known target is required, this can be overridden to access the\nrequired target more quickly.</p>\n\n<p>Example:</p>\n\n<pre><code>Ext.override(Ext.form.field.Base, {\n    //  Add functionality to Field's initComponent to enable the change event to bubble\n    initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {\n        this.enableBubble('change');\n    }),\n\n    //  We know that we want Field's events to bubble directly to the FormPanel.\n    getBubbleTarget : function() {\n        if (!this.formPanel) {\n            this.formPanel = this.findParentByType('form');\n        }\n        return this.formPanel;\n    }\n});\n\nvar myForm = new Ext.formPanel({\n    title: 'User Details',\n    items: [{\n        ...\n    }],\n    listeners: {\n        change: function() {\n            // Title goes red if form has been modified.\n            myForm.header.setStyle('color', 'red');\n        }\n    }\n});\n</code></pre>\n",
584         "linenr": 609,
585         "return": {
586           "type": "void",
587           "doc": "\n"
588         },
589         "html_filename": "Observable.html"
590       },
591       {
592         "deprecated": null,
593         "alias": null,
594         "protected": false,
595         "tagname": "method",
596         "href": "Observable.html#Ext-util-Observable-method-fireEvent",
597         "shortDoc": "Fires the specified event with the passed parameters (minus the event name, plus the options object passed\nto addList...",
598         "static": false,
599         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
600         "private": false,
601         "params": [
602           {
603             "type": "String",
604             "optional": false,
605             "doc": "<p>The name of the event to fire.</p>\n",
606             "name": "eventName"
607           },
608           {
609             "type": "Object...",
610             "optional": false,
611             "doc": "<p>Variable number of parameters are passed to handlers.</p>\n",
612             "name": "args"
613           }
614         ],
615         "name": "fireEvent",
616         "owner": "Ext.util.Observable",
617         "doc": "<p>Fires the specified event with the passed parameters (minus the event name, plus the <code>options</code> object passed\nto <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a>).</p>\n\n<p>An event may be set to bubble up an Observable parent hierarchy (See <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>) by\ncalling <a href=\"#/api/Ext.draw.Surface-method-enableBubble\" rel=\"Ext.draw.Surface-method-enableBubble\" class=\"docClass\">enableBubble</a>.</p>\n",
618         "linenr": 233,
619         "return": {
620           "type": "Boolean",
621           "doc": "<p>returns false if any of the handlers return false otherwise it returns true.</p>\n"
622         },
623         "html_filename": "Observable.html"
624       },
625       {
626         "deprecated": null,
627         "alias": null,
628         "protected": false,
629         "tagname": "method",
630         "href": "Surface.html#Ext-draw-Surface-method-getGroup",
631         "shortDoc": "Returns a new group or an existent group associated with the current surface. ...",
632         "static": false,
633         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
634         "private": false,
635         "params": [
636           {
637             "type": "String",
638             "optional": false,
639             "doc": "<p>The unique identifier of the group.</p>\n",
640             "name": "id"
641           }
642         ],
643         "name": "getGroup",
644         "owner": "Ext.draw.Surface",
645         "doc": "<p>Returns a new group or an existent group associated with the current surface.\nThe group returned is a <a href=\"#/api/Ext.draw.CompositeSprite\" rel=\"Ext.draw.CompositeSprite\" class=\"docClass\">Ext.draw.CompositeSprite</a> group.</p>\n\n<p>For example:</p>\n\n<pre><code>var spriteGroup = drawComponent.surface.getGroup('someGroupId');\n</code></pre>\n",
646         "linenr": 768,
647         "return": {
648           "type": "Object",
649           "doc": "<p>The <a href=\"#/api/Ext.draw.CompositeSprite\" rel=\"Ext.draw.CompositeSprite\" class=\"docClass\">Ext.draw.CompositeSprite</a>.</p>\n"
650         },
651         "html_filename": "Surface.html"
652       },
653       {
654         "deprecated": null,
655         "alias": null,
656         "protected": false,
657         "tagname": "method",
658         "href": "Surface.html#Ext-draw-Surface-method-getId",
659         "shortDoc": "Retrieves the id of this component. ...",
660         "static": false,
661         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
662         "private": false,
663         "params": [
664
665         ],
666         "name": "getId",
667         "owner": "Ext.draw.Surface",
668         "doc": "<p>Retrieves the id of this component.\nWill autogenerate an id if one has not already been set.</p>\n",
669         "linenr": 827,
670         "return": {
671           "type": "void",
672           "doc": "\n"
673         },
674         "html_filename": "Surface.html"
675       },
676       {
677         "deprecated": null,
678         "alias": null,
679         "protected": false,
680         "tagname": "method",
681         "href": "Base3.html#Ext-Base-method-getName",
682         "shortDoc": "Get the current class' name in string format. ...",
683         "static": false,
684         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
685         "private": false,
686         "params": [
687
688         ],
689         "name": "getName",
690         "owner": "Ext.Base",
691         "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",
692         "linenr": 631,
693         "return": {
694           "type": "String",
695           "doc": "<p>className</p>\n"
696         },
697         "html_filename": "Base3.html"
698       },
699       {
700         "deprecated": null,
701         "alias": null,
702         "protected": false,
703         "tagname": "method",
704         "href": "Observable.html#Ext-util-Observable-method-hasListener",
705         "shortDoc": "Checks to see if this object has any listeners for a specified event ...",
706         "static": false,
707         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
708         "private": false,
709         "params": [
710           {
711             "type": "String",
712             "optional": false,
713             "doc": "<p>The name of the event to check for</p>\n",
714             "name": "eventName"
715           }
716         ],
717         "name": "hasListener",
718         "owner": "Ext.util.Observable",
719         "doc": "<p>Checks to see if this object has any listeners for a specified event</p>\n",
720         "linenr": 530,
721         "return": {
722           "type": "Boolean",
723           "doc": "<p>True if the event is being listened for, else false</p>\n"
724         },
725         "html_filename": "Observable.html"
726       },
727       {
728         "deprecated": null,
729         "alias": null,
730         "protected": false,
731         "tagname": "method",
732         "href": "Base3.html#Ext-Base-method-implement",
733         "shortDoc": "Add methods / properties to the prototype of this class. ...",
734         "static": true,
735         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
736         "private": false,
737         "params": [
738           {
739             "type": "Object",
740             "optional": false,
741             "doc": "\n",
742             "name": "members"
743           }
744         ],
745         "name": "implement",
746         "owner": "Ext.Base",
747         "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",
748         "linenr": 415,
749         "return": {
750           "type": "void",
751           "doc": "\n"
752         },
753         "html_filename": "Base3.html"
754       },
755       {
756         "deprecated": null,
757         "alias": null,
758         "protected": true,
759         "tagname": "method",
760         "href": "Base3.html#Ext-Base-method-initConfig",
761         "shortDoc": "Initialize configuration for this class. ...",
762         "static": false,
763         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
764         "private": false,
765         "params": [
766           {
767             "type": "Object",
768             "optional": false,
769             "doc": "\n",
770             "name": "config"
771           }
772         ],
773         "name": "initConfig",
774         "owner": "Ext.Base",
775         "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",
776         "linenr": 63,
777         "return": {
778           "type": "Object",
779           "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
780         },
781         "html_filename": "Base3.html"
782       },
783       {
784         "deprecated": null,
785         "alias": {
786           "tagname": "alias",
787           "cls": "Ext.util.Observable",
788           "doc": null,
789           "owner": "addManagedListener"
790         },
791         "protected": false,
792         "tagname": "method",
793         "href": "Observable.html#Ext-util-Observable-method-mon",
794         "shortDoc": "Shorthand for addManagedListener. ...",
795         "static": false,
796         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
797         "private": false,
798         "params": [
799           {
800             "type": "Observable/Element",
801             "optional": false,
802             "doc": "<p>The item to which to add a listener/listeners.</p>\n",
803             "name": "item"
804           },
805           {
806             "type": "Object/String",
807             "optional": false,
808             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
809             "name": "ename"
810           },
811           {
812             "type": "Function",
813             "optional": true,
814             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
815             "name": "fn"
816           },
817           {
818             "type": "Object",
819             "optional": true,
820             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
821             "name": "scope"
822           },
823           {
824             "type": "Object",
825             "optional": true,
826             "doc": "<p>(optional) If the <code>ename</code> parameter was an event name, this is the\n<a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
827             "name": "opt"
828           }
829         ],
830         "name": "mon",
831         "owner": "Ext.util.Observable",
832         "doc": "<p>Shorthand for <a href=\"#/api/Ext.draw.Surface-method-addManagedListener\" rel=\"Ext.draw.Surface-method-addManagedListener\" class=\"docClass\">addManagedListener</a>.</p>\n\n<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component is\ndestroyed.</p>\n",
833         "linenr": 681,
834         "return": {
835           "type": "void",
836           "doc": "\n"
837         },
838         "html_filename": "Observable.html"
839       },
840       {
841         "deprecated": null,
842         "alias": {
843           "tagname": "alias",
844           "cls": "Ext.util.Observable",
845           "doc": null,
846           "owner": "removeManagedListener"
847         },
848         "protected": false,
849         "tagname": "method",
850         "href": "Observable.html#Ext-util-Observable-method-mun",
851         "shortDoc": "Shorthand for removeManagedListener. ...",
852         "static": false,
853         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
854         "private": false,
855         "params": [
856           {
857             "type": "Observable|Element",
858             "optional": false,
859             "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
860             "name": "item"
861           },
862           {
863             "type": "Object|String",
864             "optional": false,
865             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
866             "name": "ename"
867           },
868           {
869             "type": "Function",
870             "optional": false,
871             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
872             "name": "fn"
873           },
874           {
875             "type": "Object",
876             "optional": false,
877             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
878             "name": "scope"
879           }
880         ],
881         "name": "mun",
882         "owner": "Ext.util.Observable",
883         "doc": "<p>Shorthand for <a href=\"#/api/Ext.draw.Surface-method-removeManagedListener\" rel=\"Ext.draw.Surface-method-removeManagedListener\" class=\"docClass\">removeManagedListener</a>.</p>\n\n<p>Removes listeners that were added by the <a href=\"#/api/Ext.draw.Surface-method-mon\" rel=\"Ext.draw.Surface-method-mon\" class=\"docClass\">mon</a> method.</p>\n",
884         "linenr": 687,
885         "return": {
886           "type": "void",
887           "doc": "\n"
888         },
889         "html_filename": "Observable.html"
890       },
891       {
892         "deprecated": null,
893         "alias": null,
894         "protected": false,
895         "tagname": "method",
896         "href": "Observable.html#Ext-util-Observable-method-observe",
897         "shortDoc": "Sets observability on the passed class constructor. ...",
898         "static": true,
899         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
900         "private": false,
901         "params": [
902           {
903             "type": "Function",
904             "optional": false,
905             "doc": "<p>The class constructor to make observable.</p>\n",
906             "name": "c"
907           },
908           {
909             "type": "Object",
910             "optional": false,
911             "doc": "<p>An object containing a series of listeners to add. See <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a>.</p>\n",
912             "name": "listeners"
913           }
914         ],
915         "name": "observe",
916         "owner": "Ext.util.Observable",
917         "doc": "<p>Sets observability on the passed class constructor.</p>\n\n<p>This makes any event fired on any instance of the passed class also fire a single event through\nthe <strong>class</strong> allowing for central handling of events on many instances at once.</p>\n\n<p>Usage:</p>\n\n<pre><code>Ext.util.Observable.observe(Ext.data.Connection);\nExt.data.Connection.on('beforerequest', function(con, options) {\n    console.log('Ajax request made to ' + options.url);\n});\n</code></pre>\n",
918         "linenr": 69,
919         "return": {
920           "type": "void",
921           "doc": "\n"
922         },
923         "html_filename": "Observable.html"
924       },
925       {
926         "deprecated": null,
927         "alias": {
928           "tagname": "alias",
929           "cls": "Ext.util.Observable",
930           "doc": null,
931           "owner": "addListener"
932         },
933         "protected": false,
934         "tagname": "method",
935         "href": "Observable.html#Ext-util-Observable-method-on",
936         "shortDoc": "Shorthand for addListener. ...",
937         "static": false,
938         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
939         "private": false,
940         "params": [
941           {
942             "type": "String",
943             "optional": false,
944             "doc": "<p>The name of the event to listen for. May also be an object who's property names are\nevent names.</p>\n",
945             "name": "eventName"
946           },
947           {
948             "type": "Function",
949             "optional": false,
950             "doc": "<p>The method the event invokes.  Will be called with arguments given to\n<a href=\"#/api/Ext.draw.Surface-method-fireEvent\" rel=\"Ext.draw.Surface-method-fireEvent\" class=\"docClass\">fireEvent</a> plus the <code>options</code> parameter described below.</p>\n",
951             "name": "handler"
952           },
953           {
954             "type": "Object",
955             "optional": true,
956             "doc": "<p>(optional) The scope (<code>this</code> reference) in which the handler function is executed. <strong>If\nomitted, defaults to the object which fired the event.</strong></p>\n",
957             "name": "scope"
958           },
959           {
960             "type": "Object",
961             "optional": true,
962             "doc": "<p>(optional) An object containing handler configuration.</p>\n\n<p><strong>Note:</strong> Unlike in ExtJS 3.x, the options object will also be passed as the last argument to every event handler.</p>\n\n<p>This object may contain any of the following properties:</p>\n\n<ul>\n<li><p><strong>scope</strong> : Object</p>\n\n<p>The scope (<code>this</code> reference) in which the handler function is executed. <strong>If omitted, defaults to the object\nwhich fired the event.</strong></p></li>\n<li><p><strong>delay</strong> : Number</p>\n\n<p>The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>\n<li><p><strong>single</strong> : Boolean</p>\n\n<p>True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>\n<li><p><strong>buffer</strong> : Number</p>\n\n<p>Causes the handler to be scheduled to run in an <a href=\"#/api/Ext.util.DelayedTask\" rel=\"Ext.util.DelayedTask\" class=\"docClass\">Ext.util.DelayedTask</a> delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is <em>not</em> invoked, but the new\nhandler is scheduled in its place.</p></li>\n<li><p><strong>target</strong> : Observable</p>\n\n<p>Only call the handler if the event was fired on the target Observable, <em>not</em> if the event was bubbled up from a\nchild Observable.</p></li>\n<li><p><strong>element</strong> : String</p>\n\n<p><strong>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</strong> The name of a Component\nproperty which references an element to add a listener to.</p>\n\n<p>This option is useful during Component construction to add DOM event listeners to elements of\n<a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which will exist only after the Component is rendered.\nFor example, to add a click listener to a Panel's body:</p>\n\n<pre><code>new Ext.panel.Panel({\n    title: 'The title',\n    listeners: {\n        click: this.handlePanelClick,\n        element: 'body'\n    }\n});\n</code></pre></li>\n</ul>\n\n\n<p><strong>Combining Options</strong></p>\n\n<p>Using the options argument, it is possible to combine different types of listeners:</p>\n\n<p>A delayed, one-time listener.</p>\n\n<pre><code>myPanel.on('hide', this.handleClick, this, {\n    single: true,\n    delay: 100\n});\n</code></pre>\n\n<p><strong>Attaching multiple handlers in 1 call</strong></p>\n\n<p>The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple events. For example:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: this.onCellClick,\n    mouseover: this.onMouseOver,\n    mouseout: this.onMouseOut,\n    scope: this // Important. Ensure \"this\" is correct during handler execution\n});\n</code></pre>\n\n<p>One can also specify options for each event handler separately:</p>\n\n<pre><code>myGridPanel.on({\n    cellClick: {fn: this.onCellClick, scope: this, single: true},\n    mouseover: {fn: panel.onMouseOver, scope: panel}\n});\n</code></pre>\n",
963             "name": "options"
964           }
965         ],
966         "name": "on",
967         "owner": "Ext.util.Observable",
968         "doc": "<p>Shorthand for <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a>.</p>\n\n<p>Appends an event handler to this object.</p>\n",
969         "linenr": 669,
970         "return": {
971           "type": "void",
972           "doc": "\n"
973         },
974         "html_filename": "Observable.html"
975       },
976       {
977         "deprecated": null,
978         "alias": null,
979         "protected": false,
980         "tagname": "method",
981         "href": "Base3.html#Ext-Base-method-override",
982         "shortDoc": "Override prototype members of this class. ...",
983         "static": true,
984         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
985         "private": false,
986         "params": [
987           {
988             "type": "Object",
989             "optional": false,
990             "doc": "\n",
991             "name": "members"
992           }
993         ],
994         "name": "override",
995         "owner": "Ext.Base",
996         "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",
997         "linenr": 518,
998         "return": {
999           "type": "Ext.Base",
1000           "doc": "<p>this</p>\n"
1001         },
1002         "html_filename": "Base3.html"
1003       },
1004       {
1005         "deprecated": null,
1006         "alias": null,
1007         "protected": false,
1008         "tagname": "method",
1009         "href": "Observable.html#Ext-util-Observable-method-relayEvents",
1010         "shortDoc": "Relays selected events from the specified Observable as if the events were fired by this. ...",
1011         "static": false,
1012         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1013         "private": false,
1014         "params": [
1015           {
1016             "type": "Object",
1017             "optional": false,
1018             "doc": "<p>The Observable whose events this object is to relay.</p>\n",
1019             "name": "origin"
1020           },
1021           {
1022             "type": "[String]",
1023             "optional": false,
1024             "doc": "<p>Array of event names to relay.</p>\n",
1025             "name": "events"
1026           },
1027           {
1028             "type": "Object",
1029             "optional": false,
1030             "doc": "\n",
1031             "name": "prefix"
1032           }
1033         ],
1034         "name": "relayEvents",
1035         "owner": "Ext.util.Observable",
1036         "doc": "<p>Relays selected events from the specified Observable as if the events were fired by <code>this</code>.</p>\n",
1037         "linenr": 573,
1038         "return": {
1039           "type": "void",
1040           "doc": "\n"
1041         },
1042         "html_filename": "Observable.html"
1043       },
1044       {
1045         "deprecated": null,
1046         "alias": null,
1047         "protected": false,
1048         "tagname": "method",
1049         "href": "Observable.html#Ext-util-Observable-method-releaseCapture",
1050         "shortDoc": "Removes all added captures from the Observable. ...",
1051         "static": true,
1052         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1053         "private": false,
1054         "params": [
1055           {
1056             "type": "Observable",
1057             "optional": false,
1058             "doc": "<p>The Observable to release</p>\n",
1059             "name": "o"
1060           }
1061         ],
1062         "name": "releaseCapture",
1063         "owner": "Ext.util.Observable",
1064         "doc": "<p>Removes <strong>all</strong> added captures from the Observable.</p>\n",
1065         "linenr": 44,
1066         "return": {
1067           "type": "void",
1068           "doc": "\n"
1069         },
1070         "html_filename": "Observable.html"
1071       },
1072       {
1073         "deprecated": null,
1074         "alias": null,
1075         "protected": false,
1076         "tagname": "method",
1077         "href": "Surface.html#Ext-draw-Surface-method-remove",
1078         "shortDoc": "Removes a given sprite from the surface, optionally destroying the sprite in the process. ...",
1079         "static": false,
1080         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1081         "private": false,
1082         "params": [
1083           {
1084             "type": "Ext.draw.Sprite",
1085             "optional": false,
1086             "doc": "\n",
1087             "name": "sprite"
1088           },
1089           {
1090             "type": "Boolean",
1091             "optional": false,
1092             "doc": "\n",
1093             "name": "destroySprite"
1094           }
1095         ],
1096         "name": "remove",
1097         "owner": "Ext.draw.Surface",
1098         "doc": "<p>Removes a given sprite from the surface, optionally destroying the sprite in the process.\nYou can also call the sprite own <code>remove</code> method.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.remove(sprite);\n//or...\nsprite.remove();\n</code></pre>\n",
1099         "linenr": 573,
1100         "return": {
1101           "type": "Number",
1102           "doc": "<p>the sprite's new index in the list</p>\n"
1103         },
1104         "html_filename": "Surface.html"
1105       },
1106       {
1107         "deprecated": null,
1108         "alias": null,
1109         "protected": false,
1110         "tagname": "method",
1111         "href": "Surface.html#Ext-draw-Surface-method-removeAll",
1112         "shortDoc": "Removes all sprites from the surface, optionally destroying the sprites in the process. ...",
1113         "static": false,
1114         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1115         "private": false,
1116         "params": [
1117           {
1118             "type": "Boolean",
1119             "optional": false,
1120             "doc": "<p>Whether to destroy all sprites when removing them.</p>\n",
1121             "name": "destroySprites"
1122           }
1123         ],
1124         "name": "removeAll",
1125         "owner": "Ext.draw.Surface",
1126         "doc": "<p>Removes all sprites from the surface, optionally destroying the sprites in the process.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.removeAll();\n</code></pre>\n",
1127         "linenr": 600,
1128         "return": {
1129           "type": "Number",
1130           "doc": "<p>The sprite's new index in the list.</p>\n"
1131         },
1132         "html_filename": "Surface.html"
1133       },
1134       {
1135         "deprecated": null,
1136         "alias": null,
1137         "protected": false,
1138         "tagname": "method",
1139         "href": "Surface.html#Ext-draw-Surface-method-removeCls",
1140         "shortDoc": "Removes one or more CSS classes from the element. ...",
1141         "static": false,
1142         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1143         "private": false,
1144         "params": [
1145           {
1146             "type": "Object",
1147             "optional": false,
1148             "doc": "<p>The sprite to remove the class from.</p>\n",
1149             "name": "sprite"
1150           },
1151           {
1152             "type": "String/[String]",
1153             "optional": false,
1154             "doc": "<p>The CSS class to remove, or an array of classes</p>\n",
1155             "name": "className"
1156           }
1157         ],
1158         "name": "removeCls",
1159         "owner": "Ext.draw.Surface",
1160         "doc": "<p>Removes one or more CSS classes from the element.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.removeCls(sprite, 'x-visible');\n</code></pre>\n",
1161         "linenr": 286,
1162         "return": {
1163           "type": "void",
1164           "doc": "\n"
1165         },
1166         "html_filename": "Surface.html"
1167       },
1168       {
1169         "deprecated": null,
1170         "alias": null,
1171         "protected": false,
1172         "tagname": "method",
1173         "href": "Observable.html#Ext-util-Observable-method-removeListener",
1174         "shortDoc": "Removes an event handler. ...",
1175         "static": false,
1176         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1177         "private": false,
1178         "params": [
1179           {
1180             "type": "String",
1181             "optional": false,
1182             "doc": "<p>The type of event the handler was associated with.</p>\n",
1183             "name": "eventName"
1184           },
1185           {
1186             "type": "Function",
1187             "optional": false,
1188             "doc": "<p>The handler to remove. <strong>This must be a reference to the function passed into the\n<a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> call.</strong></p>\n",
1189             "name": "handler"
1190           },
1191           {
1192             "type": "Object",
1193             "optional": true,
1194             "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
1195             "name": "scope"
1196           }
1197         ],
1198         "name": "removeListener",
1199         "owner": "Ext.util.Observable",
1200         "doc": "<p>Removes an event handler.</p>\n",
1201         "linenr": 392,
1202         "return": {
1203           "type": "void",
1204           "doc": "\n"
1205         },
1206         "html_filename": "Observable.html"
1207       },
1208       {
1209         "deprecated": null,
1210         "alias": null,
1211         "protected": false,
1212         "tagname": "method",
1213         "href": "Observable.html#Ext-util-Observable-method-removeManagedListener",
1214         "shortDoc": "Removes listeners that were added by the mon method. ...",
1215         "static": false,
1216         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1217         "private": false,
1218         "params": [
1219           {
1220             "type": "Observable|Element",
1221             "optional": false,
1222             "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
1223             "name": "item"
1224           },
1225           {
1226             "type": "Object|String",
1227             "optional": false,
1228             "doc": "<p>The event name, or an object containing event name properties.</p>\n",
1229             "name": "ename"
1230           },
1231           {
1232             "type": "Function",
1233             "optional": false,
1234             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the handler function.</p>\n",
1235             "name": "fn"
1236           },
1237           {
1238             "type": "Object",
1239             "optional": false,
1240             "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this is the scope (<code>this</code> reference)\nin which the handler function is executed.</p>\n",
1241             "name": "scope"
1242           }
1243         ],
1244         "name": "removeManagedListener",
1245         "owner": "Ext.util.Observable",
1246         "doc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.draw.Surface-method-mon\" rel=\"Ext.draw.Surface-method-mon\" class=\"docClass\">mon</a> method.</p>\n",
1247         "linenr": 197,
1248         "return": {
1249           "type": "void",
1250           "doc": "\n"
1251         },
1252         "html_filename": "Observable.html"
1253       },
1254       {
1255         "deprecated": null,
1256         "alias": null,
1257         "protected": false,
1258         "tagname": "method",
1259         "href": "Observable.html#Ext-util-Observable-method-resumeEvents",
1260         "shortDoc": "Resumes firing events (see suspendEvents). ...",
1261         "static": false,
1262         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1263         "private": false,
1264         "params": [
1265
1266         ],
1267         "name": "resumeEvents",
1268         "owner": "Ext.util.Observable",
1269         "doc": "<p>Resumes firing events (see <a href=\"#/api/Ext.draw.Surface-method-suspendEvents\" rel=\"Ext.draw.Surface-method-suspendEvents\" class=\"docClass\">suspendEvents</a>).</p>\n\n<p>If events were suspended using the <code>**queueSuspended**</code> parameter, then all events fired\nduring event suspension will be sent to any listeners now.</p>\n",
1270         "linenr": 554,
1271         "return": {
1272           "type": "void",
1273           "doc": "\n"
1274         },
1275         "html_filename": "Observable.html"
1276       },
1277       {
1278         "deprecated": null,
1279         "alias": null,
1280         "protected": false,
1281         "tagname": "method",
1282         "href": "Surface.html#Ext-draw-Surface-method-setSize",
1283         "shortDoc": "Sets the size of the surface. ...",
1284         "static": false,
1285         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1286         "private": false,
1287         "params": [
1288           {
1289             "type": "Number",
1290             "optional": false,
1291             "doc": "<p>The new width of the canvas.</p>\n",
1292             "name": "w"
1293           },
1294           {
1295             "type": "Number",
1296             "optional": false,
1297             "doc": "<p>The new height of the canvas.</p>\n",
1298             "name": "h"
1299           }
1300         ],
1301         "name": "setSize",
1302         "owner": "Ext.draw.Surface",
1303         "doc": "<p>Sets the size of the surface. Accomodates the background (if any) to fit the new size too.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.setSize(500, 500);\n</code></pre>\n\n<p>This method is generally called when also setting the size of the draw Component.</p>\n",
1304         "linenr": 373,
1305         "return": {
1306           "type": "void",
1307           "doc": "\n"
1308         },
1309         "html_filename": "Surface.html"
1310       },
1311       {
1312         "deprecated": null,
1313         "alias": null,
1314         "protected": false,
1315         "tagname": "method",
1316         "href": "Surface.html#Ext-draw-Surface-method-setStyle",
1317         "shortDoc": "Sets CSS style attributes to an element. ...",
1318         "static": false,
1319         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1320         "private": false,
1321         "params": [
1322           {
1323             "type": "Object",
1324             "optional": false,
1325             "doc": "<p>The sprite to add, or an array of classes to</p>\n",
1326             "name": "sprite"
1327           },
1328           {
1329             "type": "Object",
1330             "optional": false,
1331             "doc": "<p>An Object with CSS styles.</p>\n",
1332             "name": "styles"
1333           }
1334         ],
1335         "name": "setStyle",
1336         "owner": "Ext.draw.Surface",
1337         "doc": "<p>Sets CSS style attributes to an element.</p>\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.setStyle(sprite, {\n    'cursor': 'pointer'\n});\n</code></pre>\n",
1338         "linenr": 299,
1339         "return": {
1340           "type": "void",
1341           "doc": "\n"
1342         },
1343         "html_filename": "Surface.html"
1344       },
1345       {
1346         "deprecated": null,
1347         "alias": null,
1348         "protected": false,
1349         "tagname": "method",
1350         "href": "Surface.html#Ext-draw-Surface-method-setText",
1351         "shortDoc": "Changes the text in the sprite element. ...",
1352         "static": false,
1353         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1354         "private": false,
1355         "params": [
1356           {
1357             "type": "Object",
1358             "optional": false,
1359             "doc": "<p>The Sprite to change the text.</p>\n",
1360             "name": "sprite"
1361           },
1362           {
1363             "type": "String",
1364             "optional": false,
1365             "doc": "<p>The new text to be set.</p>\n",
1366             "name": "text"
1367           }
1368         ],
1369         "name": "setText",
1370         "owner": "Ext.draw.Surface",
1371         "doc": "<p>Changes the text in the sprite element. The sprite must be a <code>text</code> sprite.\nThis method can also be called from <a href=\"#/api/Ext.draw.Sprite\" rel=\"Ext.draw.Sprite\" class=\"docClass\">Ext.draw.Sprite</a>.</p>\n\n<p>For example:</p>\n\n<pre><code>var spriteGroup = drawComponent.surface.setText(sprite, 'my new text');\n</code></pre>\n",
1372         "linenr": 809,
1373         "return": {
1374           "type": "void",
1375           "doc": "\n"
1376         },
1377         "html_filename": "Surface.html"
1378       },
1379       {
1380         "deprecated": null,
1381         "alias": null,
1382         "protected": true,
1383         "tagname": "method",
1384         "href": "Base3.html#Ext-Base-method-statics",
1385         "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
1386         "static": false,
1387         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
1388         "private": false,
1389         "params": [
1390
1391         ],
1392         "name": "statics",
1393         "owner": "Ext.Base",
1394         "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",
1395         "linenr": 199,
1396         "return": {
1397           "type": "Class",
1398           "doc": "\n"
1399         },
1400         "html_filename": "Base3.html"
1401       },
1402       {
1403         "deprecated": null,
1404         "alias": null,
1405         "protected": false,
1406         "tagname": "method",
1407         "href": "Observable.html#Ext-util-Observable-method-suspendEvents",
1408         "shortDoc": "Suspends the firing of all events. ...",
1409         "static": false,
1410         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1411         "private": false,
1412         "params": [
1413           {
1414             "type": "Boolean",
1415             "optional": false,
1416             "doc": "<p>Pass as true to queue up suspended events to be fired\nafter the <a href=\"#/api/Ext.draw.Surface-method-resumeEvents\" rel=\"Ext.draw.Surface-method-resumeEvents\" class=\"docClass\">resumeEvents</a> call instead of discarding all suspended events.</p>\n",
1417             "name": "queueSuspended"
1418           }
1419         ],
1420         "name": "suspendEvents",
1421         "owner": "Ext.util.Observable",
1422         "doc": "<p>Suspends the firing of all events. (see <a href=\"#/api/Ext.draw.Surface-method-resumeEvents\" rel=\"Ext.draw.Surface-method-resumeEvents\" class=\"docClass\">resumeEvents</a>)</p>\n",
1423         "linenr": 541,
1424         "return": {
1425           "type": "void",
1426           "doc": "\n"
1427         },
1428         "html_filename": "Observable.html"
1429       },
1430       {
1431         "deprecated": null,
1432         "alias": {
1433           "tagname": "alias",
1434           "cls": "Ext.util.Observable",
1435           "doc": null,
1436           "owner": "removeListener"
1437         },
1438         "protected": false,
1439         "tagname": "method",
1440         "href": "Observable.html#Ext-util-Observable-method-un",
1441         "shortDoc": "Shorthand for removeListener. ...",
1442         "static": false,
1443         "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Observable.js",
1444         "private": false,
1445         "params": [
1446           {
1447             "type": "String",
1448             "optional": false,
1449             "doc": "<p>The type of event the handler was associated with.</p>\n",
1450             "name": "eventName"
1451           },
1452           {
1453             "type": "Function",
1454             "optional": false,
1455             "doc": "<p>The handler to remove. <strong>This must be a reference to the function passed into the\n<a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> call.</strong></p>\n",
1456             "name": "handler"
1457           },
1458           {
1459             "type": "Object",
1460             "optional": true,
1461             "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
1462             "name": "scope"
1463           }
1464         ],
1465         "name": "un",
1466         "owner": "Ext.util.Observable",
1467         "doc": "<p>Shorthand for <a href=\"#/api/Ext.draw.Surface-method-removeListener\" rel=\"Ext.draw.Surface-method-removeListener\" class=\"docClass\">removeListener</a>.</p>\n\n<p>Removes an event handler.</p>\n",
1468         "linenr": 675,
1469         "return": {
1470           "type": "void",
1471           "doc": "\n"
1472         },
1473         "html_filename": "Observable.html"
1474       }
1475     ],
1476     "property": [
1477       {
1478         "type": "Class",
1479         "deprecated": null,
1480         "alias": null,
1481         "protected": true,
1482         "tagname": "property",
1483         "href": "Base3.html#Ext-Base-property-self",
1484         "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
1485         "static": false,
1486         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
1487         "private": false,
1488         "name": "self",
1489         "owner": "Ext.Base",
1490         "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",
1491         "linenr": 18,
1492         "html_filename": "Base3.html"
1493       }
1494     ],
1495     "cssVar": [
1496
1497     ],
1498     "cssMixin": [
1499
1500     ],
1501     "event": [
1502
1503     ]
1504   },
1505   "singleton": false,
1506   "alias": null,
1507   "superclasses": [
1508     "Ext.Base"
1509   ],
1510   "protected": false,
1511   "tagname": "class",
1512   "mixins": [
1513     "Ext.util.Observable"
1514   ],
1515   "href": "Surface.html#Ext-draw-Surface",
1516   "subclasses": [
1517     "Ext.draw.engine.Vml",
1518     "Ext.draw.engine.Svg"
1519   ],
1520   "static": false,
1521   "author": null,
1522   "component": false,
1523   "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Surface.js",
1524   "private": false,
1525   "alternateClassNames": [
1526
1527   ],
1528   "name": "Ext.draw.Surface",
1529   "doc": "<p>A Surface is an interface to render methods inside a draw <a href=\"#/api/Ext.draw.Component\" rel=\"Ext.draw.Component\" class=\"docClass\">Ext.draw.Component</a>.\nA Surface contains methods to render sprites, get bounding boxes of sprites, add\nsprites to the canvas, initialize other graphic components, etc. One of the most used\nmethods for this class is the <code>add</code> method, to add Sprites to the surface.</p>\n\n<p>Most of the Surface methods are abstract and they have a concrete implementation\nin VML or SVG engines.</p>\n\n<p>A Surface instance can be accessed as a property of a draw component. For example:</p>\n\n<pre><code>drawComponent.surface.add({\n    type: 'circle',\n    fill: '#ffc',\n    radius: 100,\n    x: 100,\n    y: 100\n});\n</code></pre>\n\n<p>The configuration object passed in the <code>add</code> method is the same as described in the <a href=\"#/api/Ext.draw.Sprite\" rel=\"Ext.draw.Sprite\" class=\"docClass\">Ext.draw.Sprite</a>\nclass documentation.</p>\n\n<h1>Listeners</h1>\n\n<p>You can also add event listeners to the surface using the <code>Observable</code> listener syntax. Supported events are:</p>\n\n<ul>\n<li>mousedown</li>\n<li>mouseup</li>\n<li>mouseover</li>\n<li>mouseout</li>\n<li>mousemove</li>\n<li>mouseenter</li>\n<li>mouseleave</li>\n<li>click</li>\n</ul>\n\n\n<p>For example:</p>\n\n<pre><code>drawComponent.surface.on({\n   'mousemove': function() {\n        console.log('moving the mouse over the surface');   \n    }\n});\n</code></pre>\n\n<h1>Example</h1>\n\n<pre><code>var drawComponent = Ext.create('Ext.draw.Component', {\n    width: 800,\n    height: 600,\n    renderTo: document.body\n}), surface = drawComponent.surface;\n\nsurface.add([{\n    type: 'circle',\n    radius: 10,\n    fill: '#f00',\n    x: 10,\n    y: 10,\n    group: 'circles'\n}, {\n    type: 'circle',\n    radius: 10,\n    fill: '#0f0',\n    x: 50,\n    y: 50,\n    group: 'circles'\n}, {\n    type: 'circle',\n    radius: 10,\n    fill: '#00f',\n    x: 100,\n    y: 100,\n    group: 'circles'\n}, {\n    type: 'rect',\n    width: 20,\n    height: 20,\n    fill: '#f00',\n    x: 10,\n    y: 10,\n    group: 'rectangles'\n}, {\n    type: 'rect',\n    width: 20,\n    height: 20,\n    fill: '#0f0',\n    x: 50,\n    y: 50,\n    group: 'rectangles'\n}, {\n    type: 'rect',\n    width: 20,\n    height: 20,\n    fill: '#00f',\n    x: 100,\n    y: 100,\n    group: 'rectangles'\n}]);\n\n// Get references to my groups\ncircles = surface.getGroup('circles');\nrectangles = surface.getGroup('rectangles');\n\n// Animate the circles down\ncircles.animate({\n    duration: 1000,\n    to: {\n        translate: {\n            y: 200\n        }\n    }\n});\n\n// Animate the rectangles across\nrectangles.animate({\n    duration: 1000,\n    to: {\n        translate: {\n            x: 200\n        }\n    }\n});\n</code></pre>\n",
1530   "mixedInto": [
1531
1532   ],
1533   "linenr": 1,
1534   "xtypes": [
1535
1536   ],
1537   "html_filename": "Surface.html",
1538   "extends": "Ext.Base"
1539 });