Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.draw.Surface.js
1 Ext.data.JsonP.Ext_draw_Surface({
2   "tagname": "class",
3   "name": "Ext.draw.Surface",
4   "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<h3>Listeners</h3>\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<h2>Example</h2>\n\n<pre><code>drawComponent.surface.add([\n    {\n        type: 'circle',\n        radius: 10,\n        fill: '#f00',\n        x: 10,\n        y: 10,\n        group: 'circles'\n    },\n    {\n        type: 'circle',\n        radius: 10,\n        fill: '#0f0',\n        x: 50,\n        y: 50,\n        group: 'circles'\n    },\n    {\n        type: 'circle',\n        radius: 10,\n        fill: '#00f',\n        x: 100,\n        y: 100,\n        group: 'circles'\n    },\n    {\n        type: 'rect',\n        radius: 10,\n        x: 10,\n        y: 10,\n        group: 'rectangles'\n    },\n    {\n        type: 'rect',\n        radius: 10,\n        x: 50,\n        y: 50,\n        group: 'rectangles'\n    },\n    {\n        type: 'rect',\n        radius: 10,\n        x: 100,\n        y: 100,\n        group: 'rectangles'\n    }\n]);\n\n// Get references to my groups\nmy circles = surface.getGroup('circles');\nmy rectangles = surface.getGroup('rectangles');\n\n// Animate the circles down\ncircles.animate({\n    duration: 1000,\n    translate: {\n        y: 200\n    }\n});\n\n// Animate the rectangles across\nrectangles.animate({\n    duration: 1000,\n    translate: {\n        x: 200\n    }\n});\n</code></pre>\n",
5   "extends": "Object",
6   "mixins": [
7     "Ext.util.Observable"
8   ],
9   "alternateClassNames": [
10
11   ],
12   "xtype": null,
13   "author": null,
14   "docauthor": null,
15   "singleton": false,
16   "private": false,
17   "cfg": [
18     {
19       "tagname": "cfg",
20       "name": "height",
21       "member": "Ext.draw.Surface",
22       "type": "Number",
23       "doc": "<p>The height of this component in pixels (defaults to auto).\n<b>Note</b> to express this dimension as a percentage or offset see <a href=\"#/api/Ext.Component--anchor\" rel=\"Ext.Component--anchor\" class=\"docClass\">Ext.Component.anchor</a>.</p>\n",
24       "private": false,
25       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
26       "linenr": 199,
27       "html_filename": "Surface.html",
28       "href": "Surface.html#Ext-draw-Surface-cfg-height",
29       "shortDoc": "The height of this component in pixels (defaults to auto).\nNote to express this dimension as a percentage or offset s..."
30     },
31     {
32       "tagname": "cfg",
33       "name": "listeners",
34       "member": "Ext.util.Observable",
35       "type": "Object",
36       "doc": "<p>(optional) <p>A config object containing one or more event handlers to be added to this\nobject during initialization.  This should be a valid listeners config object as specified in the\n<a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> example for attaching multiple handlers at once.</p></p>\n\n<br><p><b><u>DOM events from ExtJs <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a></u></b></p>\n\n\n<br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this\n\n\n<p>is usually only 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\n<b><code><a href=\"#/api/Ext.view.View--click\" rel=\"Ext.view.View--click\" class=\"docClass\">click</a></code></b> event passing the node clicked on. To access DOM\nevents directly from a child element of a Component, we need to specify the <code>element</code> option to\nidentify the Component property to add a DOM 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\n\n<p></p></p>\n",
37       "private": false,
38       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
39       "linenr": 103,
40       "html_filename": "Observable.html",
41       "href": "Observable.html#Ext-util-Observable-cfg-listeners",
42       "shortDoc": "(optional) A config object containing one or more event handlers to be added to this\nobject during initialization.  T..."
43     },
44     {
45       "tagname": "cfg",
46       "name": "width",
47       "member": "Ext.draw.Surface",
48       "type": "Number",
49       "doc": "<p>The width of this component in pixels (defaults to auto).\n<b>Note</b> to express this dimension as a percentage or offset see <a href=\"#/api/Ext.Component--anchor\" rel=\"Ext.Component--anchor\" class=\"docClass\">Ext.Component.anchor</a>.</p>\n",
50       "private": false,
51       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
52       "linenr": 204,
53       "html_filename": "Surface.html",
54       "href": "Surface.html#Ext-draw-Surface-cfg-width",
55       "shortDoc": "The width of this component in pixels (defaults to auto).\nNote to express this dimension as a percentage or offset se..."
56     }
57   ],
58   "method": [
59     {
60       "tagname": "method",
61       "name": "add",
62       "member": "Ext.draw.Surface",
63       "doc": "<p>Add 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 passed 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",
64       "params": [
65
66       ],
67       "return": {
68         "type": "void",
69         "doc": "\n"
70       },
71       "private": false,
72       "static": false,
73       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
74       "linenr": 474,
75       "html_filename": "Surface.html",
76       "href": "Surface.html#Ext-draw-Surface-method-add",
77       "shortDoc": "Add a Sprite to the surface. See Ext.draw.Sprite for the configuration object to be passed into this method.\n\nFor exa..."
78     },
79     {
80       "tagname": "method",
81       "name": "addCls",
82       "member": "Ext.draw.Surface",
83       "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",
84       "params": [
85         {
86           "type": "Object",
87           "name": "sprite",
88           "doc": "<p>The sprite to add the class to.</p>\n",
89           "optional": false
90         },
91         {
92           "type": "String/Array",
93           "name": "className",
94           "doc": "<p>The CSS class to add, or an array of classes</p>\n",
95           "optional": false
96         }
97       ],
98       "return": {
99         "type": "void",
100         "doc": "\n"
101       },
102       "private": false,
103       "static": false,
104       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
105       "linenr": 261,
106       "html_filename": "Surface.html",
107       "href": "Surface.html#Ext-draw-Surface-method-addCls",
108       "shortDoc": "Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.\n\nFor example:\n\n     dr..."
109     },
110     {
111       "tagname": "method",
112       "name": "addEvents",
113       "member": "Ext.util.Observable",
114       "doc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n",
115       "params": [
116         {
117           "type": "Object/String",
118           "name": "o",
119           "doc": "<p>Either an object with event names as properties with a value of <code>true</code>\nor the first event name string if multiple event names are being passed as separate parameters.</p>\n",
120           "optional": false
121         },
122         {
123           "type": "String",
124           "name": "",
125           "doc": "<p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.\nUsage:</p>\n\n<pre><code>this.addEvents('storeloaded', 'storecleared');\n</code></pre>\n\n",
126           "optional": false
127         }
128       ],
129       "return": {
130         "type": "void",
131         "doc": "\n"
132       },
133       "private": false,
134       "static": false,
135       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
136       "linenr": 452,
137       "html_filename": "Observable.html",
138       "href": "Observable.html#Ext-util-Observable-method-addEvents",
139       "shortDoc": "<p>Adds the specified events to the list of events which this Observable may fire.</p>\n"
140     },
141     {
142       "tagname": "method",
143       "name": "addGradient",
144       "member": "Ext.draw.Surface",
145       "doc": "<p>Add 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><p><strong>stops</strong> - object - An object with numbers as keys (from 0 to 100) and style objects as values.</p>\n\n<p>  For example:</p>\n\n<pre><code>         drawComponent.surface.addGradient({\n             id: 'gradientId',\n             angle: 45,\n             stops: {\n                 0: {\n                     color: '#555'\n                 },\n                 100: {\n                     color: '#ddd'\n                 }\n             }\n         });\n</code></pre></li>\n</ul>\n\n",
146       "params": [
147
148       ],
149       "return": {
150         "type": "void",
151         "doc": "\n"
152       },
153       "private": false,
154       "static": false,
155       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
156       "linenr": 440,
157       "html_filename": "Surface.html",
158       "href": "Surface.html#Ext-draw-Surface-method-addGradient",
159       "shortDoc": "Add a gradient definition to the Surface. Note that in some surface engines, adding\na gradient via this method will n..."
160     },
161     {
162       "tagname": "method",
163       "name": "addListener",
164       "member": "Ext.util.Observable",
165       "doc": "<p>Appends an event handler to this object.</p>\n",
166       "params": [
167         {
168           "type": "String",
169           "name": "eventName",
170           "doc": "<p>The name of the event to listen for. May also be an object who's property names are event names. See</p>\n",
171           "optional": false
172         },
173         {
174           "type": "Function",
175           "name": "handler",
176           "doc": "<p>The method the event invokes.</p>\n",
177           "optional": false
178         },
179         {
180           "type": "Object",
181           "name": "scope",
182           "doc": "<p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></p>\n",
183           "optional": true
184         },
185         {
186           "type": "Object",
187           "name": "options",
188           "doc": "<p>(optional) An object containing handler configuration.\nproperties. This may contain any of the following properties:<ul>\n<li><b>scope</b> : Object<div class=\"sub-desc\">The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></div></li>\n<li><b>delay</b> : Number<div class=\"sub-desc\">The number of milliseconds to delay the invocation of the handler after the event fires.</div></li>\n<li><b>single</b> : Boolean<div class=\"sub-desc\">True to add a handler to handle just the next firing of the event, and then remove itself.</div></li>\n<li><b>buffer</b> : Number<div class=\"sub-desc\">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\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>\n<li><b>target</b> : Observable<div class=\"sub-desc\">Only call the handler if the event was fired on the target Observable, <i>not</i>\nif the event was bubbled up from a child Observable.</div></li>\n<li><b>element</b> : String<div class=\"sub-desc\"><b>This option is only valid for listeners bound to <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a>.</b>\nThe name of a Component property 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 <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Components</a> which\nwill exist only after the Component is rendered. For example, to add a click listener to a Panel's body:\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></p>\n\n\n<p>When added in this way, the options available are the options applicable to <a href=\"#/api/Ext.core.Element-method-addListener\" rel=\"Ext.core.Element-method-addListener\" class=\"docClass\">Ext.core.Element.addListener</a></p>\n\n\n<p></div></li>\n</ul><br></p>\n\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA delayed, one-time listener.\n<pre><code>myPanel.on('hide', this.handleClick, this, {\nsingle: true,\ndelay: 100\n});</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple events. For example:\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<p>\n\n",
189           "optional": true
190         }
191       ],
192       "return": {
193         "type": "void",
194         "doc": "\n"
195       },
196       "private": false,
197       "static": false,
198       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
199       "linenr": 271,
200       "html_filename": "Observable.html",
201       "href": "Observable.html#Ext-util-Observable-method-addListener",
202       "shortDoc": "<p>Appends an event handler to this object.</p>\n"
203     },
204     {
205       "tagname": "method",
206       "name": "addManagedListener",
207       "member": "Ext.util.Observable",
208       "doc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n",
209       "params": [
210         {
211           "type": "Observable/Element",
212           "name": "item",
213           "doc": "<p>The item to which to add a listener/listeners.</p>\n",
214           "optional": false
215         },
216         {
217           "type": "Object/String",
218           "name": "ename",
219           "doc": "<p>The event name, or an object containing event name properties.</p>\n",
220           "optional": false
221         },
222         {
223           "type": "Function",
224           "name": "fn",
225           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the handler function.</p>\n",
226           "optional": false
227         },
228         {
229           "type": "Object",
230           "name": "scope",
231           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the scope (<code>this</code> reference) in which the handler function is executed.</p>\n",
232           "optional": false
233         },
234         {
235           "type": "Object",
236           "name": "opt",
237           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the <a href=\"#/api/Ext.util.Observable-method-addListener\" rel=\"Ext.util.Observable-method-addListener\" class=\"docClass\">addListener</a> options.</p>\n",
238           "optional": false
239         }
240       ],
241       "return": {
242         "type": "void",
243         "doc": "\n"
244       },
245       "private": false,
246       "static": false,
247       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
248       "linenr": 155,
249       "html_filename": "Observable.html",
250       "href": "Observable.html#Ext-util-Observable-method-addManagedListener",
251       "shortDoc": "<p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component\nis destroyed.\n\n"
252     },
253     {
254       "tagname": "method",
255       "name": "capture",
256       "member": "Ext.util.Observable",
257       "doc": "<p>Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.</p>\n",
258       "params": [
259         {
260           "type": "Observable",
261           "name": "o",
262           "doc": "<p>The Observable to capture events from.</p>\n",
263           "optional": false
264         },
265         {
266           "type": "Function",
267           "name": "fn",
268           "doc": "<p>The function to call when an event is fired.</p>\n",
269           "optional": false
270         },
271         {
272           "type": "Object",
273           "name": "scope",
274           "doc": "<p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>\n",
275           "optional": true
276         }
277       ],
278       "return": {
279         "type": "void",
280         "doc": "\n"
281       },
282       "private": false,
283       "static": true,
284       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
285       "linenr": 55,
286       "html_filename": "Observable.html",
287       "href": "Observable.html#Ext-util-Observable-method-capture",
288       "shortDoc": "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + ..."
289     },
290     {
291       "tagname": "method",
292       "name": "clearListeners",
293       "member": "Ext.util.Observable",
294       "doc": "<p>Removes all listeners for this object including the managed listeners</p>\n",
295       "params": [
296
297       ],
298       "return": {
299         "type": "void",
300         "doc": "\n"
301       },
302       "private": false,
303       "static": false,
304       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
305       "linenr": 383,
306       "html_filename": "Observable.html",
307       "href": "Observable.html#Ext-util-Observable-method-clearListeners",
308       "shortDoc": "<p>Removes all listeners for this object including the managed listeners</p>\n"
309     },
310     {
311       "tagname": "method",
312       "name": "clearManagedListeners",
313       "member": "Ext.util.Observable",
314       "doc": "<p>Removes all managed listeners for this object.</p>\n",
315       "params": [
316
317       ],
318       "return": {
319         "type": "void",
320         "doc": "\n"
321       },
322       "private": false,
323       "static": false,
324       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
325       "linenr": 412,
326       "html_filename": "Observable.html",
327       "href": "Observable.html#Ext-util-Observable-method-clearManagedListeners",
328       "shortDoc": "<p>Removes all managed listeners for this object.</p>\n"
329     },
330     {
331       "tagname": "method",
332       "name": "create",
333       "member": "Ext.draw.Surface",
334       "doc": "<p>Create and return a new concrete Surface instance appropriate for the current environment.</p>\n",
335       "params": [
336         {
337           "type": "Object",
338           "name": "config",
339           "doc": "<p>Initial configuration for the Surface instance</p>\n",
340           "optional": false
341         },
342         {
343           "type": "Array",
344           "name": "enginePriority",
345           "doc": "<p>Optional order of implementations to use; the first one that is</p>\n\n<pre><code>           available in the current environment will be used. Defaults to\n           &lt;code&gt;['Svg', 'Vml']&lt;/code&gt;.\n</code></pre>\n",
346           "optional": false
347         }
348       ],
349       "return": {
350         "type": "void",
351         "doc": "\n"
352       },
353       "private": false,
354       "static": false,
355       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
356       "linenr": 131,
357       "html_filename": "Surface.html",
358       "href": "Surface.html#Ext-draw-Surface-method-create",
359       "shortDoc": "<p>Create and return a new concrete Surface instance appropriate for the current environment.</p>\n"
360     },
361     {
362       "tagname": "method",
363       "name": "destroy",
364       "member": "Ext.draw.Surface",
365       "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",
366       "params": [
367
368       ],
369       "return": {
370         "type": "void",
371         "doc": "\n"
372       },
373       "private": false,
374       "static": false,
375       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
376       "linenr": 823,
377       "html_filename": "Surface.html",
378       "href": "Surface.html#Ext-draw-Surface-method-destroy",
379       "shortDoc": "Destroys the surface. This is done by removing all components from it and\nalso removing its reference to a DOM elemen..."
380     },
381     {
382       "tagname": "method",
383       "name": "enableBubble",
384       "member": "Ext.util.Observable",
385       "doc": "<p>Enables events fired by this Observable to bubble up an owner hierarchy by calling\n<code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>\n\n\n<p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href=\"#/api/Ext.Component-method-getBubbleTarget\" rel=\"Ext.Component-method-getBubbleTarget\" class=\"docClass\">Ext.Component.getBubbleTarget</a>. The default\nimplementation in <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Ext.Component</a> returns the Component's immediate owner. But if a known target is required, this can be overridden to\naccess the required target more quickly.</p>\n\n\n<p>Example:</p>\n\n\n<pre><code>Ext.override(Ext.form.field.Base, {\n//  Add functionality to Field&#39;s initComponent to enable the change event to bubble\ninitComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {\n    this.enableBubble('change');\n}),\n\n//  We know that we want Field&#39;s events to bubble directly to the FormPanel.\ngetBubbleTarget : function() {\n    if (!this.formPanel) {\n        this.formPanel = this.findParentByType('form');\n    }\n    return this.formPanel;\n}\n});\n\nvar myForm = new Ext.formPanel({\ntitle: 'User Details',\nitems: [{\n    ...\n}],\nlisteners: {\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\n",
386       "params": [
387         {
388           "type": "String/Array",
389           "name": "events",
390           "doc": "<p>The event name to bubble, or an Array of event names.</p>\n",
391           "optional": false
392         }
393       ],
394       "return": {
395         "type": "void",
396         "doc": "\n"
397       },
398       "private": false,
399       "static": false,
400       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
401       "linenr": 554,
402       "html_filename": "Observable.html",
403       "href": "Observable.html#Ext-util-Observable-method-enableBubble",
404       "shortDoc": "Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present...."
405     },
406     {
407       "tagname": "method",
408       "name": "fireEvent",
409       "member": "Ext.util.Observable",
410       "doc": "<p>Fires the specified event with the passed parameters (minus the event name).</p>\n\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>)\nby calling <a href=\"#/api/Ext.draw.Surface-method-enableBubble\" rel=\"Ext.draw.Surface-method-enableBubble\" class=\"docClass\">enableBubble</a>.</p>\n\n",
411       "params": [
412         {
413           "type": "String",
414           "name": "eventName",
415           "doc": "<p>The name of the event to fire.</p>\n",
416           "optional": false
417         },
418         {
419           "type": "Object...",
420           "name": "args",
421           "doc": "<p>Variable number of parameters are passed to handlers.</p>\n",
422           "optional": false
423         }
424       ],
425       "return": {
426         "type": "Boolean",
427         "doc": "<p>returns false if any of the handlers return false otherwise it returns true.</p>\n"
428       },
429       "private": false,
430       "static": false,
431       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
432       "linenr": 232,
433       "html_filename": "Observable.html",
434       "href": "Observable.html#Ext-util-Observable-method-fireEvent",
435       "shortDoc": "Fires the specified event with the passed parameters (minus the event name).\n\n\nAn event may be set to bubble up an Ob..."
436     },
437     {
438       "tagname": "method",
439       "name": "getGroup",
440       "member": "Ext.draw.Surface",
441       "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",
442       "params": [
443         {
444           "type": "String",
445           "name": "id",
446           "doc": "<p>The unique identifier of the group.</p>\n",
447           "optional": false
448         }
449       ],
450       "return": {
451         "type": "Object",
452         "doc": "<p>The <a href=\"#/api/Ext.draw.CompositeSprite\" rel=\"Ext.draw.CompositeSprite\" class=\"docClass\">Ext.draw.CompositeSprite</a>.</p>\n"
453       },
454       "private": false,
455       "static": false,
456       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
457       "linenr": 756,
458       "html_filename": "Surface.html",
459       "href": "Surface.html#Ext-draw-Surface-method-getGroup",
460       "shortDoc": "Returns a new group or an existent group associated with the current surface.\nThe group returned is a Ext.draw.Compos..."
461     },
462     {
463       "tagname": "method",
464       "name": "getId",
465       "member": "Ext.draw.Surface",
466       "doc": "<p>Retrieves the id of this component.\nWill autogenerate an id if one has not already been set.</p>\n",
467       "params": [
468
469       ],
470       "return": {
471         "type": "void",
472         "doc": "\n"
473       },
474       "private": false,
475       "static": false,
476       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
477       "linenr": 815,
478       "html_filename": "Surface.html",
479       "href": "Surface.html#Ext-draw-Surface-method-getId",
480       "shortDoc": "<p>Retrieves the id of this component.\nWill autogenerate an id if one has not already been set.</p>\n"
481     },
482     {
483       "tagname": "method",
484       "name": "hasListener",
485       "member": "Ext.util.Observable",
486       "doc": "<p>Checks to see if this object has any listeners for a specified event</p>\n",
487       "params": [
488         {
489           "type": "String",
490           "name": "eventName",
491           "doc": "<p>The name of the event to check for</p>\n",
492           "optional": false
493         }
494       ],
495       "return": {
496         "type": "Boolean",
497         "doc": "<p>True if the event is being listened for, else false</p>\n"
498       },
499       "private": false,
500       "static": false,
501       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
502       "linenr": 480,
503       "html_filename": "Observable.html",
504       "href": "Observable.html#Ext-util-Observable-method-hasListener",
505       "shortDoc": "<p>Checks to see if this object has any listeners for a specified event</p>\n"
506     },
507     {
508       "tagname": "method",
509       "name": "observe",
510       "member": "Ext.util.Observable",
511       "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",
512       "params": [
513         {
514           "type": "Function",
515           "name": "c",
516           "doc": "<p>The class constructor to make observable.</p>\n",
517           "optional": false
518         },
519         {
520           "type": "Object",
521           "name": "listeners",
522           "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",
523           "optional": false
524         }
525       ],
526       "return": {
527         "type": "void",
528         "doc": "\n"
529       },
530       "private": false,
531       "static": true,
532       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
533       "linenr": 69,
534       "html_filename": "Observable.html",
535       "href": "Observable.html#Ext-util-Observable-method-observe",
536       "shortDoc": "Sets observability on the passed class constructor.\n\nThis makes any event fired on any instance of the passed class a..."
537     },
538     {
539       "tagname": "method",
540       "name": "on",
541       "member": "Ext.util.Observable",
542       "doc": "<p>Appends an event handler to this object (shorthand for <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a>.)</p>\n",
543       "params": [
544         {
545           "type": "String",
546           "name": "eventName",
547           "doc": "<p>The type of event to listen for</p>\n",
548           "optional": false
549         },
550         {
551           "type": "Function",
552           "name": "handler",
553           "doc": "<p>The method the event invokes</p>\n",
554           "optional": false
555         },
556         {
557           "type": "Object",
558           "name": "scope",
559           "doc": "<p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.\n<b>If omitted, defaults to the object which fired the event.</b></p>\n",
560           "optional": true
561         },
562         {
563           "type": "Object",
564           "name": "options",
565           "doc": "<p>(optional) An object containing handler configuration.</p>\n",
566           "optional": true
567         }
568       ],
569       "return": {
570         "type": "void",
571         "doc": "\n"
572       },
573       "private": false,
574       "static": false,
575       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
576       "linenr": 616,
577       "html_filename": "Observable.html",
578       "href": "Observable.html#Ext-util-Observable-method-on",
579       "shortDoc": "<p>Appends an event handler to this object (shorthand for <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a>.)</p>\n"
580     },
581     {
582       "tagname": "method",
583       "name": "relayEvents",
584       "member": "Ext.util.Observable",
585       "doc": "<p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>\n",
586       "params": [
587         {
588           "type": "Object",
589           "name": "origin",
590           "doc": "<p>The Observable whose events this object is to relay.</p>\n",
591           "optional": false
592         },
593         {
594           "type": "Array",
595           "name": "events",
596           "doc": "<p>Array of event names to relay.</p>\n",
597           "optional": false
598         },
599         {
600           "type": "Object",
601           "name": "prefix",
602           "doc": "\n",
603           "optional": false
604         }
605       ],
606       "return": {
607         "type": "void",
608         "doc": "\n"
609       },
610       "private": false,
611       "static": false,
612       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
613       "linenr": 520,
614       "html_filename": "Observable.html",
615       "href": "Observable.html#Ext-util-Observable-method-relayEvents",
616       "shortDoc": "<p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>\n"
617     },
618     {
619       "tagname": "method",
620       "name": "releaseCapture",
621       "member": "Ext.util.Observable",
622       "doc": "<p>Removes <b>all</b> added captures from the Observable.</p>\n",
623       "params": [
624         {
625           "type": "Observable",
626           "name": "o",
627           "doc": "<p>The Observable to release</p>\n",
628           "optional": false
629         }
630       ],
631       "return": {
632         "type": "void",
633         "doc": "\n"
634       },
635       "private": false,
636       "static": true,
637       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
638       "linenr": 46,
639       "html_filename": "Observable.html",
640       "href": "Observable.html#Ext-util-Observable-method-releaseCapture",
641       "shortDoc": "<p>Removes <b>all</b> added captures from the Observable.</p>\n"
642     },
643     {
644       "tagname": "method",
645       "name": "remove",
646       "member": "Ext.draw.Surface",
647       "doc": "<p>Remove 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...\n sprite.remove();\n</code></pre>\n",
648       "params": [
649         {
650           "type": "Ext.draw.Sprite",
651           "name": "sprite",
652           "doc": "\n",
653           "optional": false
654         },
655         {
656           "type": "Boolean",
657           "name": "destroySprite",
658           "doc": "\n",
659           "optional": false
660         }
661       ],
662       "return": {
663         "type": "Number",
664         "doc": "<p>the sprite's new index in the list</p>\n"
665       },
666       "private": false,
667       "static": false,
668       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
669       "linenr": 561,
670       "html_filename": "Surface.html",
671       "href": "Surface.html#Ext-draw-Surface-method-remove",
672       "shortDoc": "Remove a given sprite from the surface, optionally destroying the sprite in the process.\nYou can also call the sprite..."
673     },
674     {
675       "tagname": "method",
676       "name": "removeAll",
677       "member": "Ext.draw.Surface",
678       "doc": "<p>Remove 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",
679       "params": [
680         {
681           "type": "Boolean",
682           "name": "destroySprites",
683           "doc": "<p>Whether to destroy all sprites when removing them.</p>\n",
684           "optional": false
685         }
686       ],
687       "return": {
688         "type": "Number",
689         "doc": "<p>The sprite's new index in the list.</p>\n"
690       },
691       "private": false,
692       "static": false,
693       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
694       "linenr": 588,
695       "html_filename": "Surface.html",
696       "href": "Surface.html#Ext-draw-Surface-method-removeAll",
697       "shortDoc": "Remove all sprites from the surface, optionally destroying the sprites in the process.\n\nFor example:\n\n drawComponent...."
698     },
699     {
700       "tagname": "method",
701       "name": "removeCls",
702       "member": "Ext.draw.Surface",
703       "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",
704       "params": [
705         {
706           "type": "Object",
707           "name": "sprite",
708           "doc": "<p>The sprite to remove the class from.</p>\n",
709           "optional": false
710         },
711         {
712           "type": "String/Array",
713           "name": "className",
714           "doc": "<p>The CSS class to remove, or an array of classes</p>\n",
715           "optional": false
716         }
717       ],
718       "return": {
719         "type": "void",
720         "doc": "\n"
721       },
722       "private": false,
723       "static": false,
724       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
725       "linenr": 274,
726       "html_filename": "Surface.html",
727       "href": "Surface.html#Ext-draw-Surface-method-removeCls",
728       "shortDoc": "Removes one or more CSS classes from the element.\n\nFor example:\n\n drawComponent.surface.removeCls(sprite, 'x-visible'..."
729     },
730     {
731       "tagname": "method",
732       "name": "removeListener",
733       "member": "Ext.util.Observable",
734       "doc": "<p>Removes an event handler.</p>\n",
735       "params": [
736         {
737           "type": "String",
738           "name": "eventName",
739           "doc": "<p>The type of event the handler was associated with.</p>\n",
740           "optional": false
741         },
742         {
743           "type": "Function",
744           "name": "handler",
745           "doc": "<p>The handler to remove. <b>This must be a reference to the function passed into the <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> call.</b></p>\n",
746           "optional": false
747         },
748         {
749           "type": "Object",
750           "name": "scope",
751           "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
752           "optional": true
753         }
754       ],
755       "return": {
756         "type": "void",
757         "doc": "\n"
758       },
759       "private": false,
760       "static": false,
761       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
762       "linenr": 352,
763       "html_filename": "Observable.html",
764       "href": "Observable.html#Ext-util-Observable-method-removeListener",
765       "shortDoc": "<p>Removes an event handler.</p>\n"
766     },
767     {
768       "tagname": "method",
769       "name": "removeManagedListener",
770       "member": "Ext.util.Observable",
771       "doc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.draw.Surface--mon\" rel=\"Ext.draw.Surface--mon\" class=\"docClass\">mon</a> method.</p>\n",
772       "params": [
773         {
774           "type": "Observable|Element",
775           "name": "item",
776           "doc": "<p>The item from which to remove a listener/listeners.</p>\n",
777           "optional": false
778         },
779         {
780           "type": "Object|String",
781           "name": "ename",
782           "doc": "<p>The event name, or an object containing event name properties.</p>\n",
783           "optional": false
784         },
785         {
786           "type": "Function",
787           "name": "fn",
788           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the handler function.</p>\n",
789           "optional": false
790         },
791         {
792           "type": "Object",
793           "name": "scope",
794           "doc": "<p>Optional. If the <code>ename</code> parameter was an event name, this\nis the scope (<code>this</code> reference) in which the handler function is executed.</p>\n",
795           "optional": false
796         }
797       ],
798       "return": {
799         "type": "void",
800         "doc": "\n"
801       },
802       "private": false,
803       "static": false,
804       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
805       "linenr": 196,
806       "html_filename": "Observable.html",
807       "href": "Observable.html#Ext-util-Observable-method-removeManagedListener",
808       "shortDoc": "<p>Removes listeners that were added by the <a href=\"#/api/Ext.draw.Surface--mon\" rel=\"Ext.draw.Surface--mon\" class=\"docClass\">mon</a> method.</p>\n"
809     },
810     {
811       "tagname": "method",
812       "name": "resumeEvents",
813       "member": "Ext.util.Observable",
814       "doc": "<p>Resume firing events. (see <a href=\"#/api/Ext.draw.Surface-method-suspendEvents\" rel=\"Ext.draw.Surface-method-suspendEvents\" class=\"docClass\">suspendEvents</a>)\nIf events were suspended using the <code><b>queueSuspended</b></code> parameter, then all\nevents fired during event suspension will be sent to any listeners now.</p>\n",
815       "params": [
816
817       ],
818       "return": {
819         "type": "void",
820         "doc": "\n"
821       },
822       "private": false,
823       "static": false,
824       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
825       "linenr": 502,
826       "html_filename": "Observable.html",
827       "href": "Observable.html#Ext-util-Observable-method-resumeEvents",
828       "shortDoc": "Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevent..."
829     },
830     {
831       "tagname": "method",
832       "name": "setSize",
833       "member": "Ext.draw.Surface",
834       "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",
835       "params": [
836         {
837           "type": "Number",
838           "name": "w",
839           "doc": "<p>The new width of the canvas.</p>\n",
840           "optional": false
841         },
842         {
843           "type": "Number",
844           "name": "h",
845           "doc": "<p>The new height of the canvas.</p>\n",
846           "optional": false
847         }
848       ],
849       "return": {
850         "type": "void",
851         "doc": "\n"
852       },
853       "private": false,
854       "static": false,
855       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
856       "linenr": 361,
857       "html_filename": "Surface.html",
858       "href": "Surface.html#Ext-draw-Surface-method-setSize",
859       "shortDoc": "Sets the size of the surface. Accomodates the background (if any) to fit the new size too.\n\nFor example:\n\n drawCompon..."
860     },
861     {
862       "tagname": "method",
863       "name": "setStyle",
864       "member": "Ext.draw.Surface",
865       "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",
866       "params": [
867         {
868           "type": "Object",
869           "name": "sprite",
870           "doc": "<p>The sprite to add, or an array of classes to</p>\n",
871           "optional": false
872         },
873         {
874           "type": "Object",
875           "name": "styles",
876           "doc": "<p>An Object with CSS styles.</p>\n",
877           "optional": false
878         }
879       ],
880       "return": {
881         "type": "void",
882         "doc": "\n"
883       },
884       "private": false,
885       "static": false,
886       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
887       "linenr": 287,
888       "html_filename": "Surface.html",
889       "href": "Surface.html#Ext-draw-Surface-method-setStyle",
890       "shortDoc": "Sets CSS style attributes to an element.\n\nFor example:\n\n drawComponent.surface.setStyle(sprite, {\n     'cursor': 'poi..."
891     },
892     {
893       "tagname": "method",
894       "name": "setText",
895       "member": "Ext.draw.Surface",
896       "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",
897       "params": [
898         {
899           "type": "Object",
900           "name": "sprite",
901           "doc": "<p>The Sprite to change the text.</p>\n",
902           "optional": false
903         },
904         {
905           "type": "String",
906           "name": "text",
907           "doc": "<p>The new text to be set.</p>\n",
908           "optional": false
909         }
910       ],
911       "return": {
912         "type": "void",
913         "doc": "\n"
914       },
915       "private": false,
916       "static": false,
917       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
918       "linenr": 797,
919       "html_filename": "Surface.html",
920       "href": "Surface.html#Ext-draw-Surface-method-setText",
921       "shortDoc": "Changes the text in the sprite element. The sprite must be a text sprite.\nThis method can also be called from Ext.dra..."
922     },
923     {
924       "tagname": "method",
925       "name": "suspendEvents",
926       "member": "Ext.util.Observable",
927       "doc": "<p>Suspend 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",
928       "params": [
929         {
930           "type": "Boolean",
931           "name": "queueSuspended",
932           "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",
933           "optional": false
934         }
935       ],
936       "return": {
937         "type": "void",
938         "doc": "\n"
939       },
940       "private": false,
941       "static": false,
942       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
943       "linenr": 490,
944       "html_filename": "Observable.html",
945       "href": "Observable.html#Ext-util-Observable-method-suspendEvents",
946       "shortDoc": "<p>Suspend 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"
947     },
948     {
949       "tagname": "method",
950       "name": "un",
951       "member": "Ext.util.Observable",
952       "doc": "<p>Removes an event handler (shorthand for <a href=\"#/api/Ext.draw.Surface-method-removeListener\" rel=\"Ext.draw.Surface-method-removeListener\" class=\"docClass\">removeListener</a>.)</p>\n",
953       "params": [
954         {
955           "type": "String",
956           "name": "eventName",
957           "doc": "<p>The type of event the handler was associated with.</p>\n",
958           "optional": false
959         },
960         {
961           "type": "Function",
962           "name": "handler",
963           "doc": "<p>The handler to remove. <b>This must be a reference to the function passed into the <a href=\"#/api/Ext.draw.Surface-method-addListener\" rel=\"Ext.draw.Surface-method-addListener\" class=\"docClass\">addListener</a> call.</b></p>\n",
964           "optional": false
965         },
966         {
967           "type": "Object",
968           "name": "scope",
969           "doc": "<p>(optional) The scope originally specified for the handler.</p>\n",
970           "optional": true
971         }
972       ],
973       "return": {
974         "type": "void",
975         "doc": "\n"
976       },
977       "private": false,
978       "static": false,
979       "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Observable.js",
980       "linenr": 608,
981       "html_filename": "Observable.html",
982       "href": "Observable.html#Ext-util-Observable-method-un",
983       "shortDoc": "<p>Removes an event handler (shorthand for <a href=\"#/api/Ext.draw.Surface-method-removeListener\" rel=\"Ext.draw.Surface-method-removeListener\" class=\"docClass\">removeListener</a>.)</p>\n"
984     }
985   ],
986   "property": [
987
988   ],
989   "event": [
990
991   ],
992   "filename": "/Users/nick/Projects/sencha/SDK/platform/src/draw/Surface.js",
993   "linenr": 1,
994   "html_filename": "Surface.html",
995   "href": "Surface.html#Ext-draw-Surface",
996   "cssVar": [
997
998   ],
999   "cssMixin": [
1000
1001   ],
1002   "component": false,
1003   "superclasses": [
1004
1005   ],
1006   "subclasses": [
1007     "Ext.draw.engine.Svg",
1008     "Ext.draw.engine.Vml"
1009   ],
1010   "mixedInto": [
1011
1012   ],
1013   "allMixins": [
1014     "Ext.util.Observable"
1015   ]
1016 });