Path: blob/trunk/third_party/closure/goog/graphics/groupelement.js
2868 views
// Copyright 2007 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.131415/**16* @fileoverview A thin wrapper around the DOM element for graphics groups.17* @author [email protected] (Erik Arvidsson)18*/192021goog.provide('goog.graphics.GroupElement');2223goog.require('goog.graphics.Element');24252627/**28* Interface for a graphics group element.29* You should not construct objects from this constructor. The graphics30* will return the object for you.31* @param {Element} element The DOM element to wrap.32* @param {goog.graphics.AbstractGraphics} graphics The graphics creating33* this element.34* @constructor35* @extends {goog.graphics.Element}36* @deprecated goog.graphics is deprecated. It existed to abstract over browser37* differences before the canvas tag was widely supported. See38* http://en.wikipedia.org/wiki/Canvas_element for details.39*/40goog.graphics.GroupElement = function(element, graphics) {41goog.graphics.Element.call(this, element, graphics);42};43goog.inherits(goog.graphics.GroupElement, goog.graphics.Element);444546/**47* Remove all drawing elements from the group.48*/49goog.graphics.GroupElement.prototype.clear = goog.abstractMethod;505152/**53* Set the size of the group element.54* @param {number|string} width The width of the group element.55* @param {number|string} height The height of the group element.56*/57goog.graphics.GroupElement.prototype.setSize = goog.abstractMethod;585960