|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sun.kjava.Spotlet
|
+--brf.j2me.dynaworks.env.kjava.KJavaImpl
The KJavaImpl class represents the KJava implementation from sun.
Implementation| Field Summary | |
private Audio |
audio
global Audio object. |
private Graphics |
canvas
global canvas object. |
private EventQueue |
queue
reference to EventQueue instance. |
| Fields inherited from class com.sun.kjava.Spotlet |
appStopKVMEvent, beamReceiveKVMEvent, CALCICON, con, current, in, KEY_HARD1, KEY_HARD2, KEY_HARD3, KEY_HARD4, KEY_POWER, keyDownKVMEvent, MENUICON, NO_EVENT_OPTIONS, PAGEDOWN, PAGEUP, penDownKVMEvent, penMoveKVMEvent, penUpKVMEvent, WANT_SYSTEM_KEYS |
| Constructor Summary | |
KJavaImpl()
constructor. |
|
| Method Summary | |
Audio |
getAudio()
Get the audio object. |
Database |
getDatabase(java.lang.String id)
get a database object identified by a string. |
Graphics |
getGraphics()
Get the canvas object. |
void |
keyDown(int key)
Sink for 'keyDown' event. |
void |
penDown(int x,
int y)
Sink for 'penDown' event. |
void |
penMove(int x,
int y)
Sink for 'penMove' event. |
void |
penUp(int x,
int y)
Sink for 'penUp' event. |
private boolean |
postEvent(Event e)
post an event into the event queue. |
void |
register(EventQueue queue)
registration of EventQueue. |
void |
unregister()
unregistration of EventQueue. |
| Methods inherited from class com.sun.kjava.Spotlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
| Field Detail |
private EventQueue queue
private Graphics canvas
private Audio audio
| Constructor Detail |
public KJavaImpl()
| Method Detail |
public void register(EventQueue queue)
register in interface Implementationqueue - EventQueue - handler for UI events.EventQueuepublic void unregister()
unregister in class com.sun.kjava.Spotletpublic Graphics getGraphics()
getGraphics in interface Implementationpublic Audio getAudio()
getAudio in interface Implementationpublic Database getDatabase(java.lang.String id)
getDatabase in interface Implementationid - String - identifying name of the database.
public void penDown(int x,
int y)
penDown in class com.sun.kjava.Spotletx - int - x-coordinate of peny - int - y-coordinate of pen
public void penMove(int x,
int y)
penMove in class com.sun.kjava.Spotletx - int - x-coordinate of peny - int - y-coordinate of pen
public void penUp(int x,
int y)
penUp in class com.sun.kjava.Spotletx - int - x-coordinate of peny - int - y-coordinate of penpublic void keyDown(int key)
keyDown in class com.sun.kjava.SpotletkeyCode - int - system specific key codeprivate boolean postEvent(Event e)
e - Event - event to be added to the EventQueue.EventQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||