}
  public void setPaint(Paint p)  {    paint = p;    if (paint != null && ! (paint instanceof Color))      isOptimized = false;    else      {        updateOptimization();        rawSetForeground((Color) paint);      }  }