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

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

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 48 lines | 37 code | 8 blank | 3 comment | 4 complexity | fff77b6e619877435be7f68ed4ccd992 MD5 | raw file
 1/* Added by Cecil M. Reid (cmR)
 2 * cecilmreid@gmail.com	
 3*/
 4
 5package com.google.maps.extras.xmlparsers.kml
 6{
 7	import com.google.maps.extras.xmlparsers.ParsingTools;
 8
 9	public class IconStyle extends ColorStyle
10	{
11		private var _scale:Number;
12		private var _heading:Number;
13		private var _icon:com.google.maps.extras.xmlparsers.kml.Icon;
14		private var _hotSpot:com.google.maps.extras.xmlparsers.kml.HotSpot;
15		
16		public function IconStyle(x:XMLList)
17		{
18			super(x);
19			this._scale = ParsingTools.nanCheck(this.x.kml::scale);
20			this._heading = ParsingTools.nanCheck(this.x.kml::heading);
21			
22			if (ParsingTools.nullCheck(this.x.kml::Icon) != null) {
23				this._icon = new com.google.maps.extras.xmlparsers.kml.Icon(this.x.kml::Icon);
24			}
25			if (ParsingTools.nullCheck(this.x.kml::hotSpot) != null) {
26				this._hotSpot = new com.google.maps.extras.xmlparsers.kml.HotSpot(this.x.kml::hotSpot);
27			}
28		}
29		
30		public function get scale():Number
31		{
32			return this._scale;
33		}
34		
35		public function get heading():Number
36		{
37			return this._heading;
38		}
39		
40		public function get icon():com.google.maps.extras.xmlparsers.kml.Icon{
41			return this._icon;
42		}
43		
44		public function get hotSpot():com.google.maps.extras.xmlparsers.kml.HotSpot{
45			return this._hotSpot;
46		}
47	}
48}