Nęste |
|
Appletter serie, Planche nr. 8 |
![]() |
Tegnemetoder |
drawLine()
, which draws a line in the Graphics
object's
current color, which is initialized to the Component's foreground
color)
drawRect()
, fillRect()
, and
clearRect()
-- where fillRect()
fills a rectangle
with the Graphics object's current color,
and clearRect()
fills a rectangle
with the Component's background color)
draw3DRect()
and fill3DRect()
)
drawRoundRect()
and fillRoundRect()
)
drawOval()
and fillOval()
)
drawArc()
and fillArc()
)
drawPolygon()
and fillPolygon()
)
Alle - undtagen polygoner og linier defineres af en firkant, der omslutter den.
Nęste |
|
Appletter serie, Planche nr. 8 |