synergynetframework.appsystem.contentsystem.items
Class VideoPlayer

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

public class VideoPlayer
extends QuadContentItem
implements IVideoPlayerImplementation

The Class VideoPlayer.

See Also:
Serialized Form

Field Summary
 double videoTime
          The video time.
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
VideoPlayer(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new video player.
 
Method Summary
 int getHeight()
          Gets the height.
 java.lang.Object getMediaImplementationObject()
          Gets the media implementation object.
 float getPixelsPerUnit()
          Gets the pixels per unit.
 float getVideoHeight()
          Gets the video height.
 double getVideoTime()
          Gets the video time.
 java.net.URL getVideoURL()
          Gets the video url.
 float getVideoWidth()
          Gets the video width.
 int getWidth()
          Gets the width.
 boolean isPlaying()
          Checks if is playing.
 void play()
          Play.
 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 stop()
          Stop.
 void update(float tpf)
          Update.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem
addSizeChangeListener, clone, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize, setHeight, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, 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, setBringToTopable, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, 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
 
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.IQuadContentItemImplementation
setAutoFitSize, setHeight, setWidth
 
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
 

Field Detail

videoTime

public double videoTime
The video time.

Constructor Detail

VideoPlayer

public VideoPlayer(ContentSystem contentSystem,
                   java.lang.String name)
Instantiates a new video player.

Parameters:
contentSystem - the content system
name - the name
Method Detail

getHeight

public int getHeight()
Description copied from class: QuadContentItem
Gets the height.

Overrides:
getHeight in class QuadContentItem
Returns:
the height

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

getPixelsPerUnit

public float getPixelsPerUnit()
Gets the pixels per unit.

Returns:
the pixels per unit

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

getVideoURL

public java.net.URL getVideoURL()
Gets the video url.

Returns:
the video url

getVideoWidth

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

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

getWidth

public int getWidth()
Description copied from class: QuadContentItem
Gets the width.

Overrides:
getWidth in class QuadContentItem
Returns:
the width

isPlaying

public boolean isPlaying()
Checks if is playing.

Returns:
true, if is playing

play

public void play()
Play.


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

stop

public void stop()
Stop.


update

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

Specified by:
update in interface IContentItemImplementation
Overrides:
update in class ContentItem
Parameters:
tpf - the interpolation