|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dt.iTunesController.ITObject
com.dt.iTunesController.ITTrack
public class ITTrack
Represents a track.
A track represents a song in a single playlist. A song may be in more than
one playlist, in which case it would be represented by multiple tracks.
You can retrieve the currently targeted (playing) track using
iTunes.getCurrentTrack().
Typically, an ITrack is accessed through an ITTrackCollection.
You can retrieve all the tracks defined for a playlist using
ITPlaylist.getTracks().
You can retrieve the currently selected track or tracks using
iTunes.getSelectedTracks().
| Constructor Summary | |
|---|---|
ITTrack(com.jacob.com.Dispatch d)
|
|
| Method Summary | |
|---|---|
void |
delete()
Delete this object. |
java.lang.String |
getAlbum()
Returns the name of the album containing the object. |
java.lang.String |
getArtist()
Returns the name of the artist/source of the object. |
int |
getBitRate()
Returns the bit rate of the object (in kbps). |
int |
getBPM()
Returns the tempo of the object (in beats per minute). |
java.lang.String |
getComment()
Returns freeform notes about the object. |
boolean |
getCompilation()
Returns true if this object is from a compilation album. |
java.lang.String |
getComposer()
Returns the composer of the object. |
java.util.Date |
getDateAdded()
Returns the date the object was added to the playlist. |
int |
getDiscCount()
Returns the total number of discs in the source album. |
int |
getDiscNumber()
Returns the index of the disc containing the object on the source album. |
int |
getDuration()
Returns the length of the object (in seconds). |
boolean |
getEnabled()
Returns true if the object is checked for playback. |
java.lang.String |
getEQ()
Returns the name of the EQ preset of the object. |
int |
getFinish()
Returns the stop time of the object (in seconds). |
java.lang.String |
getGenre()
Set the music/audio genre (category) of the object. |
java.lang.String |
getGrouping()
Returns the grouping (piece) of the object. |
ITTrackKind |
getKind()
|
java.lang.String |
getKindAsString()
Returns the text description of the object (e.g. |
java.util.Date |
getModificationDate()
Returns the modification date of the content of the object. |
int |
getPlayedCount()
Returns the number of times the object has been played. |
java.util.Date |
getPlayedDate()
Returns the date and time the object was last played. |
ITPlaylist |
getPlaylist()
Returns an ITPlaylist object corresponding to the playlist that contains the object. |
int |
getPlayOrderIndex()
Returns the play order index of the object in the owner playlist (1-based). |
int |
getRating()
Returns the rating of the object (0 to 100). |
int |
getSampleRate()
Returns the sample rate of the object (in Hz). |
int |
getSize()
Returns the size of the object (in bytes). |
int |
getStart()
Returns the start time of the object (in seconds). |
java.lang.String |
getTime()
Returns the length of the object (in MM:SS format). |
int |
getTrackCount()
Returns the total number of tracks on the source album. |
int |
getTrackNumber()
Returns the index of the object on the source album. |
int |
getVolumeAdjustment()
Returns the relative volume adjustment of the object (-100% to 100%). |
int |
getYear()
Returns the year the object was recorded/released. |
void |
play()
Start playing this object. |
void |
setAlbum(java.lang.String album)
Set the name of the album containing the object.; |
void |
setArtist(java.lang.String artist)
Set the name of the artist/source of the object. |
void |
setBPM(int beatsPerMinute)
Set the tempo of the object (in beats per minute). |
void |
setComment(java.lang.String comment)
Set freeform notes about the object. |
void |
setCompilation(boolean isCompilation)
Set whether this object is from a compilation album. |
void |
setComposer(java.lang.String composer)
Set the composer of the object. |
void |
setDiscCount(int discCount)
Set the total number of discs in the source album. |
void |
setDiscNumber(int discNumber)
Set the index of the disc containing the object on the source album. |
void |
setEnabled(boolean shouldBeEnabled)
Set whether this object is checked for playback. |
void |
setEQ(java.lang.String eq)
Set the name of the EQ preset of the object. |
void |
setFinish(int finish)
Set the stop time of the object (in seconds). |
void |
setGenre(java.lang.String genre)
Returns the music/audio genre (category) of the object. |
void |
setGrouping(java.lang.String grouping)
Set the grouping (piece) of the object. |
void |
setPlayedCount(int playedCount)
Set the number of times the object has been played. |
void |
setPlayedDate(java.util.Date playedDate)
Set the date and time the object was last played. |
void |
setRating(int rating)
Set the rating of the object (0 to 100). |
void |
setStart(int start)
Set the start time of the object (in seconds). |
void |
setTrackCount(int trackCount)
Set the total number of tracks on the source album. |
void |
setTrackNumber(int trackNumber)
Set the index of the object on the source album. |
void |
setVolumeAdjustment(int volumeAdjustment)
Set the relative volume adjustment of the object (-100% to 100%). |
void |
setYear(int year)
Set the year the object was recorded/released. |
| Methods inherited from class com.dt.iTunesController.ITObject |
|---|
fetchDispatch, getIndex, getName, getPlaylistID, getSourceID, getTrackDatabaseID, getTrackID, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ITTrack(com.jacob.com.Dispatch d)
| Method Detail |
|---|
public void delete()
public void play()
public void setAlbum(java.lang.String album)
album - The new name of the album containing the object.public java.lang.String getAlbum()
public void setArtist(java.lang.String artist)
artist - The new artist/source of the object.public java.lang.String getArtist()
public int getBitRate()
public void setBPM(int beatsPerMinute)
beatsPerMinute - The new tempo of the object (in beats per minute).public int getBPM()
public void setComment(java.lang.String comment)
comment - The new freeform notes about the object.public java.lang.String getComment()
public void setCompilation(boolean isCompilation)
isCompilation - True if this object should be from a compilation album.public boolean getCompilation()
public void setComposer(java.lang.String composer)
composer - The new composer of the object.public java.lang.String getComposer()
public java.util.Date getDateAdded()
public void setDiscCount(int discCount)
discCount - The new total number of discs in the source album.public int getDiscCount()
public void setDiscNumber(int discNumber)
discNumber - The new index of the disc containing the object on the
source album.public int getDiscNumber()
public int getDuration()
public void setEnabled(boolean shouldBeEnabled)
shouldBeEnabled - True if the object should be checked for playback.public boolean getEnabled()
public void setEQ(java.lang.String eq)
eq - The new name of the EQ preset of the object.public java.lang.String getEQ()
public void setFinish(int finish)
finish - The new stop time of the object (in seconds).public int getFinish()
public void setGenre(java.lang.String genre)
genre - Returns the music/audio genre (category) of the object.public java.lang.String getGenre()
public void setGrouping(java.lang.String grouping)
grouping - The new grouping (piece) of the object.public java.lang.String getGrouping()
public ITTrackKind getKind()
public java.lang.String getKindAsString()
public java.util.Date getModificationDate()
public void setPlayedCount(int playedCount)
playedCount - The new number of times the object has been played.public int getPlayedCount()
public void setPlayedDate(java.util.Date playedDate)
playedDate - The new date and time the object was last played.public java.util.Date getPlayedDate()
public ITPlaylist getPlaylist()
public int getPlayOrderIndex()
public void setRating(int rating)
rating - The new rating of the object (0 to 100).public int getRating()
public int getSampleRate()
public int getSize()
public void setStart(int start)
start - The new start time of the object (in seconds).public int getStart()
public java.lang.String getTime()
public void setTrackCount(int trackCount)
trackCount - The new total number of tracks on the source album.public int getTrackCount()
public void setTrackNumber(int trackNumber)
trackNumber - The new index of the object on the source album.public int getTrackNumber()
public void setVolumeAdjustment(int volumeAdjustment)
volumeAdjustment - Set the relative volume adjustment of the object
(-100% to 100%).public int getVolumeAdjustment()
public void setYear(int year)
year - The new year the object was recorded/released.public int getYear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||