|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectportaview.model.Photo
Represents a photo on disk. Note that this is not the model used in the PortaView manager. Provides an abstarction to access the pictures on disk.
| Constructor Summary | |
Photo()
|
|
Photo(java.io.File f)
Constructs a photo. |
|
Photo(java.io.File f,
java.lang.String caption)
Constructs a photo with caption. |
|
| Method Summary | |
java.lang.String |
getCaption()
|
java.io.File |
getFile()
|
byte[] |
getJpeg()
|
byte[] |
getJpegIcon(int width,
int height)
|
void |
setCaption(java.lang.String caption)
Sets the caption. |
void |
setFile(java.io.File file)
Sets the file associated with this Photo. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Photo()
public Photo(java.io.File f,
java.lang.String caption)
f - file that represents the photocaption - caption for the photopublic Photo(java.io.File f)
f - file that represents the photo| Method Detail |
public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption - caption to set.public java.io.File getFile()
public void setFile(java.io.File file)
file - file to set.public byte[] getJpeg()
public byte[] getJpegIcon(int width,
int height)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||