Debian Codegraph @

closure-library/closure/goog/graphics/groupelement.js

raw
1 // Copyright 2007 The Closure Library Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS-IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15
16 /**
17 * @fileoverview A thin wrapper around the DOM element for graphics groups.
18 * @author [email protected] (Erik Arvidsson)
19 */
20
21
22 goog.provide('goog.graphics.GroupElement');
23
24 goog.require('goog.graphics.Element');
25
26
27
28 /**
29 * Interface for a graphics group element.
30 * You should not construct objects from this constructor. The graphics
31 * will return the object for you.
32 * @param {Element} element The DOM element to wrap.
33 * @param {goog.graphics.AbstractGraphics} graphics The graphics creating
34 * this element.
35 * @constructor
36 * @extends {goog.graphics.Element}
37 * @deprecated goog.graphics is deprecated. It existed to abstract over browser
38 * differences before the canvas tag was widely supported. See
39 * http://en.wikipedia.org/wiki/Canvas_element for details.
40 */
41 goog.graphics.GroupElement = function(element, graphics) {
42 goog.graphics.Element.call(this, element, graphics);
43 };
44 goog.inherits(goog.graphics.GroupElement, goog.graphics.Element);
45
46
47 /**
48 * Remove all drawing elements from the group.
49 */
50 goog.graphics.GroupElement.prototype.clear = goog.abstractMethod;
51
52
53 /**
54 * Set the size of the group element.
55 * @param {number|string} width The width of the group element.
56 * @param {number|string} height The height of the group element.
57 */
58 goog.graphics.GroupElement.prototype.setSize = goog.abstractMethod;