XGraphicsDevice.java 1.1 KB

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