if (! (comp instanceof AlphaComposite)) {   SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("readDisplayPixels")); }
  public void setComposite(Composite comp)  {    composite = comp;    if (! (comp.equals(AlphaComposite.SrcOver)))      isOptimized = false;    else      updateOptimization();  }