Motorola E680 Technical Manual - Page 48

ToneControl, Video Control, GUIControl - pictures

Page 48 highlights

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 defines a mode on how the GUI is displayed. initializes the mode on how the GUI is displayed. When USE_GUI_PRIMITIVE is specified for initDisplayMode, a 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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

48
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
defines a mode on how the GUI is displayed.
initializes
the mode on how the GUI is displayed.
When
USE_GUI_PRIMITIVE
is specified for
initDisplayMode,
a 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.