|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
edu.tamu.bpaulson.marqs.AlbumObject
public class AlbumObject
Object that can be added to an album
| Field Summary | |
|---|---|
static int |
MUSIC
|
static int |
OTHER
|
static int |
PICTURE
|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
AlbumObject(java.lang.String filename)
Constructor for an AlbumObject |
|
| Method Summary | |
|---|---|
boolean |
equals(AlbumObject x)
Compares album object to x to see if they share the same file path |
java.lang.String |
getExtension()
Method used to return the extension of the file |
java.lang.String |
getFilename()
Method used to return the filename of the object |
javax.swing.ImageIcon |
getImage()
Return the image of this album object (if it's a picture) |
javax.swing.ImageIcon |
getThumbnail()
Return a thumbnail version of the album object if it is a picture file |
boolean |
isMusic()
Method used to determine if object is a music file |
boolean |
isPicture()
Method used to determine if object is a picture |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int OTHER
public static int PICTURE
public static int MUSIC
| Constructor Detail |
|---|
public AlbumObject(java.lang.String filename)
filename - name of the file| Method Detail |
|---|
public java.lang.String getExtension()
public java.lang.String getFilename()
public boolean isPicture()
public boolean isMusic()
public javax.swing.ImageIcon getThumbnail()
public javax.swing.ImageIcon getImage()
public boolean equals(AlbumObject x)
x - album object to compare to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||