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 17package com.android.internal.awt; 18 19import java.awt.GraphicsDevice; 20 21import org.apache.harmony.awt.wtk.CursorFactory; 22import org.apache.harmony.awt.wtk.GraphicsFactory; 23import org.apache.harmony.awt.wtk.NativeEventQueue; 24import org.apache.harmony.awt.wtk.NativeIM; 25import org.apache.harmony.awt.wtk.NativeMouseInfo; 26import org.apache.harmony.awt.wtk.NativeRobot; 27import org.apache.harmony.awt.wtk.SystemProperties; 28import org.apache.harmony.awt.wtk.WTK; 29import org.apache.harmony.awt.wtk.WindowFactory; 30 31public class AndroidWTK extends WTK { 32 33 private AndroidGraphicsFactory mAgf; 34 private AndroidNativeEventQueue mAneq; 35 36 @Override 37 public CursorFactory getCursorFactory() { 38 // TODO Auto-generated method stub 39 return null; 40 } 41 42 @Override 43 public GraphicsFactory getGraphicsFactory() { 44 if(mAgf == null) { 45 mAgf = new AndroidGraphicsFactory(); 46 } 47 return mAgf; 48 } 49 50 @Override 51 public NativeEventQueue getNativeEventQueue() { 52 if(mAneq == null) { 53 mAneq = new AndroidNativeEventQueue(); 54 } 55 return mAneq; 56 } 57 58 @Override 59 public NativeIM getNativeIM() { 60 // TODO Auto-generated method stub 61 return null; 62 } 63 64 @Override 65 public NativeMouseInfo getNativeMouseInfo() { 66 // TODO Auto-generated method stub 67 return null; 68 } 69 70 @Override 71 public NativeRobot getNativeRobot(GraphicsDevice screen) { 72 // TODO Auto-generated method stub 73 return null; 74 } 75 76 @Override 77 public SystemProperties getSystemProperties() { 78 // TODO Auto-generated method stub 79 return null; 80 } 81 82 @Override 83 public WindowFactory getWindowFactory() { 84 // TODO Auto-generated method stub 85 return null; 86 } 87 88} 89