View Javadoc
1   /******************************************************************************
2    * Thumbnail.java - Wrap an Image
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2005 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.domain;
9   
10  //import java.awt.Image;
11  import java.awt.image.BufferedImage;
12  
13  
14  public class Thumbnail  {
15  
16  	private	String			name;
17  	private	BufferedImage	image;
18  	private	boolean			xThumb = false;
19  	
20  	public Thumbnail() {
21  	}
22  	public	void	setName(String s) { name = s; }
23  	public	String	getName() { return(name); }
24  	public	void	setImage(BufferedImage im) { image = im; }
25  	public	BufferedImage	getImage() { return(image); }
26  	/**
27  	 * @return Returns if this pic is an xThumb. (i.e. a busted read)
28  	 */
29  	public boolean isXThumb() {
30  		return xThumb;
31  	}
32  	/**
33  	 * @param thumb flag to say that this is an xThumb from a busted read.
34  	 */
35  	public void setXThumb(boolean thumb) {
36  		xThumb = thumb;
37  	}
38  	
39  }