⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 point.java

📁 kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的java包。
💻 JAVA
字号:
package java.awt;/** * class Point - represent (x,y) locations * * Copyright (c) 1998 *      Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. * * @author P.C.Mehlitz */public class Point implements java.io.Serializable{	private static final long serialVersionUID = -5276940640259749850L;	/**	 * @serial 	 *  The x coordinate. If no x coordinate is set it will default to '0'.	 */	public int x;	/**	 * @serial 	 *  The y coordinate. If no y coordinate is set it will default to '0'.	 */	public int y;public Point () {}public Point ( Point pt ) {	x = pt.x;	y = pt.y;}public Point ( int x, int y ) {	this.x = x;	this.y = y;}public boolean equals ( Object obj ) {	if ( obj instanceof Point ) {		Point pt = (Point) obj;		return (pt.x == x) && (pt.y == y);	}	else		return false;}public Point getLocation () {	return new Point( x, y);}public int hashCode () {	return x ^ (y*31);}/** * @deprecated (I presume), use setLocation() */public void move ( int xNew, int yNew ) {	x = xNew;	y = yNew;}public void setLocation ( Point pt ) {	x = pt.x;	y = pt.y;}public void setLocation ( int xNew, int yNew ) {	x = xNew;	y = yNew;}public String toString() {	return getClass().getName() + "[x=" + x + ",y=" + y + ']';}public void translate ( int xDelta, int yDelta ) {	x += xDelta;	y += yDelta;}}

⌨️ 快捷键说明

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