OSDN Git Service

auto import from //depot/cupcake/@135843
[android-x86/frameworks-native.git] / awt / com / android / internal / awt / AndroidGraphicsConfiguration.java
1 /*
2  * Copyright 2007, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); 
5  * you may not use this file except in compliance with the License. 
6  * You may obtain a copy of the License at 
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0 
9  *
10  * Unless required by applicable law or agreed to in writing, software 
11  * distributed under the License is distributed on an "AS IS" BASIS, 
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13  * See the License for the specific language governing permissions and 
14  * limitations under the License.
15  */
16
17 package com.android.internal.awt;
18
19 import com.android.internal.awt.AndroidGraphics2D;
20
21 import java.awt.GraphicsConfiguration;
22 import java.awt.GraphicsDevice;
23 import java.awt.Rectangle;
24 import java.awt.geom.AffineTransform;
25 import java.awt.image.BufferedImage;
26 import java.awt.image.ColorModel;
27 import java.awt.image.VolatileImage;
28
29 import android.graphics.Canvas;
30
31 public class AndroidGraphicsConfiguration extends GraphicsConfiguration {
32
33     @Override
34     public BufferedImage createCompatibleImage(int width, int height) {
35         // TODO Auto-generated method stub
36         return null;
37     }
38
39     @Override
40     public BufferedImage createCompatibleImage(int width, int height,
41             int transparency) {
42         // TODO Auto-generated method stub
43         return null;
44     }
45
46     @Override
47     public VolatileImage createCompatibleVolatileImage(int width, int height) {
48         // TODO Auto-generated method stub
49         return null;
50     }
51
52     @Override
53     public VolatileImage createCompatibleVolatileImage(int width, int height,
54             int transparency) {
55         // TODO Auto-generated method stub
56         return null;
57     }
58
59     @Override
60     public Rectangle getBounds() {
61         Canvas c = AndroidGraphics2D.getAndroidCanvas();
62         if(c != null)
63             return new Rectangle(0, 0, c.getWidth(), c.getHeight());
64         return null;
65     }
66
67     @Override
68     public ColorModel getColorModel() {
69         // TODO Auto-generated method stub
70         return null;
71     }
72
73     @Override
74     public ColorModel getColorModel(int transparency) {
75         // TODO Auto-generated method stub
76         return null;
77     }
78
79     @Override
80     public AffineTransform getDefaultTransform() {
81         return new AffineTransform();
82     }
83
84     @Override
85     public GraphicsDevice getDevice() {
86         // TODO Auto-generated method stub
87         return null;
88     }
89
90     @Override
91     public AffineTransform getNormalizingTransform() {
92         // TODO Auto-generated method stub
93         return null;
94     }
95
96 }