/** Set the window mask based on a {@link Shape}. */ public void setWindowMask(Component w, Shape mask) { setWindowMask(w, toRaster(mask)); }
/** * Applies the given mask to the given window. Does nothing if the * operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setWindowMask(Window w, Icon mask) { getInstance().setWindowMask(w, mask); }
public void setWindowMask(final Component w, final Shape mask) { if (mask instanceof Area && ((Area)mask).isPolygonal()) { setMask(w, (Area)mask); } else { super.setWindowMask(w, mask); } }
/** * Set the window mask based on an Icon. All non-transparent * pixels will be included in the mask. */ public void setWindowMask(Component w, Icon mask) { setWindowMask(w, toRaster(w, mask)); }
/** * Applies the given mask to the given window. Does nothing if the * operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setWindowMask(Window w, Icon mask) { getInstance().setWindowMask(w, mask); }
/** Set the window mask based on a {@link Shape}. */ public void setWindowMask(Component w, Shape mask) { setWindowMask(w, toRaster(mask)); }
/** * Applies the given mask to the given window. Does nothing if the * operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setWindowMask(Window w, Shape mask) { getInstance().setWindowMask(w, mask); }
@Override public void setWindowMask(final Component w, final Shape mask) { if (mask instanceof Area && ((Area)mask).isPolygonal()) { setMask(w, (Area)mask); } else { super.setWindowMask(w, mask); } }
/** * Applies the given mask to the given heavyweight component. Does nothing * if the operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setComponentMask(Component c, Shape mask) { getInstance().setWindowMask(c, mask); }
/** * Applies the given mask to the given heavyweight component. Does nothing * if the operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setComponentMask(Component c, Shape mask) { getInstance().setWindowMask(c, mask); }
/** * Applies the given mask to the given window. Does nothing if the * operation is not supported. The mask is treated as a bitmap and * ignores transparency. */ public static void setWindowMask(Window w, Shape mask) { getInstance().setWindowMask(w, mask); }
/** * Set the window mask based on an Icon. All non-transparent * pixels will be included in the mask. */ public void setWindowMask(Component w, Icon mask) { setWindowMask(w, toRaster(w, mask)); }