/**
 * * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Generated by Apache Flex Cross-Compiler from org/apache/flex/graphics/GradientBase.as
 * org.apache.flex.graphics.GradientBase
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.flex.graphics.GradientBase');
goog.require('org.apache.flex.utils.Language');



/**
 * @constructor
 */
org.apache.flex.graphics.GradientBase = function() {

this.colors = [];
this.ratios = [];
this.alphas = [];
this._entries = [];
};


/**
 * @protected
 * @type {Array}
 */
org.apache.flex.graphics.GradientBase.prototype.colors;


/**
 * @protected
 * @type {Array}
 */
org.apache.flex.graphics.GradientBase.prototype.ratios;


/**
 * @protected
 * @type {Array}
 */
org.apache.flex.graphics.GradientBase.prototype.alphas;


/**
 * @export
 * @const
 * @type {number}
 */
org.apache.flex.graphics.GradientBase.GRADIENT_DIMENSION = 1638.4;


/**
 * @private
 * @type {Array}
 */
org.apache.flex.graphics.GradientBase.prototype._entries;


/**
 * @private
 * @type {number}
 */
org.apache.flex.graphics.GradientBase.prototype._rotation = 0.0;


/**
 * @private
 * @type {number}
 */
org.apache.flex.graphics.GradientBase.prototype._x = 0;


/**
 * @private
 * @type {number}
 */
org.apache.flex.graphics.GradientBase.prototype._y = 0;


Object.defineProperties(org.apache.flex.graphics.GradientBase.prototype, /** @lends {org.apache.flex.graphics.GradientBase.prototype} */ {
/** @export */
newId: {
get: /** @this {org.apache.flex.graphics.GradientBase} */ function() {
  return 'gradient' + Math.floor((Math.random() * 100000) + 1);
}},
/** @export */
entries: {
get: /** @this {org.apache.flex.graphics.GradientBase} */ function() {
  return this._entries;
},
set: /** @this {org.apache.flex.graphics.GradientBase} */ function(value) {
  this._entries = value;
  
}},
/** @export */
rotation: {
get: /** @this {org.apache.flex.graphics.GradientBase} */ function() {
  return this._rotation;
},
set: /** @this {org.apache.flex.graphics.GradientBase} */ function(value) {
  this._rotation = value;
}},
/** @export */
x: {
get: /** @this {org.apache.flex.graphics.GradientBase} */ function() {
  return this._x;
},
set: /** @this {org.apache.flex.graphics.GradientBase} */ function(value) {
  this._x = value;
}},
/** @export */
y: {
get: /** @this {org.apache.flex.graphics.GradientBase} */ function() {
  return this._y;
},
set: /** @this {org.apache.flex.graphics.GradientBase} */ function(value) {
  this._y = value;
}}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.flex.graphics.GradientBase.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'GradientBase', qName: 'org.apache.flex.graphics.GradientBase'}] };


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.flex.graphics.GradientBase', org.apache.flex.graphics.GradientBase);



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.flex.graphics.GradientBase.prototype.FLEXJS_REFLECTION_INFO = function () {
  return {
    variables: function () {
      return {
      };
    },
    accessors: function () {
      return {
        'newId': { type: 'String', declaredBy: 'org.apache.flex.graphics.GradientBase'},
        'entries': { type: 'Array', declaredBy: 'org.apache.flex.graphics.GradientBase'},
        'rotation': { type: 'Number', declaredBy: 'org.apache.flex.graphics.GradientBase'},
        'x': { type: 'Number', declaredBy: 'org.apache.flex.graphics.GradientBase'},
        'y': { type: 'Number', declaredBy: 'org.apache.flex.graphics.GradientBase'}
      };
    },
    methods: function () {
      return {
      };
    }
  };
};