计算机外文翻译94
《计算机外文翻译94》由会员分享,可在线阅读,更多相关《计算机外文翻译94(25页珍藏版)》请在毕设资料网上搜索。
1、 - 1 - 外文原文 Graphics, Fonts, and Color The Graphics Class With Javas graphics capabilities, you can draw lines, shapes, characters, and images to the screen inside your applet. Most of the graphics operations in Java are methods defined in the Graphics class. You dont have to create an instance of G
2、raphics in order to draw something in your applet;in your applets paint() method (which you learned about yesterday), you are given a Graphics object. By drawing on that object, you draw onto your applet and the results appear on screen.The Graphics class is part of the java.awt package, so if your
3、applet does any painting (as it usually will), make sure you import that class at the beginning of your Java file: import java.awt.Graphics; public class MyClass extended java.applet.Applet . The Graphics Coordinate System To draw an object on the screen, you call one of the drawing methods availabl
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 外文 翻译 94
