diff --git a/src/ol/coord/AccessorInterface.js b/src/ol/coord/AccessorInterface.js new file mode 100644 index 0000000000..46fe6ab219 --- /dev/null +++ b/src/ol/coord/AccessorInterface.js @@ -0,0 +1,58 @@ +goog.provide('ol.coord.AccessorInterface'); + +goog.require('ol.Projection'); + +/** + * The AccessorInterface in coord package + * + * @interface + * + * @param {number} x X. + * @param {number} y Y. + * @param {number=} opt_z Z. + * @param {ol.Projection=} opt_projection Projection. + */ +ol.coord.AccessorInterface = function(x, y, opt_z, opt_projection){ + +}; + +/** + * @return {number} X. + */ +ol.coord.AccessorInterface.prototype.getX = function(){}; + +/** + * @return {number} Y. + */ +ol.coord.AccessorInterface.prototype.getY = function(){}; + +/** + * @return {number|undefined} Z. + */ +ol.coord.AccessorInterface.prototype.getZ = function(){}; + +/** + * @return {ol.Projection|undefined} Projection. + */ +ol.coord.AccessorInterface.prototype.getProjection = function() {}; + +/** + * @param {number} x X. + */ +ol.coord.AccessorInterface.prototype.setX = function(x){}; + +/** + * @param {number} y Y. + */ +ol.coord.AccessorInterface.prototype.setY = function(y){}; + +/** + * @param {number|undefined} z Z. + */ +ol.coord.AccessorInterface.prototype.setZ = function(z){}; + +/** + * @param {ol.Projection} projection Projection. + */ +ol.coord.AccessorInterface.prototype.setProjection = function(projection) {}; + diff --git a/src/ol/interfaces/coordinateAccessor.js b/src/ol/interfaces/coordinateAccessor.js deleted file mode 100644 index c9a04244d3..0000000000 --- a/src/ol/interfaces/coordinateAccessor.js +++ /dev/null @@ -1,48 +0,0 @@ -goog.provide('ol.interfaces.coordinateAccessor'); - -/** - * The coordinateAccessor interface - * - * @lends {ol.geom.Point#} - * @interface - * - * @param {number} x X. - * @param {number} y Y. - * @param {number=} opt_z Z. - */ -ol.interfaces.coordinateAccessor = function(x, y, opt_z){ - -}; - -/** - * @return {number} X. - */ -ol.interfaces.coordinateAccessor.prototype.getX = function(){}; - -/** - * @return {number} Y. - */ -ol.interfaces.coordinateAccessor.prototype.getY = function(){}; - -/** - * @return {number|undefined} Z. - */ -ol.interfaces.coordinateAccessor.prototype.getZ = function(){}; - -/** - * @param {number} x X. - * @return {Object} This. - */ -ol.interfaces.coordinateAccessor.prototype.setX = function(x){}; - -/** - * @param {number} y Y. - * @return {Object} This. - */ -ol.interfaces.coordinateAccessor.prototype.setY = function(y){}; - -/** - * @param {number|undefined} z Z. - * @return {Object} This. - */ -ol.interfaces.coordinateAccessor.prototype.setZ = function(z){};