Tonecontrol; Video Control; Snapshot Image; Guicontrol - Motorola E680 - Smartphone - GSM Developer's Manual

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

ToneControl

ToneControl is the interface to enable playback of a user-defined monotonic tone
sequence. The JSR 135 Mobile Media API will implement public interface ToneControl.
A tone sequence is specified as a list of non-tone duration pairs and user-defined
sequence blocks and is packaged as an array of bytes. The setSequence() method
is used to input the sequence to the ToneControl.
The following is the available method for ToneControl:
-setSequence (byte[] sequence): Sets the tone sequence

Video Control

VideoControl is an interface for manipulating the video of a Player. The JSR 135 Mobile
Media API will implement public interface VideoControl. An application can use the
VideoControl to display a viewfinder on the screen, then take a picture using
VideoControl.getSnapshot (String imageType). VideoControl controls the display of the
video, and for example, its location relative to the canvas where it is displayed.

Snapshot Image

If a video snapshot is taken (by VideoControl's method 'getSnapshot'), the supported
image types are:
"encoding=png" and "encoding=jpeg". The image type may optionally include
width and height parameters (which default to 192x192, the minimum size is
160x120, the maximum size is 640*480):
• videoControl.getSnapshot(null); // default PNG, 192x192
• videoControl.getSnapshot("encoding=jpeg"); // JPEG, 192x192
• videoControl.getSnapshot("width=80&height=60"); // default PNG, change to
minimum size 160 x120
• videoControl.getSnapshot("encoding=jpeg&width=176&height=144"); // JPEG,
176 x144

GUIControl

GUIControl extends control and is defined for controls that provide GUI functionalities.
USE_GUI_PRIMITIVE
the mode on how the GUI is displayed.
When
USE_GUI_PRIMITIVE
will be returned. This object is where the GUI of this control will be displayed. It can be
used in conjunction with other GUI objects and conforms to the GUI behaviors specified.
48
defines a mode on how the GUI is displayed.
is specified for
initDisplayMode,
initializes
a GUI primitive

Advertisement

Table of Contents
loading

Table of Contents