private RenderableObject generateText(Scanner inFile) {
		Point loc = null;
		String t = "";
		Font f = null;
		Color c = null;
		String current = inFile.next();
		while (inFile.hasNext()
				&& !(isCloseTag(current) && parseTag(current) == LegalTag.Object)) {
			if (isOpenTag(current)) {
				switch (parseTag(current)) {
				case Location:
					loc = new Point(inFile.nextInt(), inFile.nextInt());
					break;
				case Text:
					Pattern p = inFile.delimiter();
					inFile.useDelimiter("</Text>");
					t = inFile.next();
					inFile.useDelimiter(p);
					break;
				case Font:
					int size,
					style = 0;
					String name = inFile.nextLine();
					style = inFile.nextInt();
					size = inFile.nextInt();
					f = new Font(name, style, size);

					break;
				case Color:
					c = new Color(inFile.nextInt(), inFile.nextInt(),
							inFile.nextInt());
					break;
				default:
					break;
				}
			}
			current = inFile.next();

		}
		Text text = new Text(t, f, c);

		text.setLocation(loc);

		return text;
	}