XGraphicsEnvironment.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.GraphicsEnvironment;
  8. import java.awt.GraphicsDevice;
  9. import java.awt.Graphics2D;
  10. import java.awt.Font;
  11. import java.awt.image.BufferedImage;
  12. import java.util.Locale;
  13. public class XGraphicsEnvironment extends GraphicsEnvironment
  14. {
  15. private XToolkit toolkit;
  16. private XGraphicsDevice [] devices;
  17. XGraphicsEnvironment (XToolkit toolkit)
  18. {
  19. this.toolkit = toolkit;
  20. devices = new XGraphicsDevice [1];
  21. devices [0] = new XGraphicsDevice (0,toolkit);
  22. }
  23. public GraphicsDevice[] getScreenDevices ()
  24. {
  25. return devices;
  26. }
  27. public GraphicsDevice getDefaultScreenDevice ()
  28. {
  29. return devices [0];
  30. }
  31. public Graphics2D createGraphics (BufferedImage image)
  32. {
  33. throw new UnsupportedOperationException ("createGraphics not implemented yet in " + this.getClass ().getName ());
  34. }
  35. public Font[] getAllFonts()
  36. {
  37. throw new UnsupportedOperationException ("getAllFonts not implemented yet in " + this.getClass ().getName ());
  38. }
  39. public String[] getAvailableFontFamilyNames (Locale l)
  40. {
  41. throw new UnsupportedOperationException ("getAvailableFontFamilyNames not implemented yet in " + this.getClass ().getName ());
  42. }
  43. public String[] getAvailableFontFamilyNames ()
  44. {
  45. throw new UnsupportedOperationException ("getAvailableFontFamilyNames not implemented yet in " + this.getClass ().getName ());
  46. }
  47. }