Polylines and Polygons
A common source of confusion is the difference
between a ‘polygon' and a 'polyline'. The difference is that a polygon is always
closed (starts and ends at the same points), and can therefore be drawn filled (solid). A
polyline cannot be filled. Rectangles, ‘round' rectangles and ovals can be drawn
filled or unfilled. For example Graphics.drawRect() draws the outline of a rectangle, while Graphics.fillRect()draws a solid rectangle.

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