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

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

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 42 lines | 31 code | 8 blank | 3 comment | 10 complexity | 4a3d6e64b863c7e6375671b85627c826 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 PolyStyle extends ColorStyle
10	{
11		private var _fill:Boolean;
12		private var _outline:Boolean;
13		
14		public function PolyStyle(x:XMLList)
15		{
16			super(x);
17			
18			var fill:Number = ParsingTools.nanCheck(this.x.kml::fill);
19			if (fill == 1) {
20				this._fill = true;
21			} else if (fill == 0) {
22				this._fill = false;
23			}
24			
25			var outline:Number = ParsingTools.nanCheck(this.x.kml::outline);
26			if (outline == 1) {
27				this._outline = true;
28			} else if (outline == 0) {
29				this._outline = false;
30			}
31			
32		}
33		
34		public function get fill():Boolean{
35			return this._fill;
36		}
37		
38		public function get outline():Boolean{
39			return this._outline;
40		}
41	}
42}