historyentry.java
来自「用java语言编写的日历源码」· Java 代码 · 共 41 行
JAVA
41 行
package at.ac.uni_linz.tk.vchat;
import java.util.*;
import java.io.*;
import java.awt.*;
/**
* A HistoryEntry represents the message sent by a User at a certain time.
*
* @author Arno Huetter
* (C)opyright by the Institute for Computer Science, Telecooperation Department, University of Linz
*/
public class HistoryEntry extends MessageEntry {
public int userId, mood, roomId, heading;
public Point position;
/**
* Constructs the HistoryEntry.
*
* @param dateParam the Date when the event happened
* @param roomIdParam the id of the Room where the event happened
* @param userIdParam the id of the User who caused the event
* @param positionParam the User's position
* @param headingParam the User's heading
* @param colorParam the User's color
* @param textParam the message text
* @param moodParam the User's mood
*/
public HistoryEntry(Date dateParam, int roomIdParam, int userIdParam, Point positionParam, int headingParam, Color colorParam, String textParam, int moodParam) {
super(dateParam, textParam, colorParam);
roomId = roomIdParam;
position = positionParam;
mood = moodParam;
userId = userIdParam;
heading = headingParam;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?