Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/image/ColorModel.java
/*
* @(#)ColorModel.java 1.14 01/12/10
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package java.awt.image;
/**
* A class that encapsulates the methods for translating from pixel values
* to alpha, red, green, and blue color components for an image. This
* class is abstract.
*
* @see IndexColorModel
* @see DirectColorModel
*
* @version 1.14 12/10/01
* @author Jim Graham
*/
public abstract class ColorModel {
private int pData; // Placeholder for data for native functions
protected int pixel_bits;
private static ColorModel RGBdefault;
/**
* Return a ColorModel which describes the default format for
* integer RGB values used throughout the AWT image interfaces.
* The format for the RGB values is an integer with 8 bits
* each of alpha, red, green, and blue color components ordered
* correspondingly from the most significant byte to the least
* significant byte, as in: 0xAARRGGBB
*/
public static ColorModel getRGBdefault() {
if (RGBdefault == null) {
RGBdefault = new DirectColorModel(32,
0x00ff0000, // Red
0x0000ff00, // Green
0x000000ff, // Blue
0xff000000 // Alpha
);
}
return RGBdefault;
}
/**
* Constructs a ColorModel which describes a pixel of the specified
* number of bits.
*/
public ColorModel(int bits) {
pixel_bits = bits;
}
/**
* Returns the number of bits per pixel described by this ColorModel.
*/
public int getPixelSize() {
return pixel_bits;
}
/**
* The subclass must provide a function which provides the red
* color compoment for the specified pixel.
* @return The red color component ranging from 0 to 255
*/
public abstract int getRed(int pixel);
/**
* The subclass must provide a function which provides the green
* color compoment for the specified pixel.
* @return The green color component ranging from 0 to 255
*/
public abstract int getGreen(int pixel);
/**
* The subclass must provide a function which provides the blue
* color compoment for the specified pixel.
* @return The blue color component ranging from 0 to 255
*/
public abstract int getBlue(int pixel);
/**
* The subclass must provide a function which provides the alpha
* color compoment for the specified pixel.
* @return The alpha transparency value ranging from 0 to 255
*/
public abstract int getAlpha(int pixel);
/**
* Returns the color of the pixel in the default RGB color model.
* @see ColorModel#getRGBdefault
*/
public int getRGB(int pixel) {
return (getAlpha(pixel) << 24)
| (getRed(pixel) << 16)
| (getGreen(pixel) << 8)
| (getBlue(pixel) << 0);
}
/* Throw away the compiled data stored in pData */
private native void deletepData();
public void finalize() {
deletepData();
}
}
⏎ java/awt/image/ColorModel.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, ≈352🔥, 0💬
Popular Posts:
JDK 17 jdk.internal.le.jmod is the JMOD file for JDK 17 Internal Line Editing module. JDK 17 Interna...
What Is javax.websocket-api-1.1. jar?javax.websocket-api-1.1. jaris the JAR file for Java API for We...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...