synergynetframework.appsystem.contentsystem.items
Class MediaPlayer

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.OrthoContainer
              extended by synergynetframework.appsystem.contentsystem.items.MediaPlayer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IMediaPlayerImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class MediaPlayer
extends OrthoContainer
implements IMediaPlayerImplementation

The Class MediaPlayer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
MediaPlayer(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new media player.
 
Method Summary
 void addPlayerListener(JMEMediaPlayer.PlayListener l)
          Adds the player listener.
 java.net.URL getMediaURL()
          Gets the media url.
 float getPixelsPerUnit()
          Gets the pixels per unit.
 OrthoContentItem getPlayerFrame()
          Gets the player frame.
 VideoPlayer getVideoPlayer()
          Gets the video player.
 boolean isPlaying()
          Checks if is playing.
 void play()
          Play.
 void removePlayListener(JMEMediaPlayer.PlayListener l)
          Removes the play listener.
 void removePlayListeners()
          Removes the play listeners.
 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 stop()
          Stop.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContainer
addSubItem, contains, detachSubItem, getAllItemsIncludeSystemItems, getNode, removeSubItem, removeSubItem, setBringToTopable, setRotateTranslateScalable, setScaleLimit, setTopItem, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, clone, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
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, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

MediaPlayer

public MediaPlayer(ContentSystem contentSystem,
                   java.lang.String name)
Instantiates a new media player.

Parameters:
contentSystem - the content system
name - the name
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

getMediaURL

public java.net.URL getMediaURL()
Gets the media url.

Returns:
the media url

getPixelsPerUnit

public float getPixelsPerUnit()
Gets the pixels per unit.

Returns:
the pixels per unit

getPlayerFrame

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

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

getVideoPlayer

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

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

isPlaying

public boolean isPlaying()
Checks if is playing.

Returns:
true, if is playing

play

public void play()
Play.


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

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

stop

public void stop()
Stop.