The Java Class Libraries: An Annotated Reference, Volume 1This example-driven, annotated reference guide to the Java class libraries from two leading Java developers is an essential resource for both beginner and experienced Java programmers. You will find complete and detailed coverage of all the class libraries, including the Core Packages (java.io, java net, java.util, and java.lang) as well as the Window Toolkit and Applet packages (java.awt, java.awt.image, java.awt.peer, and java.applet), including more than 600 examples and more than 20,000 lines of code. The book has been specifically designed to make it possible to find information on any class or member quickly and easily. Each class description includes a class hierarchy diagram showing its connection to related classes, a detailed overview describing its purpose and key concepts, a convenient member summary which briefly describes each member and arranges the members into related groups, an example demonstrating the class in a "real-world" context, and comprehensive descriptions and examples for each of its members. |
From inside the book
Results 1-3 of 95
Page 227
An Annotated Reference Patrick Chan, Rosanna Lee. java.lang.Object Color java.awt Color B C DE D F Syntax public final class Color Description A Color instance specifies a color that is used in graphics operations . Colors are also used ...
An Annotated Reference Patrick Chan, Rosanna Lee. java.lang.Object Color java.awt Color B C DE D F Syntax public final class Color Description A Color instance specifies a color that is used in graphics operations . Colors are also used ...
Page 231
... Color c = new Color ( Color.HSBtoRGB ( hsb [ 0 ] , hsb [ 1 ] , hsb [ 2 ] ) ) ; C sbRed.setValues ( 255- ( r = c.getRed ( ) ) , 1 , 0 , 255 ) ; sbGreen.setValues ( 255- ( g = c ... Colors FIGURE 52 Example Color ( ). Z java.awt A Color 231.
... Color c = new Color ( Color.HSBtoRGB ( hsb [ 0 ] , hsb [ 1 ] , hsb [ 2 ] ) ) ; C sbRed.setValues ( 255- ( r = c.getRed ( ) ) , 1 , 0 , 255 ) ; sbGreen.setValues ( 255- ( g = c ... Colors FIGURE 52 Example Color ( ). Z java.awt A Color 231.
Page 327
... Color c = new Color ( random ( 256 ) , random ( 256 ) , random ( 256 ) ) ; Box ( ) { reshape ( random ( 150 ) , random ( 150 ) , 25 , 25 ) ; } int random ( int r ) { return ( int ) ( Math.floor ( Math.random ( ) * r ) ) ; } public void ...
... Color c = new Color ( random ( 256 ) , random ( 256 ) , random ( 256 ) ) ; Box ( ) { reshape ( random ( 150 ) , random ( 150 ) , 25 , 25 ) ; } int random ( int r ) { return ( int ) ( Math.floor ( Math.random ( ) * r ) ) ; } public void ...
Other editions - View all
Common terms and phrases
applet args bit array BitSet buffer button byte array checkbox class example class Main extends ClassLoader color model component component's container container's default DESCRIPTION This method dialog dimensions double end-of-file F G H false otherwise file descriptor font graphics context Graphics g gridbag GridBagConstraints GridBagLayout hash code hash table image consumer image producer implements import java.awt input stream insets instance Integer interface Java java.lang label layout manager loaded Main extends Frame menu bar menu item method returns non-null null number of bytes object output stream OVERRIDES peer pixel value public class public int public static final public static void public synchronized void public void main(String PURPOSE SYNTAX DESCRIPTION radix rectangle repaint resizable return false return true Scrollbar specified static final int static public void string representation SYNTAX DESCRIPTION PARAMETERS SYNTAX public throws IOException toString Unicode W X Y width y-coordinate