2 * Copyright 2007, The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.internal.awt;
19 import com.android.internal.awt.AndroidGraphics2D;
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;
29 import android.graphics.Canvas;
31 public class AndroidGraphicsConfiguration extends GraphicsConfiguration {
34 public BufferedImage createCompatibleImage(int width, int height) {
35 // TODO Auto-generated method stub
40 public BufferedImage createCompatibleImage(int width, int height,
42 // TODO Auto-generated method stub
47 public VolatileImage createCompatibleVolatileImage(int width, int height) {
48 // TODO Auto-generated method stub
53 public VolatileImage createCompatibleVolatileImage(int width, int height,
55 // TODO Auto-generated method stub
60 public Rectangle getBounds() {
61 Canvas c = AndroidGraphics2D.getAndroidCanvas();
63 return new Rectangle(0, 0, c.getWidth(), c.getHeight());
68 public ColorModel getColorModel() {
69 // TODO Auto-generated method stub
74 public ColorModel getColorModel(int transparency) {
75 // TODO Auto-generated method stub
80 public AffineTransform getDefaultTransform() {
81 return new AffineTransform();
85 public GraphicsDevice getDevice() {
86 // TODO Auto-generated method stub
91 public AffineTransform getNormalizingTransform() {
92 // TODO Auto-generated method stub