public Object getTransferData(DataFlavor flavor)
			throws UnsupportedFlavorException {
		if (flavor.equals(colorFlavor))
			return color;
		else if (flavor.equals(DataFlavor.stringFlavor))
			return color.toString();
		else
			throw new UnsupportedFlavorException(flavor);
	}