< prev index next >
src/java.desktop/share/classes/sun/awt/AWTAccessor.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,57 ****
* questions.
*/
package sun.awt;
! import jdk.internal.misc.Unsafe;
!
! import javax.accessibility.AccessibleContext;
! import java.awt.*;
! import java.awt.event.FocusEvent.Cause;
import java.awt.dnd.DragSourceContext;
import java.awt.dnd.DropTargetContext;
import java.awt.dnd.peer.DragSourceContextPeer;
import java.awt.dnd.peer.DropTargetContextPeer;
! import java.awt.event.AWTEventListener;
import java.awt.event.InputEvent;
import java.awt.event.InvocationEvent;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;
import java.awt.image.BufferStrategy;
import java.awt.peer.ComponentPeer;
-
import java.awt.peer.MenuComponentPeer;
import java.lang.reflect.InvocationTargetException;
import java.security.AccessControlContext;
-
- import java.io.File;
import java.util.ResourceBundle;
import java.util.Vector;
import javax.accessibility.AccessibleBundle;
/**
* The AWTAccessor utility class.
* The main purpose of this class is to enable accessing
* private and package-private fields of classes from
--- 23,85 ----
* questions.
*/
package sun.awt;
! import java.awt.AWTEvent;
! import java.awt.AWTException;
! import java.awt.BufferCapabilities;
! import java.awt.CheckboxMenuItem;
! import java.awt.Color;
! import java.awt.Component;
! import java.awt.Container;
! import java.awt.Cursor;
! import java.awt.DefaultKeyboardFocusManager;
! import java.awt.Dimension;
! import java.awt.EventQueue;
! import java.awt.FileDialog;
! import java.awt.Font;
! import java.awt.Frame;
! import java.awt.GraphicsConfiguration;
! import java.awt.KeyboardFocusManager;
! import java.awt.Menu;
! import java.awt.MenuBar;
! import java.awt.MenuComponent;
! import java.awt.MenuContainer;
! import java.awt.MenuItem;
! import java.awt.MenuShortcut;
! import java.awt.Point;
! import java.awt.PopupMenu;
! import java.awt.Rectangle;
! import java.awt.ScrollPaneAdjustable;
! import java.awt.SystemColor;
! import java.awt.SystemTray;
! import java.awt.Toolkit;
! import java.awt.TrayIcon;
! import java.awt.Window;
import java.awt.dnd.DragSourceContext;
import java.awt.dnd.DropTargetContext;
import java.awt.dnd.peer.DragSourceContextPeer;
import java.awt.dnd.peer.DropTargetContextPeer;
! import java.awt.event.FocusEvent.Cause;
import java.awt.event.InputEvent;
import java.awt.event.InvocationEvent;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;
import java.awt.image.BufferStrategy;
import java.awt.peer.ComponentPeer;
import java.awt.peer.MenuComponentPeer;
+ import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.security.AccessControlContext;
import java.util.ResourceBundle;
import java.util.Vector;
+
import javax.accessibility.AccessibleBundle;
+ import javax.accessibility.AccessibleContext;
+
+ import jdk.internal.misc.Unsafe;
/**
* The AWTAccessor utility class.
* The main purpose of this class is to enable accessing
* private and package-private fields of classes from
*** 288,317 ****
/*
* An interface of accessor for java.awt.Window class.
*/
public interface WindowAccessor {
/*
- * Get opacity level of the given window.
- */
- float getOpacity(Window window);
- /*
- * Set opacity level to the given window.
- */
- void setOpacity(Window window, float opacity);
- /*
- * Get a shape assigned to the given window.
- */
- Shape getShape(Window window);
- /*
- * Set a shape to the given window.
- */
- void setShape(Window window, Shape shape);
- /*
- * Set the opaque preoperty to the given window.
- */
- void setOpaque(Window window, boolean isOpaque);
- /*
* Update the image of a non-opaque (translucent) window.
*/
void updateWindow(Window window);
/** Get the size of the security warning.
--- 316,325 ----
< prev index next >