Few weeks back i started reading Java™ How to Program, Sixth Edition By H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.
Nice book written By H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.
I wanted to share few quotations found the book from the 21th chapter.
1) Applet method getImage loads an Image.
2) Applet method geTDocumentBase returns the location of the applet's HTML file on the Internet as an object of class URL.
3) Java supports several image formats, including Graphics Interchange Format (GIF), Joint Photographic Experts Group (JPEG) and Portable Network Graphics (PNG). The file names for these types end with .gif, .jpg (or .jpeg) and .png, respectively.
4) Class ImageIcon provides constructors that allow an ImageIcon object to be initialized with an image from the local computer or stored on a Web server on the Internet.
5) Graphics method drawImage accepts four argumentsa reference to the Image object in which the image is stored, the x- and y-coordinates where the image should be displayed and a reference to an ImageObserver object.
6) Another version of Graphics method drawImage outputs a scaled image. The fourth and fifth arguments specify the width and height of the image for display purposes.
7) Interface ImageObserver is implemented by class Component. ImageObservers receive notifications as an Image is loaded and update the image on the screen if it was not complete when it was displayed.
8) ImageIcon method paintIcon displays the ImageIcon's image. The method requires four argumentsa reference to the Component on which the image will be displayed, a reference to the Graphics object used to render the image, the x-coordinate of the upper-left corner of the image and the y-coordinate of the upper-left corner of the image.
9) A URL object represents a Uniform Resource Locator, which is as a pointer to a resource on the World Wide Web, on your computer or on any networked machine.
10) Timer objects generate ActionEvents at fixed intervals in milliseconds. The Timer constructor receives two argumentsthe delay in milliseconds and the ActionListener. Timer method start indicates that the Timer should start generating events. Timer method stop indicates that the Timer should stop generating events. Timer method restart indicates that the Timer should start generating events again.
11) An image map is an image that has hot areas that the user can click to accomplish a task, such as loading a different Web page into a browser.
12) Applet method play has two forms:
public void play( URL location, String soundFileName );
public void play( URL soundURL );
13) One version loads the audio clip stored in file soundFileName from location and plays the sound. The other version takes a URL that contains the location and the file name of the audio clip.
14) Applet method getdocumentBase indicates the location of the HTML file that loaded the applet. Method getCodeBase indicates where the .class file for an applet is located.
15) The sound engine that plays audio clips supports several audio file formats, including Sun Audio file format (.au extension), Windows Wave file format (.wav extension), Macintosh AIFF file format (.aif or .aiff extension) and Musical Instrument Digital Interface (MIDI) file format (.mid or .rmi extensions). The Java Media Framework (JMF) supports additional formats.
16) Applet method getAudioClip has two forms that take the same arguments as the play method. Method getAudioClip returns a reference to an AudioClip. AudioClips have three methodsplay, loop and stop. Method play plays the audio clip once. Method loop continuously loops the audio clip. Method stop terminates an audio clip that is currently playing.
17) Sun Microsystems, Intel and Silicon Graphics worked together to produce the Java Media Framework (JMF)
18) Package javax.media and its subpackages contain the classes that compose the Java Media Framework.
19) Class Manager declares utility methods for accessing system resources to play and to manipulate media.
20) Method toURL of class File returns a URL that points to the File on the system.
About the Authors
Dr. Harvey M. Deitel, Chairman and Chief Strategy Officer of Deitel & Associates, Inc., has 43 years experience in the computing field, including extensive industry and academic experience. Dr. Deitel earned B.S. and M.S. degrees from the Massachusetts Institute of Technology and a Ph.D. from Boston University. He worked on the pioneering virtual-memory operating-systems projects at IBM and MIT that developed techniques now widely implemented in systems such as UNIX, Linux and Windows XP. He has 20 years of college teaching experience, including earning tenure and serving as the Chairman of the Computer Science Department at Boston College before founding Deitel & Associates, Inc., with his son, Paul J. Deitel. He and Paul are the co-authors of several dozen books and multimedia packages and they are writing many more. With translations published in Japanese, German, Russian, Spanish, Traditional Chinese, Simplified Chinese, Korean, French, Polish, Italian, Portuguese, Greek, Urdu and Turkish, the Deitels' texts have earned international recognition. Dr. Deitel has delivered hundreds of professional seminars to major corporations, academic institutions, government organizations and the military.
Paul J. Deitel, CEO and Chief Technical Officer of Deitel & Associates, Inc., is a graduate of the MIT's Sloan School of Management, where he studied Information Technology. Through Deitel & Associates, Inc., he has delivered Java, C, C++, Internet and World Wide Web courses to industry clients, including IBM, Sun Microsystems, Dell, Lucent Technologies, Fidelity, NASA at the Kennedy Space Center, the National Severe Storm Laboratory, Compaq, White Sands Missile Range, Rogue Wave Software, Boeing, Stratus, Cambridge Technology Partners, Open Environment Corporation, One Wave, Hyperion Software, Adra Systems, Entergy, CableData Systems and many other organizations. Paul is one of the most experienced Java corporate trainers having taught about 100 professional Java training courses. He has also lectured on C++ and Java for the Boston Chapter of the Association for Computing Machinery. He and his father, Dr. Harvey M. Deitel, are the world's best-selling Computer Science textbook authors.
Monday, 2 March 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment