src/java.desktop/share/classes/java/awt/GraphicsDevice.java

Print this page




  82                                              // created the FS window
  83     // this lock is used for making synchronous changes to the AppContext's
  84     // current full screen window
  85     private final Object fsAppContextLock = new Object();
  86 
  87     private Rectangle windowedModeBounds;
  88 
  89     /**
  90      * This is an abstract class that cannot be instantiated directly.
  91      * Instances must be obtained from a suitable factory or query method.
  92      * @see GraphicsEnvironment#getScreenDevices
  93      * @see GraphicsEnvironment#getDefaultScreenDevice
  94      * @see GraphicsConfiguration#getDevice
  95      */
  96     protected GraphicsDevice() {
  97     }
  98 
  99     /**
 100      * Device is a raster screen.
 101      */
 102     public final static int TYPE_RASTER_SCREEN          = 0;
 103 
 104     /**
 105      * Device is a printer.
 106      */
 107     public final static int TYPE_PRINTER                = 1;
 108 
 109     /**
 110      * Device is an image buffer.  This buffer can reside in device
 111      * or system memory but it is not physically viewable by the user.
 112      */
 113     public final static int TYPE_IMAGE_BUFFER           = 2;
 114 
 115     /**
 116      * Kinds of translucency supported by the underlying system.
 117      *
 118      * @see #isWindowTranslucencySupported
 119      *
 120      * @since 1.7
 121      */
 122     public static enum WindowTranslucency {
 123         /**
 124          * Represents support in the underlying system for windows each pixel
 125          * of which is guaranteed to be either completely opaque, with
 126          * an alpha value of 1.0, or completely transparent, with an alpha
 127          * value of 0.0.
 128          */
 129         PERPIXEL_TRANSPARENT,
 130         /**
 131          * Represents support in the underlying system for windows all of
 132          * the pixels of which have the same alpha value between or including
 133          * 0.0 and 1.0.




  82                                              // created the FS window
  83     // this lock is used for making synchronous changes to the AppContext's
  84     // current full screen window
  85     private final Object fsAppContextLock = new Object();
  86 
  87     private Rectangle windowedModeBounds;
  88 
  89     /**
  90      * This is an abstract class that cannot be instantiated directly.
  91      * Instances must be obtained from a suitable factory or query method.
  92      * @see GraphicsEnvironment#getScreenDevices
  93      * @see GraphicsEnvironment#getDefaultScreenDevice
  94      * @see GraphicsConfiguration#getDevice
  95      */
  96     protected GraphicsDevice() {
  97     }
  98 
  99     /**
 100      * Device is a raster screen.
 101      */
 102     public static final int TYPE_RASTER_SCREEN          = 0;
 103 
 104     /**
 105      * Device is a printer.
 106      */
 107     public static final int TYPE_PRINTER                = 1;
 108 
 109     /**
 110      * Device is an image buffer.  This buffer can reside in device
 111      * or system memory but it is not physically viewable by the user.
 112      */
 113     public static final int TYPE_IMAGE_BUFFER           = 2;
 114 
 115     /**
 116      * Kinds of translucency supported by the underlying system.
 117      *
 118      * @see #isWindowTranslucencySupported
 119      *
 120      * @since 1.7
 121      */
 122     public static enum WindowTranslucency {
 123         /**
 124          * Represents support in the underlying system for windows each pixel
 125          * of which is guaranteed to be either completely opaque, with
 126          * an alpha value of 1.0, or completely transparent, with an alpha
 127          * value of 0.0.
 128          */
 129         PERPIXEL_TRANSPARENT,
 130         /**
 131          * Represents support in the underlying system for windows all of
 132          * the pixels of which have the same alpha value between or including
 133          * 0.0 and 1.0.