synergynetframework.appsystem.contentsystem.jme.items
Class JMEVideoPlayer

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.JMEQuadContentItem
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEVideoPlayer
All Implemented Interfaces:
IContentItemImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, IVideoPlayerImplementation, ScreenCursorListener, JMEContentItemImplementation, UpdateableJMEContentItemImplementation, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEVideoPlayer
extends JMEQuadContentItem
implements IVideoPlayerImplementation, UpdateableJMEContentItemImplementation

The Class JMEVideoPlayer.


Constructor Summary
JMEVideoPlayer(ContentItem item)
          Instantiates a new JME video player.
 
Method Summary
 void contentSystemChanged(ContentSystem system)
          Content system changed.
 java.lang.Object getMediaImplementationObject()
          Gets the media implementation object.
 com.jme.scene.Spatial getSpatial()
          Gets the spatial.
 float getVideoHeight()
          Gets the video height.
 double getVideoTime()
          Gets the video time.
 float getVideoWidth()
          Gets the video width.
 void init()
          Inits the.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setBackGround(Background backGround)
          Sets the back ground.
 void setBorder(Border border)
          Sets the border.
 void setHeight(int height)
          Sets the height.
 void setPixelsPerUnit(float ppu)
          Sets the pixels per unit.
 void setPlaying(boolean b)
          Sets the playing.
 void setVideoTime(double seconds)
          Sets the video time.
 void setVideoURL(java.net.URL url)
          Sets the video url.
 void setWidth(int width)
          Sets the width.
 void update(float interpolation)
          Update.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
cursorChanged, cursorClicked, cursorPressed, cursorReleased
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeFlickable, 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, makeFlickable, 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, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update
 

Constructor Detail

JMEVideoPlayer

public JMEVideoPlayer(ContentItem item)
Instantiates a new JME video player.

Parameters:
item - the item
Method Detail

contentSystemChanged

public void contentSystemChanged(ContentSystem system)
Content system changed.

Parameters:
system - the system

getMediaImplementationObject

public java.lang.Object getMediaImplementationObject()
Description copied from interface: IVideoPlayerImplementation
Gets the media implementation object.

Specified by:
getMediaImplementationObject in interface IVideoPlayerImplementation
Returns:
the media implementation object

getSpatial

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

Specified by:
getSpatial in interface JMEContentItemImplementation
Returns:
the spatial

getVideoHeight

public float getVideoHeight()
Description copied from interface: IVideoPlayerImplementation
Gets the video height.

Specified by:
getVideoHeight in interface IVideoPlayerImplementation
Returns:
the video height

getVideoTime

public double getVideoTime()
Description copied from interface: IVideoPlayerImplementation
Gets the video time.

Specified by:
getVideoTime in interface IVideoPlayerImplementation
Returns:
the video time

getVideoWidth

public float getVideoWidth()
Description copied from interface: IVideoPlayerImplementation
Gets the video width.

Specified by:
getVideoWidth in interface IVideoPlayerImplementation
Returns:
the video width

init

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

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

setAutoFitSize

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

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

setBackGround

public void setBackGround(Background backGround)
Description copied from interface: IContentItemImplementation
Sets the back ground.

Specified by:
setBackGround in interface IContentItemImplementation
Overrides:
setBackGround in class JMEOrthoContentItem
Parameters:
backGround - the new back ground

setBorder

public void setBorder(Border border)
Description copied from interface: IContentItemImplementation
Sets the border.

Specified by:
setBorder in interface IContentItemImplementation
Overrides:
setBorder in class JMEOrthoContentItem
Parameters:
border - the new border

setHeight

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

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

setPixelsPerUnit

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

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

setPlaying

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

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

setVideoTime

public void setVideoTime(double seconds)
Description copied from interface: IVideoPlayerImplementation
Sets the video time.

Specified by:
setVideoTime in interface IVideoPlayerImplementation
Parameters:
seconds - the new video time

setVideoURL

public void setVideoURL(java.net.URL url)
Description copied from interface: IVideoPlayerImplementation
Sets the video url.

Specified by:
setVideoURL in interface IVideoPlayerImplementation
Parameters:
url - the new video url

setWidth

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

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

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