/**
 * Generated by Apache Royale Compiler from org\apache\royale\svg\TransformableCompoundGraphic.as
 * org.apache.royale.svg.TransformableCompoundGraphic
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.svg.TransformableCompoundGraphic');

goog.require('org.apache.royale.core.WrappedHTMLElement');
goog.require('org.apache.royale.svg.CompoundGraphic');



/**
 * @constructor
 * @extends {org.apache.royale.svg.CompoundGraphic}
 */
org.apache.royale.svg.TransformableCompoundGraphic = function() {
  org.apache.royale.svg.TransformableCompoundGraphic.base(this, 'constructor');
};
goog.inherits(org.apache.royale.svg.TransformableCompoundGraphic, org.apache.royale.svg.CompoundGraphic);


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.svg.TransformableCompoundGraphic', org.apache.royale.svg.TransformableCompoundGraphic);


/**
 * @private
 * @type {org.apache.royale.core.WrappedHTMLElement}
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.org_apache_royale_svg_TransformableCompoundGraphic__groupElement;


/**
 * @protected
 * @override
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.addElementToSurface = function(e) {
  this.org_apache_royale_svg_TransformableCompoundGraphic__groupElement.appendChild(e);
};


/**
 *  Clears all of the drawn path data.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.3
 * @export
 * @override
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.clear = function() {
  
  while (this.transformElement.lastChild) {
    this.transformElement.removeChild(this.transformElement.lastChild);
  }
};


/**
 * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
 * @protected
 * @override
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.createElement = function() {
  org.apache.royale.svg.TransformableCompoundGraphic.superClass_.createElement.apply(this);
  this.org_apache_royale_svg_TransformableCompoundGraphic__groupElement = document.createElementNS('http://www.w3.org/2000/svg', 'g');
  this.element.appendChild(this.org_apache_royale_svg_TransformableCompoundGraphic__groupElement);
  return this.element;
};


org.apache.royale.svg.TransformableCompoundGraphic.prototype.get__transformElement = function() {
  return this.org_apache_royale_svg_TransformableCompoundGraphic__groupElement;
};


Object.defineProperties(org.apache.royale.svg.TransformableCompoundGraphic.prototype, /** @lends {org.apache.royale.svg.TransformableCompoundGraphic.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.WrappedHTMLElement} */
transformElement: {
get: org.apache.royale.svg.TransformableCompoundGraphic.prototype.get__transformElement}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'TransformableCompoundGraphic', qName: 'org.apache.royale.svg.TransformableCompoundGraphic', kind: 'class' }] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.svg.TransformableCompoundGraphic.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'transformElement': { type: 'org.apache.royale.core.WrappedHTMLElement', access: 'readonly', declaredBy: 'org.apache.royale.svg.TransformableCompoundGraphic'}
      };
    },
    methods: function () {
      return {
        'clear': { type: 'void', declaredBy: 'org.apache.royale.svg.TransformableCompoundGraphic'}
      };
    }
  };
};