protected static String colorName(Color color) {
		if (color.equals(Color.black)) return "BLACK";
		if (color.equals(Color.blue)) return "BLUE";
		if (color.equals(Color.cyan)) return "CYAN";
		if (color.equals(Color.darkGray)) return "DARK_GRAY";
		if (color.equals(Color.gray)) return "GRAY";
		if (color.equals(Color.green)) return "GREEN";
		if (color.equals(Color.lightGray)) return "LIGHT_GRAY";
		if (color.equals(Color.magenta)) return "MAGENTA";
		if (color.equals(Color.orange)) return "ORANGE";
		if (color.equals(Color.pink)) return "PINK";
		if (color.equals(Color.red)) return "RED";
		if (color.equals(Color.white)) return "WHITE";
		if (color.equals(Color.yellow)) return "YELLOW";
		return "0x" + Integer.toString(color.getRGB() & 0xFFFFFF, 16).toUpperCase();
	}