function Text(parent)
{
	Component.call(this, parent, "div");

	this.element.style.pointerEvents = "none";
	this.element.style.display = "flex";

	/** 
	 * Span DOM element used to represent the text.
	 *
	 * @attribute span
	 * @type {Element}
	 */
	this.span = document.createElement("span");
	this.span.style.overflow = "hidden";
	this.element.appendChild(this.span);

	/**
	 * Text DOM node where the text is stored.
	 *
	 * @attribute text
	 * @type {Element}
	 */
	this.text = document.createTextNode("");
	this.span.appendChild(this.text);

	/**
	 * If set to true the text container will automatically fit the text size.
	 *
	 * @attribute fitContent
	 * @type {boolean}
	 */
	this.fitContent = false;

	this.allowWordBreak(false);
	this.setVerticalAlignment(Text.CENTER);
	this.setAlignment(Text.CENTER);
}
Text element without background.

@class Text
@extends {Component}
@param {Component} parent Parent element.