brf.j2me.dynaworks.env
Interface Implementation

All Known Implementing Classes:
J9Impl, KJavaImpl

public interface Implementation

The Implementation is an interface to different J2ME implementations. It provides access to the three parts of the environment relevant for DynaWorks applications:

1) Graphics: access to the screen
2) Audio: access to the audio subsystem
3) Events: user-interaction events

The interface can register EventSink objects and provides access to Graphics and Audio implementations.

Version:
1.0
Author:
Bernd R. Fix
See Also:
EventQueue, Graphics, Audio

Method Summary
 Audio getAudio()
          get access to the Audio implementation.
 Database getDatabase(java.lang.String id)
          get a database object identified by a string.
 Graphics getGraphics()
          get access to the Graphics implementation.
 void register(EventQueue queue)
          registration of the EventQueue.
 

Method Detail

register

public void register(EventQueue queue)
registration of the EventQueue. The Implementation is going to dispatch all events to a registered EventQueue instance.

Parameters:
queue - EventQueue - handler for system events.

getGraphics

public Graphics getGraphics()
get access to the Graphics implementation.

Returns:
Graphics - canvas to paint on.

getAudio

public Audio getAudio()
get access to the Audio implementation.

Returns:
Audio - audio object.

getDatabase

public Database getDatabase(java.lang.String id)
get a database object identified by a string.

Parameters:
id - String - identifying name of the database.
Returns:
Database - database handler.