photo.java

来自「Java source code IP Camera project for s」· Java 代码 · 共 46 行

JAVA
46
字号
package sept.model;import java.awt.Image;//TODO: Look into java API for image related classes. IIOImage can create thumbnails..../** * Class Photo *  * Photo is a container class that holds information about one specific photo. *  * @author Goran Mateski * @since v1.0 */public class Photo {	private String fileName;	private Image image;	/*private String date;*/	/* needed for searching specific photo */	/*private String time;*/	/* needed for searching specific photo */		/**	 * Constructor Class to create a Photo object	 * @param fileName filename	 * @param image the actual image	 */	public Photo(String fileName, Image image){		this.fileName = fileName;		this.image = image;	}		/**	 * 	 * @return Returns the image.	 */	public Image getImage(){		return this.image;	}		/**	 * 	 * @return Returns the filename.	 */	public String getFileName(){		return this.fileName;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?