PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/google/maps/extras/xmlparsers/kml/HotSpot.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 42 lines | 31 code | 8 blank | 3 comment | 0 complexity | f20a3e1a4f8663e4844c6d01697ead67 MD5 | raw file
 1/* Added by Cecil M. Reid (cmR)
 2 * cecilmreid@gmail.com	
 3*/
 4
 5
 6package com.google.maps.extras.xmlparsers.kml
 7{
 8	import com.google.maps.extras.xmlparsers.ParsingTools;
 9	
10	public class HotSpot extends KmlObject
11	{
12		private var _x:Number;
13		private var _y:Number;
14		private var _xunits:String;
15		private var _yunits:String;
16		
17		public function HotSpot(x:XMLList)
18		{
19			super(x);
20			this._x = ParsingTools.nanCheck(this.x.@x);
21			this._y = ParsingTools.nanCheck(this.x.@y);
22			this._xunits = ParsingTools.nullCheck(this.x.@xunits);
23			this._yunits = ParsingTools.nullCheck(this.x.@yunits);
24		}
25		
26		public function get xx():Number{
27			return this._x;
28		}
29		
30		public function get yy():Number{
31			return this._y;
32		}
33		
34		public function get xunits():String{
35			return this._xunits;
36		}
37		
38		public function get yunits():String{
39			return this._yunits;
40		}
41	}
42}