MovieLibrary
Class ClipObject

java.lang.Object
  extended by MovieLibrary.VideoObject
      extended by MovieLibrary.ClipObject

public class ClipObject
extends VideoObject

class to store information about a clip.
Subclass of video object

Author:
Alex Della-Croce

Field Summary
 
Fields inherited from class MovieLibrary.VideoObject
CLIP, MOVIE, MUSIC_VIDEO, NO_OF_VIDEO_TYPES, SERIES
 
Constructor Summary
ClipObject(ClipObject reqClip)
          Contructor for a clip object from another non null clip object.
Will create a new clip object with all the settings from the given clip object
ClipObject(int requiredVideoID, java.io.File requiredFilePath)
          Constructor for a clip object.
Will create a new clip with given ID and path and default type
 
Method Summary
static java.lang.String getStringClipType(int intClipType)
          gets the string description of a given clip type.
 
Methods inherited from class MovieLibrary.VideoObject
addToPlaylist, getAudioBitrate, getAudioCodec, getAudioSampleRate, getDuration, getFileSize, getFPS, getFrameCount, getFrameHeight, getFrameWidth, getGenre, getIntVideoType, getPlaylists, getStringVideoType, getStringVideoType, getVideoBitrate, getVideoCodec, getVideoID, getVideoName, getVideoPath, getVideoType, setAudioBitrate, setAudioCodec, setAudioSampleRate, setDuration, setFilePath, setFileSizeInBytes, setFPS, setFrameCount, setFrameHeight, setFrameWidth, setGenre, setVideoBitrate, setVideoCodec, setVideoID, setVideoName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipObject

public ClipObject(int requiredVideoID,
                  java.io.File requiredFilePath)
Constructor for a clip object.
Will create a new clip with given ID and path and default type

Parameters:
requiredVideoID - video ID of the clip to be created
requiredFilePath - video path of the clip to be created

ClipObject

public ClipObject(ClipObject reqClip)
Contructor for a clip object from another non null clip object.
Will create a new clip object with all the settings from the given clip object

Parameters:
reqClip - clip object from which the new is based on
Method Detail

getStringClipType

public static java.lang.String getStringClipType(int intClipType)
gets the string description of a given clip type.

Parameters:
intClipType - clip type to get the string description from
Returns:
string description of the given clip type