|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.motorola.funlight.FunLight
FunLight class allows developers to access to additional lighting features
that consist of varying colors, light intensity, and areas of light control.
This
API will enhance J2ME
applications, such as game and karaoke applications.
A few examples:
1) when in driving game application, the developer would turn the Fun
Lights on
at varying light intensities and colors to warn of an impending crash,
2) a karaoke or jukebox application would have access to turn the Fun
Lights on
and off to the beat of the music,
3) an alarm clock or stopwatch application could use the Fun Lights in
conjunction with a timer feature.
Fun Lights product:
MIDlet's developer can get information about current Fun Lights feature in run-time by invoking the java.lang.System.getProperty(String key) method with "funlights.product" key.
Product |
Returned
value |
E380 |
"E380" |
V600 |
"V600" |
E390 |
"E390" |
other |
null |
Field Summary | |
static int |
BLACK
Constant for turning a region's light off. |
static int |
BLANK
Constant for Blank region. |
static int |
BLUE
Constant for blue color. |
static int |
CYAN
Constant for cyan color. |
static int |
GREEN
Constant for green color. |
static int |
IGNORED
Constant for indication that operation for region has been ignored. |
static int |
MAGENTA
Constant for magenta color. |
static int |
OFF
Constant for turning a region's light off. |
static int |
ON
Constant for turning a region's light on. |
static int |
QUEUED
Constant for indication that operation for region has been queued. |
static int |
RED
Constant for red color. |
static int |
SUCCESS
Constant for indication that operation for region has been successfully completed. |
static int |
WHITE
Constant for white color. |
static int |
YELLOW
Constant for yellow color. |
Method Summary | |
static int |
getControl()
Tries to occupy control for all existing regions. |
static Region |
getRegion(int ID)
Gets Fun Lights region by ID. |
static Region[] |
getRegions()
Gets the array of regions that exist on the current device. |
static int[] |
getRegionsIDs()
Gets the array of IDs of regions that exist on the current device. |
static void |
releaseControl()
Releases control for all existing regions. |
static int |
setColor(byte red,
byte green,
byte blue)
Sets the color for all of existing regions. |
static int |
setColor(int color)
Sets the color for all existing regions. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BLACK
public static final int BLANK
public static final int BLUE
public static final int CYAN
public static final int GREEN
public static final int MAGENTA
public static final int OFF
public static final int ON
public static final int RED
public static final int WHITE
public static final int YELLOW
public static final int QUEUED
public static final int SUCCESS
public static final int IGNORED
Method Detail |
public static int getControl()
public static Region getRegion(int ID)
ID
- ID of Fun Light Region.public static int[] getRegionsIDs()
public static Region[] getRegions()
public static void releaseControl()
public static int setColor(int color)
color
- color in RGB format (0x00RRGGBB).public static int setColor(byte red, byte green, byte blue)
red
- Red component of color.green
- Green component of color.blue
- Blue component of color.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |