Første |
|
Appletter serie, Planche nr. 11 |
![]() |
Udskrift af : Appletter |
Appearance: | <APPLET CODE=string HEIGHT=n
WIDTH=n > </APPLET> |
---|---|
Attributes: | CODEBASE=URL ,
CODE=string , NAME=string ,
ALT=string , ALIGN=left|right|top|middle|bottom,
HEIGHT=n , WIDTH=n ,
HSPACE=n , VSPACE=n |
HTML V.4.0 supplerer APPLET-tag med OBJECT-tag.
Man kan skrive hvad som helst imellem start og slut tag.
Appearance: | <PARAM NAME=x VALUE=y> |
---|---|
Attributes: | NAME=string
VALUE=string |
Contents: | None (
Empty). |
May occur in: | APPLET. |
The PARAM element is used to provide "command-line" arguments to a Java applet, which is embedded in a document with the APPLET element. It has two attributes: NAME specifies the name of the argument, and VALUE specifies the value for this argument.
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.
Klassevariable findes ikke i de objekter som den pågældende klasse realiserer.
Størrelsen af en font beskrives med klasse java.awt.FontMetrics
Første |
|
Appletter serie, Planche nr. 11 |