File: /home/padewitte/projets/webcomponents/myscript-js/src/output/shape/shapeEllipse.js
'use strict';
(function (scope) {
/**
* Shape ellipse
*
* @class ShapeEllipse
* @extends AbstractShapePrimitive
* @param {Object} [obj]
* @constructor
*/
function ShapeEllipse(obj) {
scope.AbstractShapePrimitive.call(this, obj);
if (obj) {
this.center = new scope.Point(obj.center);
this.minRadius = obj.minRadius;
this.maxRadius = obj.maxRadius;
this.orientation = obj.orientation;
this.startAngle = obj.startAngle;
this.sweepAngle = obj.sweepAngle;
}
}
/**
* Inheritance property
*/
ShapeEllipse.prototype = new scope.AbstractShapePrimitive();
/**
* Constructor property
*/
ShapeEllipse.prototype.constructor = ShapeEllipse;
/**
* Get center
*
* @method getCenter
* @returns {Point}
*/
ShapeEllipse.prototype.getCenter = function () {
return this.center;
};
/**
* Get min radius
*
* @method getMinRadius
* @returns {Number}
*/
ShapeEllipse.prototype.getMinRadius = function () {
return this.minRadius;
};
/**
* Get max radius
*
* @method getMaxRadius
* @returns {Number}
*/
ShapeEllipse.prototype.getMaxRadius = function () {
return this.maxRadius;
};
/**
* Get orientation
*
* @method getOrientation
* @returns {String}
*/
ShapeEllipse.prototype.getOrientation = function () {
return this.orientation;
};
/**
* Get start angle
*
* @method getStartAngle
* @returns {Number}
*/
ShapeEllipse.prototype.getStartAngle = function () {
return this.startAngle;
};
/**
* Get sweep angle
*
* @method getSweepAngle
* @returns {Number}
*/
ShapeEllipse.prototype.getSweepAngle = function () {
return this.sweepAngle;
};
// Export
scope.ShapeEllipse = ShapeEllipse;
})(MyScript);