PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 45 lines | 34 code | 8 blank | 3 comment | 0 complexity | 0a054fde6f421d13ab3189b0fc11b9e5 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 BalloonStyle extends KmlObject
10	{
11		private var _bgColor:int;
12		private var _textColor:int;
13		private var _text:String;
14		private var _displayMode:String;
15		 
16		public function BalloonStyle(x:XMLList)
17		{
18			super(x);
19			
20			var bgColor:String = ParsingTools.nullCheck(this.x.kml::bgColor);
21			this._bgColor = parseInt("0x" + bgColor);
22			var textColor:String = ParsingTools.nullCheck(this.x.kml::textColor);
23			this._textColor = parseInt("0x" + textColor);
24			this._text = ParsingTools.nullCheck(this.x.kml::text);
25			this._displayMode = ParsingTools.nullCheck(this.x.kml::displayMode);
26		}
27		
28		public function get bgColor():int
29		{
30			return this._bgColor;
31		}
32		
33		public function get textColor():int{
34			return this._textColor;
35		}
36		
37		public function get text():String {
38			return this._text;
39		}
40		
41		public function get displayMode():String {
42			return this._displayMode;
43		}
44	}
45}