| java.lang.Object com.sun.mmedia.MMHelper javax.microedition.lcdui.MMHelperImpl
MMHelperImpl | final class MMHelperImpl extends MMHelper (Code) | | This is a helper class to communicate between the LCDUI canvas and
the MMAPI video players.
|
Constructor Summary | |
public | MMHelperImpl() Single use constructor. |
MMHelperImpl | public MMHelperImpl()(Code) | | Single use constructor. Cannot be instantiated twice. The instance
object is held by Canvas as well as MIDPVideoPainter implementation.
|
getInstance | static MMHelperImpl getInstance()(Code) | | Returns the only instance of this class.
the instance of this class |
getItemDisplay | public Display getItemDisplay(Item item)(Code) | | Get Display being used for Item painting. Platform-dependent.
|
hideVideo | synchronized void hideVideo(Object video)(Code) | | Notify video renderers that canvas becomes invisible.
Parameters: video - The video painter which is hidden. |
paintVideo | synchronized void paintVideo(Object video, Graphics g)(Code) | | Informs the player to draw into Graphics g
Parameters: video - The video player which should be repainted. Parameters: g - The graphics object to pass to the video player. |
registerPlayer | public void registerPlayer(Canvas c, MIDPVideoPainter vp)(Code) | | Registers a video control (which implements MIDPVideoPainter) with
the corresponding Canvas where the video is to show up.
|
showVideo | synchronized void showVideo(Object video)(Code) | | Notify video renderers that canvas becomes visible.
Parameters: video - The video painter which is shown. |
unregisterPlayer | public synchronized void unregisterPlayer(Canvas c, MIDPVideoPainter vp)(Code) | | Unregisters a video control so that it doesn't get paint callbacks
anymore after the player is closed. This also reduces load on the
Canvas repaint mechanism.
|
|
|