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 |
|
|
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() |
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 |
} |
} |