Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > LinearRing.js (source view)
Search:
 
Filters
/**
 * OpenLayers.Geometry.LinearRing<br/>
 * A Linear Ring is a special LineString which is closed.  It closes itself automatically on every addPoint/removePoint by adding a copy of the first point as the last point.<BR/>
 * <BR/>
 * Also, as it is the first in the line family to close itself, a getArea() function is defined to calculate the enclosed area of the linearRing<BR/>
 * @class LinearRing
 * @extends OpenLayers.Geometry.LineString
 * @constructor
 * @namespace OpenLayers.Geometry
 * @param {Array(OpenLayers.Geometry.Point)} points
 */
OpenLayers.Geometry.LinearRing = OpenLayers.Class(OpenLayers.Geometry.LineString,{
	/**
	* @method addComponents
	* @param {Array(OpenLayers.Geometry)} components
	**/
	addComponents: function(components){},
	/**
	* @method removeComponents
	* @param {Array(OpenLayers.Geometry)} components
	* @return {Boolean} was removed
	**/
	removeComponents: function(components){},
	/**
	* @method move
	* @param {Float} x
	* @param {Float} y
	*/
	move: function(x,y){},
	/**
	* @method rotate
	* @param {Float} angle degree
	* @param {OpenLayers.Geometry.Point} origin center point
	*/
	rotate: function(angle, origin){},
	/**
	* @method resize
	* @param {Float} scale 
	* @param {OpenLayers.Geometry.Point} origin
	* @param {Float} ratio default 1.
	*/
	resize: function(scale, origin, ratio){},
	/**
	* @method transform
	* @param {OpenLayers.Projection} source
	* @param {OpenLayers.Projection} dest
	* @return {OpenLayers.Geometry} geometry
	*/
	transform: function(source,dest){},
	/**
	* @method getCentroid
	* @param {Boolean} weighted
	* @return {OpenLayers.Geometry.Point} centroid
	**/
	getCentroid: function(weighted){},
	/**
	* @method getArea
	* @return {Float} area
	**/
	getArea: function(){},
	/**
	* @method getGeodesicArea
	* @param {OpenLayers.Projection} projection
	* @return {Float} geodesic area
	**/
	getGeodesicArea: function(projection){},
	/**
	* @method intersects
	* @param {OpenLayers.Geometry} geometry
	* @return {Boolean} intersects
	*/	
	intersects: function(geometry){},
	/**
	*
	* @method getVertices
	* @param {Boolean} nodes
	* @return {Array} vertices
	*/
	getVertices: function(nodes){}
});

Copyright © 2012 Yahoo! Inc. All rights reserved.