public static final String colorToString(Color color){
  return (color.getRed() + "," + color.getGreen()+ ","+ color.getBlue()+ ","+ color.getAlpha());
}

public static final String colorToString ( Color color ) { return ( color . getRed ( ) + "," + color . getGreen ( ) + "," + color . getBlue ( ) + "," + color . getAlpha ( ) ) ; }
convert a color to a string .
