/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.4 by gnu_andrew, Tue Aug 2 20:12:09 2005 UTC revision 1.1.2.5 by gnu_andrew, Sat Sep 10 15:31:37 2005 UTC
# Line 42  import java.awt.GraphicsConfiguration; Line 42  import java.awt.GraphicsConfiguration;
42  import java.awt.GraphicsDevice;  import java.awt.GraphicsDevice;
43  import java.awt.ImageCapabilities;  import java.awt.ImageCapabilities;
44  import java.awt.Rectangle;  import java.awt.Rectangle;
45    import java.awt.Toolkit;
46    
47  import java.awt.geom.AffineTransform;  import java.awt.geom.AffineTransform;
48    
# Line 56  public class GdkGraphicsConfiguration Line 57  public class GdkGraphicsConfiguration
57    ColorModel cm;    ColorModel cm;
58    Rectangle bounds;    Rectangle bounds;
59    
   public GtkToolkit getToolkit()  
   {  
     return gdkScreenGraphicsDevice.getToolkit();  
   }  
   
60    public GdkGraphicsConfiguration(GdkScreenGraphicsDevice dev)    public GdkGraphicsConfiguration(GdkScreenGraphicsDevice dev)
61    {    {
62      this.gdkScreenGraphicsDevice = dev;      this.gdkScreenGraphicsDevice = dev;
63      cm = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB).getColorModel();      cm = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB).getColorModel();
64      bounds = getToolkit().getBounds();      bounds = ((GtkToolkit) Toolkit.getDefaultToolkit()).getBounds();
65    }    }
66    
67    public GraphicsDevice getDevice()    public GraphicsDevice getDevice()
# Line 135  public class GdkGraphicsConfiguration Line 131  public class GdkGraphicsConfiguration
131      return new ImageCapabilities(false);      return new ImageCapabilities(false);
132    }    }
133    
134      public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency)
135      {
136          // FIXME: implement
137        return null;
138      }
139    
140  }  }

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26