synergynetframework.appsystem.contentsystem.jme.items
Class JMEMediaPlayer

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContainer
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEMediaPlayer
All Implemented Interfaces:
IContentItemImplementation, IMediaPlayerImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ScreenCursorListener, JMEContentItemImplementation, UpdateableJMEContentItemImplementation, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEMediaPlayer
extends JMEOrthoContainer
implements IMediaPlayerImplementation, UpdateableJMEContentItemImplementation

The Class JMEMediaPlayer.


Nested Class Summary
static interface JMEMediaPlayer.PlayListener
          The listener interface for receiving play events.
 
Constructor Summary
JMEMediaPlayer(ContentItem contentItem)
          Instantiates a new JME media player.
 
Method Summary
 void addPlayerListener(JMEMediaPlayer.PlayListener l)
          Adds the player listener.
 OrthoContentItem getPlayerFrame()
          Gets the player frame.
 com.jme.scene.Spatial getSpatial()
          Gets the spatial.
 VideoPlayer getVideoPlayer()
          Gets the video player.
 void hideControlPanel()
          Hide control panel.
 void init()
          Inits the.
 void makeFlickable(float deceleration)
          Make flickable.
 void removePlayListener(JMEMediaPlayer.PlayListener l)
          Removes the play listener.
 void removePlayListeners()
          Removes the play listeners.
 void render()
          Render.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setHeight(int height)
          Sets the height.
 void setMediaURL(java.net.URL url)
          Sets the media url.
 void setPixelsPerUnit(float ppu)
          Sets the pixels per unit.
 void setPlaying(boolean b)
          Sets the playing.
 void setWidth(int width)
          Sets the width.
 void showControlPanel()
          Show control panel.
 void update(float interpolation)
          Update.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContainer
addSubItem, detachSubItem, getNode, removeSubItem, setBackGround, setBorder, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorChanged, cursorClicked, cursorPressed, cursorReleased, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, screenCursorChanged, screenCursorClicked, screenCursorPressed, screenCursorReleased, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setLocalLocation, setName, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher, update
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
contains, getImplementationObject, getLocalLocation, hasCollision, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update
 

Constructor Detail

JMEMediaPlayer

public JMEMediaPlayer(ContentItem contentItem)
Instantiates a new JME media player.

Parameters:
contentItem - the content item
Method Detail

addPlayerListener

public void addPlayerListener(JMEMediaPlayer.PlayListener l)
Description copied from interface: IMediaPlayerImplementation
Adds the player listener.

Specified by:
addPlayerListener in interface IMediaPlayerImplementation
Parameters:
l - the l

getPlayerFrame

public OrthoContentItem getPlayerFrame()
Description copied from interface: IMediaPlayerImplementation
Gets the player frame.

Specified by:
getPlayerFrame in interface IMediaPlayerImplementation
Returns:
the player frame

getSpatial

public com.jme.scene.Spatial getSpatial()
Description copied from interface: JMEContentItemImplementation
Gets the spatial.

Specified by:
getSpatial in interface JMEContentItemImplementation
Returns:
the spatial

getVideoPlayer

public VideoPlayer getVideoPlayer()
Description copied from interface: IMediaPlayerImplementation
Gets the video player.

Specified by:
getVideoPlayer in interface IMediaPlayerImplementation
Returns:
the video player

hideControlPanel

public void hideControlPanel()
Hide control panel.


init

public void init()
Description copied from interface: IContentItemImplementation
Inits the.

Specified by:
init in interface IContentItemImplementation
Overrides:
init in class JMEContentItem

makeFlickable

public void makeFlickable(float deceleration)
Description copied from interface: IOrthoContentItemImplementation
Make flickable.

Specified by:
makeFlickable in interface IOrthoContentItemImplementation
Overrides:
makeFlickable in class JMEOrthoContentItem
Parameters:
deceleration - the deceleration

removePlayListener

public void removePlayListener(JMEMediaPlayer.PlayListener l)
Description copied from interface: IMediaPlayerImplementation
Removes the play listener.

Specified by:
removePlayListener in interface IMediaPlayerImplementation
Parameters:
l - the l

removePlayListeners

public void removePlayListeners()
Description copied from interface: IMediaPlayerImplementation
Removes the play listeners.

Specified by:
removePlayListeners in interface IMediaPlayerImplementation

render

public void render()
Render.


setAutoFitSize

public void setAutoFitSize(boolean isEnabled)
Description copied from interface: IQuadContentItemImplementation
Sets the auto fit size.

Specified by:
setAutoFitSize in interface IQuadContentItemImplementation
Parameters:
isEnabled - the new auto fit size

setHeight

public void setHeight(int height)
Description copied from interface: IQuadContentItemImplementation
Sets the height.

Specified by:
setHeight in interface IQuadContentItemImplementation
Parameters:
height - the new height

setMediaURL

public void setMediaURL(java.net.URL url)
Description copied from interface: IMediaPlayerImplementation
Sets the media url.

Specified by:
setMediaURL in interface IMediaPlayerImplementation
Parameters:
url - the new media url

setPixelsPerUnit

public void setPixelsPerUnit(float ppu)
Description copied from interface: IMediaPlayerImplementation
Sets the pixels per unit.

Specified by:
setPixelsPerUnit in interface IMediaPlayerImplementation
Parameters:
ppu - the new pixels per unit

setPlaying

public void setPlaying(boolean b)
Description copied from interface: IMediaPlayerImplementation
Sets the playing.

Specified by:
setPlaying in interface IMediaPlayerImplementation
Parameters:
b - the new playing

setWidth

public void setWidth(int width)
Description copied from interface: IQuadContentItemImplementation
Sets the width.

Specified by:
setWidth in interface IQuadContentItemImplementation
Parameters:
width - the new width

showControlPanel

public void showControlPanel()
Show control panel.


update

public void update(float interpolation)
Description copied from interface: IContentItemImplementation
Update.

Specified by:
update in interface IContentItemImplementation
Specified by:
update in interface UpdateableJMEContentItemImplementation
Overrides:
update in class JMEOrthoContentItem
Parameters:
interpolation - the interpolation