2015-01-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / gnu / awt / xlib / XGraphicsDevice.java
blob4fe1c2387b4789c5e1b560b4e22bdf2db03e8b12
1 /* Copyright (C) 2005 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package gnu.awt.xlib;
11 import java.awt.GraphicsDevice;
12 import java.awt.GraphicsConfiguration;
14 public class XGraphicsDevice extends GraphicsDevice
16 private int id;
17 private String IDstring;
18 private GraphicsConfiguration[] configs;
20 public int getType()
22 return TYPE_RASTER_SCREEN;
25 public XGraphicsDevice(int id, XToolkit toolkit)
27 this.id = id;
28 IDstring = "XGraphicsDevice " + id;
29 configs = new GraphicsConfiguration [1];
30 configs[0] = toolkit.getDefaultXGraphicsConfiguration();
33 public String getIDstring()
35 return IDstring;
38 public GraphicsConfiguration[] getConfigurations()
40 return configs;
43 public GraphicsConfiguration getDefaultConfiguration()
45 return configs[0];
48 public boolean isDisplayChangeSupported()
50 return false;
53 public boolean isFullScreenSupported()
55 return false;