-﻿/* 
+﻿/*
+    Weave (Web-based Analysis and Visualization Environment)
+    Copyright (C) 2008-2011 University of Massachusetts Lowell
+
+    This file is a part of Weave.
+
+    Weave is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License, Version 3,
+    as published by the Free Software Foundation.
+
+    Weave is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Weave.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/* 
 DashedLine class
 by Andy Woodruff (http://cartogrammar.com/blog || awoodruff@gmail.com)
 May 2008

			_startIndex = 0;
		}
		
		private function validateLengthsArray():void {

		}
		private const parser:CSVParser = new CSVParser();
		
		public function lineTo(x:Number,y:Number):void{
			if (lengthsArray.length == 0)
				this.lengthsArray.push(DEFAULT_GAP_LENGTH, DEFAULT_LINE_LENGTH);
			
			var slope:Number = (y - _curY)/(x - _curX);	// get slope of segment to be drawn
			// record beginning x and y
			var startX:Number = _curX;

			_lineColor = color;
		}

		public function drawRect(xStart:Number, yStart:Number, width:Number, height:Number, corner:uint = TOP_LEFT):void
		{
			moveTo(xStart, yStart);
