org.jtgl.micro
Interface MappletContext


public interface MappletContext

Defines a Micro Application (aka Mapplet) Context (such as MIDP,ExEn,DoJa).

Author:
Manuel Polo (manuel_polo at yahoo dot es)

Method Summary
 JTGLImage createJTGLImage(byte[] imageData, int imageOffset, int imageLength)
           
 JTGLImage createJTGLImage(int width, int height)
           
 JTGLImage createJTGLImage(JTGLImage image)
           
 JTGLImage createJTGLImage(java.lang.String src)
           
 void debugMsg(java.lang.Object obj)
          Print to console, useful for debugging only
 void delay(Mapplet mapplet, int ms)
           
 void flushGraphics(Mapplet mapplet)
           
 java.lang.Object get(Mapplet mapplet, java.lang.String property)
           
 java.lang.String[] getAvailableInputControls(Mapplet mapplet)
           
 int getDisplayColors(Mapplet mapplet)
           
 int getHeight(Mapplet mapplet)
           
 ImageUtil getImageUtil()
           
 InputControl getInputControl(Mapplet mapplet, java.lang.String inputControlClassName)
           
 JTGLGraphics getJTGLGraphics(Mapplet mapplet)
          Gets global graphics context
 int getWidth(Mapplet mapplet)
           
 void handleException(Mapplet mapplet, java.lang.Exception ex, java.lang.String title)
           
 void notifyKill(Mapplet mapplet)
           
 void runMapplet(Mapplet mapplet)
           
 

Method Detail

runMapplet

void runMapplet(Mapplet mapplet)

getJTGLGraphics

JTGLGraphics getJTGLGraphics(Mapplet mapplet)
Gets global graphics context

Returns:
JTGLGraphics instance

flushGraphics

void flushGraphics(Mapplet mapplet)

getWidth

int getWidth(Mapplet mapplet)

getHeight

int getHeight(Mapplet mapplet)

getDisplayColors

int getDisplayColors(Mapplet mapplet)

createJTGLImage

JTGLImage createJTGLImage(java.lang.String src)
                          throws JTGLException
Throws:
JTGLException

createJTGLImage

JTGLImage createJTGLImage(int width,
                          int height)

createJTGLImage

JTGLImage createJTGLImage(byte[] imageData,
                          int imageOffset,
                          int imageLength)

createJTGLImage

JTGLImage createJTGLImage(JTGLImage image)

get

java.lang.Object get(Mapplet mapplet,
                     java.lang.String property)

getImageUtil

ImageUtil getImageUtil()

delay

void delay(Mapplet mapplet,
           int ms)

notifyKill

void notifyKill(Mapplet mapplet)

handleException

void handleException(Mapplet mapplet,
                     java.lang.Exception ex,
                     java.lang.String title)

getAvailableInputControls

java.lang.String[] getAvailableInputControls(Mapplet mapplet)

getInputControl

InputControl getInputControl(Mapplet mapplet,
                             java.lang.String inputControlClassName)

debugMsg

void debugMsg(java.lang.Object obj)
Print to console, useful for debugging only

Parameters:
obj - Object to print to console