public void update()
	{
		removeAll();
		if (ts == null)
			return;
		JPanel prev_w = null;
		Iterator i = ts.transforms.iterator();
		while (i.hasNext())
		{
			Transformation t = (Transformation) i.next();
			JPanel p = null;
			if (t instanceof TransformationRotate)
				p = new ToolTIRotate((TransformationRotate) t);
			else if (t instanceof TransformationScale)
				p = new ToolTIScale((TransformationScale) t);
			else if (t instanceof TransformationScaleXY)
				p = new ToolTIScaleXY((TransformationScaleXY) t);
			else if (t instanceof TransformationTranslate)
				p = new ToolTITranslate((TransformationTranslate) t);
			else
			{
				System.out.println("Error: could not find transformation subclass");
				continue;
			}

			JPanel w = new JPanel();
			w.setLayout(new BorderLayout());
			w.add(p, BorderLayout.NORTH);
			if (prev_w == null)
				add(w);
			else
			{
				prev_w.add(w, BorderLayout.CENTER);
			}

			prev_w = w;
		}

		validate();

	}