/** * Set the window mask based on the given Raster, which should * be treated as a bitmap (zero/nonzero values only). A value of * <code>null</code> means to remove the mask. */ protected void setWindowMask(Component w, Raster raster) { if (w.isLightweight()) throw new IllegalArgumentException("Component must be heavyweight: " + w); setMask(w, raster); }
/** * Set the window mask based on the given Raster, which should * be treated as a bitmap (zero/nonzero values only). A value of * <code>null</code> means to remove the mask. */ protected void setWindowMask(Component w, Raster raster) { if (w.isLightweight()) throw new IllegalArgumentException("Component must be heavyweight: " + w); setMask(w, raster); }