📄 photo.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -