org.shiftone.memento.model
Class PhotoModel

java.lang.Object
  extended byorg.shiftone.memento.model.PhotoModel
All Implemented Interfaces:
java.awt.image.ImageObserver

public class PhotoModel
extends java.lang.Object
implements java.awt.image.ImageObserver


Field Summary
static org.apache.log4j.Logger LOG
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PhotoModel(DataMap photoInfo)
           
PhotoModel(java.io.File storageFile)
           
PhotoModel(java.io.File storageFile, boolean shouldImport)
           
 
Method Summary
 java.lang.String getDescription()
           
 int getId()
           
 java.lang.String getName()
           
 java.awt.Image getPreview(javax.swing.JComponent callback)
           
 int getPreviewHeight()
           
 int getPreviewWidth()
           
 java.io.File getStorageFile()
           
 java.util.Collection getTags()
           
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
           
 boolean isSelected()
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setSelected(boolean selected)
           
 void setTagsChanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

PhotoModel

public PhotoModel(DataMap photoInfo)

PhotoModel

public PhotoModel(java.io.File storageFile)

PhotoModel

public PhotoModel(java.io.File storageFile,
                  boolean shouldImport)
Method Detail

getStorageFile

public java.io.File getStorageFile()

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean selected)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getId

public int getId()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

setTagsChanged

public void setTagsChanged()

getTags

public java.util.Collection getTags()
                             throws StoreException
Throws:
StoreException

getPreview

public java.awt.Image getPreview(javax.swing.JComponent callback)

getPreviewHeight

public int getPreviewHeight()

getPreviewWidth

public int getPreviewWidth()

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface java.awt.image.ImageObserver