Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/awt/Point.java
/* * @(#)Point.java 1.15 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.awt; /** * The <code>Point</code> class represents a location in a * two-dimensional (<i>x</i>, <i>y</i>) coordinate space. * * @version 1.15, 12/10/01 * @author Sami Shaio * @since JDK1.0 */ public class Point implements java.io.Serializable { /** * The <i>x</i> coordinate. * @since JDK1.0 */ public int x; /** * The <i>y</i> coordinate. * @since JDK1.0 */ public int y; /* * JDK 1.1 serialVersionUID */ private static final long serialVersionUID = -5276940640259749850L; /** * Constructs and initializes a point at the origin * (0, 0) of the coordinate space. * @param x the <i>x</i> coordinate. * @param y the <i>y</i> coordinate. * @since JDK1.1 */ public Point() { this(0, 0); } /** * Constructs and initializes a point with the same location as * the specified <code>Point</code> object. * @param p a point. * @since JDK1.1 */ public Point(Point p) { this(p.x, p.y); } /** * Constructs and initializes a point at the specified * (<i>x</i>, <i>y</i>) location in the coordinate space. * @param x the <i>x</i> coordinate. * @param y the <i>y</i> coordinate. * @since JDK1.0 */ public Point(int x, int y) { this.x = x; this.y = y; } /** * Returns the location of this point. * This method is included for completeness, to parallel the * <code>getLocation</code> method of <code>Component</code>. * @return a copy of this point, at the same location. * @see java.awt.Component#getLocation * @see java.awt.Point#setLocation(java.awt.Point) * @see java.awt.Point#setLocation(int, int) * @since JDK1.1 */ public Point getLocation() { return new Point(x, y); } /** * Sets the location of the point to the specificed location. * This method is included for completeness, to parallel the * <code>setLocation</code> method of <code>Component</code>. * @param p a point, the new location for this point. * @see java.awt.Component#setLocation(java.awt.Point) * @see java.awt.Point#getLocation * @since JDK1.1 */ public void setLocation(Point p) { setLocation(p.x, p.y); } /** * Changes the point to have the specificed location. * <p> * This method is included for completeness, to parallel the * <code>setLocation</code> method of <code>Component</code>. * Its behavior is identical with <code>move(int, int)</code>. * @param x the <i>x</i> coordinate of the new location. * @param y the <i>y</i> coordinate of the new location. * @see java.awt.Component#setLocation(int, int) * @see java.awt.Point#getLocation * @see java.awt.Point#move(int, int) * @since JDK1.1 */ public void setLocation(int x, int y) { move(x, y); } /** * Moves this point to the specificed location in the * (<i>x</i>, <i>y</i>) coordinate plane. This method * is identical with <code>setLocation(int, int)</code>. * @param x the <i>x</i> coordinate of the new location. * @param y the <i>y</i> coordinate of the new location. * @see java.awt.Component#setLocation(int, int) * @since JDK1.0 */ public void move(int x, int y) { this.x = x; this.y = y; } /** * Translates this point, at location (<i>x</i>, <i>y</i>), * by <code>dx</code> along the <i>x</i> axis and <code>dy</code> * along the <i>y</i> axis so that it now represents the point * (<code>x</code> <code>+</code> <code>dx</code>, * <code>y</code> <code>+</code> <code>dy</code>). * @param dx the distance to move this point * along the <i>x</i> axis. * @param dy the distance to move this point * along the <i>y</i> axis. * @since JDK1.0 */ public void translate(int x, int y) { this.x += x; this.y += y; } /** * Returns the hashcode for this point. * @return a hash code for this point. * @since JDK1.0 */ public int hashCode() { return x ^ (y*31); } /** * Determines whether two points are equal. Two instances of * <code>Point</code> are equal if the values of their * <code>x</code> and <code>y</code> member fields, representing * their position in the coordinate space, are the same. * @param obj an object to be compared with this point. * @return <code>true</code> if the object to be compared is * an instance of <code>Point</code> and has * the same values; <code>false</code> otherwise. * @since JDK1.0 */ public boolean equals(Object obj) { if (obj instanceof Point) { Point pt = (Point)obj; return (x == pt.x) && (y == pt.y); } return false; } /** * Returns a representation of this point and its location * in the (<i>x</i>, <i>y</i>) coordinate space as a string. * @return a string representation of this point, * including the values of its member fields. * @since JDK1.0 */ public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + "]"; } }
⏎ java/awt/Point.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 175313👍, 0💬
Popular Posts:
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...