Methods Summary |
---|
static javax.microedition.lcdui.MMHelperImpl | getInstance()Returns the only instance of this class.
return instance;
|
public Display | getItemDisplay(Item item)Get Display being used for Item painting. Platform-dependent.
Display display = null;
if (item.owner == null)
return null;
return item.owner.getLF().lGetCurrentDisplay();
|
synchronized void | hideVideo(java.lang.Object video)Notify video renderers that canvas becomes invisible.
MIDPVideoPainter vp = (MIDPVideoPainter)video;
vp.hideVideo();
|
synchronized void | paintVideo(java.lang.Object video, Graphics g)Informs the player to draw into Graphics g
MIDPVideoPainter vp = (MIDPVideoPainter)video;
vp.paintVideo(g);
|
public void | registerPlayer(Canvas c, com.sun.mmedia.MIDPVideoPainter vp)Registers a video control (which implements MIDPVideoPainter) with
the corresponding Canvas where the video is to show up.
((CanvasLFImpl)c.canvasLF).addEmbeddedVideo(vp);
|
synchronized void | showVideo(java.lang.Object video)Notify video renderers that canvas becomes visible.
MIDPVideoPainter vp = (MIDPVideoPainter)video;
vp.showVideo();
|
public synchronized void | unregisterPlayer(Canvas c, com.sun.mmedia.MIDPVideoPainter vp)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.
((CanvasLFImpl)c.canvasLF).removeEmbeddedVideo(vp);
|