Source for gnu.awt.xlib.XGraphicsDevice

   1: /* Copyright (C) 2005  Free Software Foundation
   2: 
   3:    This file is part of libgcj.
   4: 
   5: This software is copyrighted work licensed under the terms of the
   6: Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
   7: details.  */
   8: 
   9: package gnu.awt.xlib;
  10: 
  11: import java.awt.GraphicsDevice;
  12: import java.awt.GraphicsConfiguration;
  13: 
  14: public class XGraphicsDevice extends GraphicsDevice
  15: {
  16:   private int id;
  17:   private String IDstring;
  18:   private GraphicsConfiguration[] configs;
  19: 
  20:   public int getType()
  21:   {
  22:     return TYPE_RASTER_SCREEN;
  23:   }
  24: 
  25:   public XGraphicsDevice(int id, XToolkit toolkit)
  26:   {
  27:     this.id = id;
  28:     IDstring = "XGraphicsDevice " + id;
  29:     configs = new GraphicsConfiguration [1];
  30:     configs[0] = toolkit.getDefaultXGraphicsConfiguration();
  31:   }
  32: 
  33:   public String getIDstring()
  34:   {
  35:     return IDstring;
  36:   }
  37: 
  38:   public GraphicsConfiguration[] getConfigurations()
  39:   {
  40:     return configs;
  41:   }
  42: 
  43:   public GraphicsConfiguration getDefaultConfiguration()
  44:   {
  45:     return configs[0];
  46:   }
  47: 
  48:   public boolean isDisplayChangeSupported()
  49:   {
  50:     return false;
  51:   }
  52: 
  53:   public boolean isFullScreenSupported()
  54:   {
  55:     return false;
  56:   }
  57: }