﻿// Outline Class
function Outline()
{
this.id = '';
this.attributes = new Object();

	this.getId = function()
	{
		return this.id;
	};

	this.setId = function(id)
	{
		this.id= id;
	};

	this.setAttribute = function(_name, _value)
	{
		this.attributes[_name] = _value;
	};

	this.getAttribute = function(_name)
	{
		if (typeof this.attributes[_name] === "undefined")
			return '';
		else return this.attributes[_name];
	};

	this.getAttributesAsString = function()
	{
	var attrs = new Array();
	var attr = "";

		for (key in this.attributes)
		{

			if (this.attributes[key] || key == 'text')
				attrs[attrs.length] = key + "=\"" + this.attributes[key] + "\"";
		}

		return attrs.join(' ');
	};
}
