OSDN Git Service

25e76c7381ef264a0192302e01354aa4654c2955
[pf3gnuchains/gcc-fork.git] / libjava / java / awt / GraphicsConfiguration.java
1 /* Copyright (C) 2000, 2001, 2002  Free Software Foundation
2
3 This file is part of GNU Classpath.
4
5 GNU Classpath is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 GNU Classpath is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNU Classpath; see the file COPYING.  If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA.
19
20 As a special exception, if you link this library with other files to
21 produce an executable, this library does not by itself cause the
22 resulting executable to be covered by the GNU General Public License.
23 This exception does not however invalidate any other reasons why the
24 executable file might be covered by the GNU General Public License. */
25
26 /* Status: Complete, but commented out until we have the required
27    GraphicsDevice. */
28
29 package java.awt;
30
31 import java.awt.image.BufferedImage;
32 import java.awt.image.ColorModel;
33 import java.awt.geom.AffineTransform;
34
35 public abstract class GraphicsConfiguration
36 {
37   // Can't instantiate directly.  Having a protected constructor seems
38   // redundant, but that is what the docs specify.
39   protected GraphicsConfiguration ()
40   {
41   }
42
43   /*
44   public abstract GraphicsDevice getDevice();
45   */
46
47   public abstract BufferedImage createCompatibleImage(int width, int height);
48   public abstract BufferedImage createCompatibleImage(int width, int height,
49                                                       int transparency);
50   public abstract ColorModel getColorModel();
51   public abstract ColorModel getColorModel(int transparency);
52   public abstract AffineTransform getDefaultTransform();
53   public abstract AffineTransform getNormalizingTransform();
54
55   /* @since 1.3 */
56   public abstract Rectangle getBounds();
57 }