package com.xt.hb.ais
{
	import com.esri.ags.symbols.TextSymbol;
	
	import flash.text.TextFormat;

	/**
	 * 文字备注
	 */
	public class RemarkSymbol extends TextSymbol
	{
		private var formerText:String;
		
		//private var _text:String=null; 
		private var _htmlText:String=null; 
		private var _color:uint=0;
		private var _alpha:Number=0x000000;
		private var _border:Boolean=false;
		private var _borderColor:uint=0xffffff;
		private var _background:Boolean=false;
		private var _backgroundColor:uint=0xFF9900;
		private var _placement:String="middle";
		//private var _angle:Number=0;
		private var _xoffset:Number=0;
		private var _yoffset:Number=10;
		private var _textFormat:TextFormat=new TextFormat("微软雅黑",12,0xFFC400);
		private var _textAttribute:String=null;
		private var _textFunction:Function=null;
		
		public function RemarkSymbol(text:String, _angle:Number)
		{
			//var textSymbol:myTextSymbol=new myTextSymbol(
			//	Vertical,name,null,0x000000,1,false,0xffffff,false,0xFF9900,"middle",angle,0,0,new TextFormat("微软雅黑",12));  
			//构建标签  
			//var grahic2:Graphic=new Graphic(mygeometry,textSymbol);  
			super(text, _htmlText, _color, _alpha, _border, _borderColor, _background, _backgroundColor, _placement, _angle, _xoffset, _yoffset, _textFormat, _textAttribute, _textFunction);  
//			if(Vertical)
//			{
//				formerText = text;
//				init();
//			}
		}
		
		private function init():void {
			var tempText:String = "";
			for (var i:int = 0; i < formerText.length; i++) {
				tempText += formerText.charAt(i) + "\n";
			}
			this.text = tempText;
			
		} 
	}
}