Package devices
Class MoviePlayer
- java.lang.Object
-
- start.Product
-
- devices.MoviePlayer
-
- All Implemented Interfaces:
Item,MultimediaControl
public class MoviePlayer extends Product implements MultimediaControl
Device that ia able to play Movies mainly a screen, that is able to play movies and display a video input.- Author:
- Brandon Heck
-
-
Constructor Summary
Constructors Constructor Description MoviePlayer(Widget widget, Screen screen, MonitorType monitorType)Abstract Product Constructor for Item Interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()Additional product information when called by product.MonitorTypegetMonitorType()Retrieve the Monitor Type.ScreengetScreen()Retrieve the Screen info.voidnext()Play the next media from the device.voidplay()Play media from the device.voidprevious()Play the previous media from the device.voidstop()Stop media from the device.java.lang.StringtoString()-
Methods inherited from class start.Product
getEmployee, getId, getItemType, getManufacturer, getName, getType, setEmployee, setItemType, setManufacturer, setName
-
-
-
-
Constructor Detail
-
MoviePlayer
public MoviePlayer(Widget widget, Screen screen, MonitorType monitorType)
Abstract Product Constructor for Item Interface.- Parameters:
widget- Widget Information.screen- Screen Type of device.monitorType- Monitor Type of device.
-
-
Method Detail
-
play
public void play()
Description copied from interface:MultimediaControlPlay media from the device.- Specified by:
playin interfaceMultimediaControl
-
stop
public void stop()
Description copied from interface:MultimediaControlStop media from the device.- Specified by:
stopin interfaceMultimediaControl
-
previous
public void previous()
Description copied from interface:MultimediaControlPlay the previous media from the device.- Specified by:
previousin interfaceMultimediaControl
-
next
public void next()
Description copied from interface:MultimediaControlPlay the next media from the device.- Specified by:
nextin interfaceMultimediaControl
-
getScreen
public Screen getScreen()
Retrieve the Screen info.- Returns:
- Screen Object.
-
getMonitorType
public MonitorType getMonitorType()
Retrieve the Monitor Type.- Returns:
- Monitor type Object.
-
getInfo
public java.lang.String getInfo()
Additional product information when called by product.- Returns:
- Speaker Details.
-
-