Teach Yourself Java in 21 Days
Download 5.76 Mb. Pdf ko'rish
|
Learn Java
Day
9 Graphics, Fonts, and Color 149 The Graphics Class ................................................................................. 150 The Graphics Coordinate System ...................................................... 151 Drawing and Filling ............................................................................... 151 Lines .................................................................................................. 152 Rectangles .......................................................................................... 152 Polygons ............................................................................................ 155 Ovals ................................................................................................. 156 Arc ..................................................................................................... 157 A Simple Graphics Example............................................................... 161 Copying and Clearing ........................................................................ 163 Text and Fonts ....................................................................................... 163 Creating Font Objects ....................................................................... 163 Drawing Characters and Strings ......................................................... 164 Finding Out Information About a Font ............................................. 166 Color ...................................................................................................... 168 Using Color Objects .......................................................................... 168 Testing and Setting the Current Colors ............................................. 169 A Single Color Example ..................................................................... 170 Summary ................................................................................................ 171 Q&A ...................................................................................................... 171 030-4 FM 1/29/96, 8:11 PM 12 |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling