您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)

 

Content Index

Content Page # 9

Graphics primitives

'Primitives' are the basic shapes that can be drawn. In Java, facilities to draw primitive shapes are provided in the Graphics class. The figure below shows the primitives that are available, and the name of the method required to draw them.

Note that ‘text' might be considered a primitive as well.

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg