Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.barteo.emulator.device.applet
Class AppletDevice  view AppletDevice download AppletDevice.java

java.lang.Object
  extended bycom.barteo.emulator.device.applet.AppletDevice
All Implemented Interfaces:
com.barteo.emulator.device.Device

public class AppletDevice
extends java.lang.Object
implements com.barteo.emulator.device.Device


Field Summary
private  java.util.Vector buttons
           
private  com.barteo.emulator.EmulatorContext context
           
private  AppletDeviceDisplay deviceDisplay
           
private  com.barteo.emulator.device.FontManager fontManager
           
private  AppletInputMethod inputMethod
           
private  java.awt.Image normalImage
           
private  java.awt.Image overImage
           
private  java.awt.Image pressedImage
           
private  java.util.Vector softButtons
           
 
Constructor Summary
AppletDevice()
           
 
Method Summary
 javax.microedition.lcdui.Image createImage(byte[] imageData, int imageOffset, int imageLength)
           
 javax.microedition.lcdui.Image createImage(javax.microedition.lcdui.Image source)
           
 javax.microedition.lcdui.Image createImage(int width, int height)
           
 javax.microedition.lcdui.Image createImage(java.lang.String name)
           
 void dispose()
           
 java.util.Vector getButtons()
           
 com.barteo.emulator.device.DeviceDisplay getDeviceDisplay()
           
private  nanoxml.XMLElement getElement(nanoxml.XMLElement source, java.lang.String name)
           
 com.barteo.emulator.EmulatorContext getEmulatorContext()
           
 com.barteo.emulator.device.FontManager getFontManager()
           
 int getGameAction(int keyCode)
           
private  java.awt.Image getImage(java.io.InputStream is)
           
private  java.awt.Image getImage(java.lang.String str)
           
 com.barteo.emulator.device.InputMethod getInputMethod()
           
 int getKeyCode(int gameAction)
           
 java.awt.Image getNormalImage()
           
 java.awt.Image getOverImage()
           
 java.awt.Image getPressedImage()
           
private  java.awt.Rectangle getRectangle(nanoxml.XMLElement source)
           
 java.util.Vector getSoftButtons()
           
private  java.awt.Image getSystemImage(java.lang.String str)
           
 boolean hasPointerEvents()
           
 boolean hasPointerMotionEvents()
           
 boolean hasRepeatEvents()
           
 void init(com.barteo.emulator.EmulatorContext context)
           
 void init(com.barteo.emulator.EmulatorContext context, java.lang.String config)
           
 void loadConfig(java.lang.String config)
           
private  boolean parseBoolean(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private com.barteo.emulator.EmulatorContext context

deviceDisplay

private AppletDeviceDisplay deviceDisplay

fontManager

private com.barteo.emulator.device.FontManager fontManager

inputMethod

private AppletInputMethod inputMethod

buttons

private java.util.Vector buttons

softButtons

private java.util.Vector softButtons

normalImage

private java.awt.Image normalImage

overImage

private java.awt.Image overImage

pressedImage

private java.awt.Image pressedImage
Constructor Detail

AppletDevice

public AppletDevice()
Method Detail

init

public void init(com.barteo.emulator.EmulatorContext context)

init

public void init(com.barteo.emulator.EmulatorContext context,
                 java.lang.String config)

createImage

public javax.microedition.lcdui.Image createImage(int width,
                                                  int height)
Specified by:
createImage in interface com.barteo.emulator.device.Device

createImage

public javax.microedition.lcdui.Image createImage(java.lang.String name)
                                           throws java.io.IOException
Specified by:
createImage in interface com.barteo.emulator.device.Device

createImage

public javax.microedition.lcdui.Image createImage(javax.microedition.lcdui.Image source)
Specified by:
createImage in interface com.barteo.emulator.device.Device

createImage

public javax.microedition.lcdui.Image createImage(byte[] imageData,
                                                  int imageOffset,
                                                  int imageLength)
Specified by:
createImage in interface com.barteo.emulator.device.Device

getDeviceDisplay

public com.barteo.emulator.device.DeviceDisplay getDeviceDisplay()
Specified by:
getDeviceDisplay in interface com.barteo.emulator.device.Device

getEmulatorContext

public com.barteo.emulator.EmulatorContext getEmulatorContext()
Specified by:
getEmulatorContext in interface com.barteo.emulator.device.Device

getFontManager

public com.barteo.emulator.device.FontManager getFontManager()
Specified by:
getFontManager in interface com.barteo.emulator.device.Device

getInputMethod

public com.barteo.emulator.device.InputMethod getInputMethod()
Specified by:
getInputMethod in interface com.barteo.emulator.device.Device

getGameAction

public int getGameAction(int keyCode)
Specified by:
getGameAction in interface com.barteo.emulator.device.Device

getKeyCode

public int getKeyCode(int gameAction)
Specified by:
getKeyCode in interface com.barteo.emulator.device.Device

getSoftButtons

public java.util.Vector getSoftButtons()
Specified by:
getSoftButtons in interface com.barteo.emulator.device.Device

getNormalImage

public java.awt.Image getNormalImage()

getOverImage

public java.awt.Image getOverImage()

getPressedImage

public java.awt.Image getPressedImage()

hasPointerMotionEvents

public boolean hasPointerMotionEvents()
Specified by:
hasPointerMotionEvents in interface com.barteo.emulator.device.Device

hasPointerEvents

public boolean hasPointerEvents()
Specified by:
hasPointerEvents in interface com.barteo.emulator.device.Device

hasRepeatEvents

public boolean hasRepeatEvents()
Specified by:
hasRepeatEvents in interface com.barteo.emulator.device.Device

dispose

public void dispose()

getButtons

public java.util.Vector getButtons()

loadConfig

public void loadConfig(java.lang.String config)
                throws java.io.IOException

getElement

private nanoxml.XMLElement getElement(nanoxml.XMLElement source,
                                      java.lang.String name)

getRectangle

private java.awt.Rectangle getRectangle(nanoxml.XMLElement source)

parseBoolean

private boolean parseBoolean(java.lang.String value)

getSystemImage

private java.awt.Image getSystemImage(java.lang.String str)
                               throws java.io.IOException

getImage

private java.awt.Image getImage(java.lang.String str)
                         throws java.io.IOException

getImage

private java.awt.Image getImage(java.io.InputStream is)
                         throws java.io.IOException