de.enough.polish.ui.remotescreen
Class BluetoothRemoteScreen

java.lang.Object
  extended by de.enough.polish.ui.remotescreen.BluetoothRemoteScreen
All Implemented Interfaces:
RemoteScreen, Runnable

public class BluetoothRemoteScreen
extends Object
implements RemoteScreen, Runnable

Sends screen updates to the remote screen desktop application of J2ME Polish.

This can be used for demonstration purposes, for example.

Copyright Enough Software 2008

Author:
Robert Virkus, j2mepolish@enough.de

Constructor Summary
BluetoothRemoteScreen()
           
 
Method Summary
 void init(int width, int height, int degrees)
          Initializes the remote screen, this may be called several times, e.g.
 void run()
           
 void updateScreen(int x, int y, int width, int height, int[] rgb)
          Refreshes parts of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothRemoteScreen

public BluetoothRemoteScreen()
Method Detail

init

public void init(int width,
                 int height,
                 int degrees)
Description copied from interface: RemoteScreen
Initializes the remote screen, this may be called several times, e.g. when the screen orientation is changed.

Specified by:
init in interface RemoteScreen
Parameters:
width - the width of the physical display
height - the height of the physical display
degrees - the degrees by which the screen is rotated - 0, 90, 180 or 270.

updateScreen

public void updateScreen(int x,
                         int y,
                         int width,
                         int height,
                         int[] rgb)
Description copied from interface: RemoteScreen
Refreshes parts of the screen. This method needs to do it's work asynchronously and return as fast as possible, as it is called from within the paint thread of the device.

Specified by:
updateScreen in interface RemoteScreen
Parameters:
x - the horizontal start position
y - the vertical start position
width - the width of the refreshed part
height - the height of the refreshed part
rgb - the RGB data

run

public void run()
Specified by:
run in interface Runnable