+ /**
+ * Set the value associated to the given id as a {@link Color}.
+ *
+ * @param the
+ * id of the value to get
+ *
+ * @return the associated value
+ */
+ public void setColor(E id, Color color) {
+ String r = Integer.toString(color.getRed(), 16);
+ String g = Integer.toString(color.getGreen(), 16);
+ String b = Integer.toString(color.getBlue(), 16);
+ String a = "";
+ if (color.getAlpha() < 255) {
+ a = Integer.toString(color.getAlpha(), 16);
+ }
+
+ setString(id, "#" + r + g + b + a);
+ }
+