if (context == null || color != context.color) context = new ColorPaintContext(color);
if (context == null || color != context.color || !context.getColorModel().equals(cm)) context = new ColorPaintContext(cm,color);
  public PaintContext createContext(ColorModel cm, Rectangle deviceBounds,                                    Rectangle2D userBounds,                                    AffineTransform xform,                                    RenderingHints hints)  {    Toolkit.getDefaultToolkit().loadSystemColors(colors);    int color = colors[value] | ALPHA_MASK;    if (context == null || color != context.color)      context = new ColorPaintContext(color);    return context;  }    