Lines Matching defs:window

39  * <li>Setting a constant alpha value for each pixel of a top-level window
40 * <li>Making a window non-opaque, after that it paints only explicitly
45 * A "top-level window" is an instance of the {@code Window} class (or its
145 * Set the opacity of the window. The opacity is at the range [0..1].
147 * the mouse event handling on this window. This is
154 * <p>Also note that the window must not be in the full-screen mode
158 * @param window the window to set the opacity level to
159 * @param opacity the opacity level to set to the window
160 * @throws NullPointerException if the window argument is null
163 * @throws IllegalArgumentException if the window is in full screen mode,
168 public static void setWindowOpacity(Window window, float opacity) {
169 if (window == null) {
171 "The window argument should not be null.");
174 AWTAccessor.getWindowAccessor().setOpacity(window, opacity);
178 * Get the opacity of the window. If the opacity has not
181 * @param window the window to get the opacity level from
182 * @throws NullPointerException if the window argument is null
184 public static float getWindowOpacity(Window window) {
185 if (window == null) {
187 "The window argument should not be null.");
190 return AWTAccessor.getWindowAccessor().getOpacity(window);
214 * @param window the window to get the shape from
215 * @return the current shape of the window
216 * @throws NullPointerException if the window argument is null
218 public static Shape getWindowShape(Window window) {
219 if (window == null) {
221 "The window argument should not be null.");
223 return AWTAccessor.getWindowAccessor().getShape(window);
227 * Sets a shape for the given window.
229 * the default shape making the window rectangular.
230 * <p>Note that in order to set a shape, the window must be undecorated.
231 * If the window is decorated, this method ignores the {@code shape}
233 * <p>Also note that the window must not be in the full-screen mode
237 * effecting the shape of the window if the window has a non-null warning
241 * @param window the window to set the shape to
242 * @param shape the shape to set to the window
243 * @throws NullPointerException if the window argument is null
244 * @throws IllegalArgumentException if the window is in full screen mode,
249 public static void setWindowShape(Window window, Shape shape) {
250 if (window == null) {
252 "The window argument should not be null.");
254 AWTAccessor.getWindowAccessor().setShape(window, shape);
304 * Enables the per-pixel alpha support for the given window.
305 * Once the window becomes non-opaque (the isOpaque is set to false),
312 * <p>Note that in order for the window to support the per-pixel alpha
313 * mode, the window must be created using the GraphicsConfiguration
317 * mode for any window created using the translucency-compatible
321 * <p>Also note that the window must not be in the full-screen mode
324 * <p>If the window is a {@code Frame} or a {@code Dialog}, the window must
327 * If the window becomes decorated through a subsequent call to the
332 * effecting the opaque property of the window if the window has a non-null
336 * @param window the window to set the shape to
337 * @param isOpaque whether the window must be opaque (true),
339 * @throws NullPointerException if the window argument is null
340 * @throws IllegalArgumentException if the window uses
344 * @throws IllegalArgumentException if the window is in full screen mode,
346 * @throws IllegalArgumentException if the window is decorated and the
351 public static void setWindowOpaque(Window window, boolean isOpaque) {
352 if (window == null) {
354 "The window argument should not be null.");
360 AWTAccessor.getWindowAccessor().setOpaque(window, isOpaque);
364 * Returns whether the window is opaque or translucent.
366 * @param window the window to set the shape to
367 * @return whether the window is currently opaque (true)
369 * @throws NullPointerException if the window argument is null
371 public static boolean isWindowOpaque(Window window) {
372 if (window == null) {
374 "The window argument should not be null.");
377 return window.isOpaque();
387 * mode for any window created using a translucency-capable