⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appendix-a.html

📁 java game programming e-book
💻 HTML
字号:
<HTML>
<HEAD>
<META name=vsisbn content="1571690433"><META name=vstitle content="Black Art of Java Game Programming"><META name=vsauthor content="Joel Fan"><META name=vsimprint content="Sams"><META name=vspublisher content="Macmillan Computer Publishing"><META name=vspubdate content="11/01/96"><META name=vscategory content="Web and Software Development: Programming, Scripting, and Markup Languages: Java"><TITLE>Black Art of Java Game Programming:Javan Reference Tables</TITLE>
<!-- HEADER --><STYLE type="text/css">  <!-- A:hover  { 	color : Red; } --></STYLE><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><script><!--function displayWindow(url, width, height) {         var Win = window.open(url,"displayWindow",'width=' + width +',height=' + height + ',resizable=1,scrollbars=yes');	if (Win) {		Win.focus();	}}//--></script><SCRIPT><!--function popUp(url) {        var Win = window.open(url,"displayWindow",'width=400,height=300,resizable=1,scrollbars=yes');	if (Win) {		Win.focus();	}}//--></SCRIPT><script language="JavaScript1.2"><!--function checkForQuery(fm) {  /* get the query value */  var i = escape(fm.query.value);  if (i == "") {      alert('Please enter a search word or phrase');      return false;  }                  /* query is blank, dont run the .jsp file */  else return true;  /* execute the .jsp file */}//--></script></HEAD><BODY> 
<TABLE border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=75 valign=top>
<img src="1571690433.gif" width=60 height=73 alt="Black Art of Java Game Programming" border="1">
</td>
<td align="left">
    <font face="arial, helvetica" size="-1" color="#336633"><b>Black Art of Java Game Programming</b></font>
    <br>
    <font face="arial, helvetica" size="-1"><i>by Joel Fan</i>
    <br>
    Sams,&nbsp;Macmillan Computer Publishing
    <br>
    <b>ISBN:</b>&nbsp;1571690433<b>&nbsp;&nbsp;&nbsp;Pub Date:</b>&nbsp;11/01/96</font>&nbsp;&nbsp;
</td>
</tr>
</table>
<P>

<!--ISBN=1571690433//-->
<!--TITLE=Black Art of Java Game Programming//-->
<!--AUTHOR=Joel Fan//-->
<!--AUTHOR=Eric Ries//-->
<!--AUTHOR=Calin Tenitchi//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Sams//-->
<!--APPENDIX=A//-->
<!--PAGES=827-832//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->

<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="ewtoc.html">Table of Contents</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Appendix A:<BR>Java Reference Tables
</FONT></H2>
<P><FONT SIZE="+1"><B>Applet Tags</B></FONT></P>
<P>The attributes given in Table A-1 can be used within the APPLET tag in an HTML file. These fields allow you to specify the alignment of the applet within the browser, the location of the applet class files, and applet parameters. There are three required attributes in the APPLET tag: CODE, HEIGHT, and WIDTH.
</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table A-1</B> Java applet tags
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="40%" ALIGN="LEFT">Attribute/Tag Name
<TH WIDTH="60%" ALIGN="LEFT">Meaning
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD VALIGN="TOP">ALIGN
<TD>Alignment (top, middle, bottom) of the applet panel in the Web page.
<TR>
<TD VALIGN="TOP">ALT
<TD>Alternate text that is displayed if the browser doesn&#146;t support Java.
<TR>
<TD VALIGN="TOP">CODE
<TD>Filename of the Java class to be executed. The filename is relative to the location of the HTML document, unless the CODEBASE is specified (<I>required</I>).
<TR>
<TD VALIGN="TOP">CODEBASE
<TD>URL of the directory that contains the applet class files.
<TR>
<TD>HEIGHT
<TD>Height of the applet panel in pixels (<I>required</I>).
<TR>
<TD VALIGN="TOP">HSPACE
<TD>Size of the left and right margins surrounding the applet panel, in pixels.
<TR>
<TD VALIGN="TOP">NAME
<TD>Name of this applet. This attribute is used by the method <I>java.applet.AppletContext.getApplet()</I>.
<TR>
<TD VALIGN="TOP">PARAM
<TD>This tag is used to provide additional parameters to the applet. The PARAM tag is covered in Chapter 7, Creating Customizable Games with the AWT.
<TR>
<TD VALIGN="TOP">VSPACE
<TD>Size of the top and bottom margins surrounding the applet panel, in pixels.
<TR>
<TD VALIGN="TOP">WIDTH
<TD>The width of the applet panel, in pixels (<I>required</I>).
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P><FONT SIZE="+1"><B>Comments</B></FONT></P>
<P>Java supports the following types of comments:
</P>
<!-- CODE SNIP //-->
<PRE>
/*  This is a comment */
//  This is a comment
/** This comment is used by the JDK tool javadoc to generate HTML
    HTML documentation. */
</PRE>
<!-- END CODE SNIP //-->
<P><FONT SIZE="+1"><B>Literals</B></FONT></P>
<P>Table A-2 lists literals that can be assigned to variables of the given types. <I>[floatnum]</I> represents a sequence of digits with an optional decimal point and an optional exponent, such as 17.13E2. <I>[intnum]</I> represents a sequence of digits with an optional octal prefix (0) or hexadecimal prefix (0x or 0X).</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table A-2</B> Literals
<TR>
<TH COLSPAN="3"><HR>
<TR>
<TH WIDTH="40%" ALIGN="LEFT">Type
<TH WIDTH="30%" ALIGN="LEFT">Literal
<TH WIDTH="30%" ALIGN="LEFT">Meaning
<TR>
<TD COLSPAN="3"><HR>
<TR>
<TD>boolean
<TD>true
<TD>
<TR>
<TD>false
<TD>True
<TD>
<TR>
<TD>False
<TD>
<TD>
<TR>
<TD>char
<TD>\b
<TD>
<TR>
<TD>\f
<TD>
<TD>
<TR>
<TD>\n
<TD>
<TD>
<TR>
<TD>\r
<TD>
<TD>
<TR>
<TD>\t
<TD>
<TD>
<TR>
<TD>\&#146;
<TD>
<TD>
<TR>
<TD>\&#148;
<TD>
<TD>
<TR>
<TD>\\
<TD>
<TD>
<TR>
<TD>\ddd
<TD>Backspace
<TD>
<TR>
<TD>Form feed
<TD>
<TD>
<TR>
<TD>Newline
<TD>
<TD>
<TR>
<TD>Carriage return
<TD>
<TD>
<TR>
<TD>Tab
<TD>
<TD>
<TR>
<TD>Single quote
<TD>
<TD>
<TR>
<TD>Double quote
<TD>
<TD>
<TR>
<TD>Backslash
<TD>
<TD>
<TR>
<TD>The char denoted by octal value add
<TD>
<TD>
<TR>
<TD>double
<TD><I>[floatnum]</I>d, <I>[floatnum]</I>D
<TD>Double constant
<TR>
<TD>float
<TD><I>[floatnum]</I>f, <I>[floatnum]</I>F
<TD>Float constant
<TR>
<TD>int, byte, long
<TD>0ddd
<TD>
<TR>
<TD>0xdd, 0Xdd
<TD>
<TD>
<TR>
<TD><I>[intnum]</I>l, <I>[intnum]</I>L
<TD>Octal constant
<TD>
<TR>
<TD>Hexadecimal constant
<TD>
<TD>
<TR>
<TD>Long constant
<TD>
<TD>
<TR>
<TD VALIGN="TOP">Object
<TD VALIGN="TOP">null
<TD>Reference to unallocated or invalid object
<TR>
<TD VALIGN="TOP">String
<TD VALIGN="TOP">&#147;xxx&#148;
<TD>String object with the contents between double quotes
<TR>
<TD COLSPAN="3"><HR>
</TABLE>
<P><FONT SIZE="+1"><B>Operators</B></FONT></P>
<P>Table A-3 lists the Java operators in decreasing order of precedence. All operators within the same row of the table have equivalent precedence. <I>E</I> denotes an expression.</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table A-3</B> Java Operators
<TR>
<TH COLSPAN="3"><HR>
<TR>
<TH WIDTH="40%" ALIGN="LEFT">Operators
<TH WIDTH="30%" ALIGN="LEFT">Associativity
<TH WIDTH="30%" ALIGN="LEFT">Meaning
<TR>
<TD COLSPAN="3"><HR>
<TR>
<TD>[ ] .
<TD>
<TD>
<TR>
<TD><I>E&#43;&#43;  E--  &#43;&#43;E  --E</I>
<TD>Left
<TD>
<TR>
<TD VALIGN="TOP">Right
<TD>Array/object member access
<TD>
<TR>
<TD>Pre/post increment, pre/post decrement (unary)
<TD>
<TD>
<TR>
<TD><I>&#43;E  -E</I>
<TD>
<TD>
<TR>
<TD>&#8764;  !
<TD>Right
<TD>
<TR>
<TD>
<TD>Unary plus or unary minus
<TD>
<TR>
<TD>Bitwise or logical complement (unary)
<TD>
<TD>
<TR>
<TD>new (<I>type</I>)
<TD>Right
<TD>Creation or cast
<TR>
<TD VALIGN="TOP">*  /  %
<TD VALIGN="TOP">Left
<TD>Multiplication, division, modulus
<TR>
<TD VALIGN="TOP">&#43;  -
<TD VALIGN="TOP">Left
<TD>Addition or subtraction
<TR>
<TD VALIGN="TOP">&lt;&lt;  &gt;&gt;  &gt;&gt;&gt;
<TD VALIGN="TOP">Left
<TD>Left shift, arithmetic right shift, logical right shift
<TR>
<TD>&lt;  &lt;=  &gt;  &gt;=
<TD>
<TD>
<TR>
<TD>instanceof
<TD>Left
<TD>
<TR>
<TD>
<TD>Arithmetic comparison
<TD>
<TR>
<TD>Type comparison
<TD>
<TD>
<TR>
<TD>==  !=
<TD>Left
<TD>Equal or not equal
<TR>
<TD>&#38;
<TD>Left
<TD>Bitwise AND
<TR>
<TD VALIGN="TOP">^
<TD VALIGN="TOP">Left
<TD>Bitwise XOR (exclusive or)
<TR>
<TD VALIGN="TOP">|
<TD VALIGN="TOP">Left
<TD>Bitwise OR (inclusive or)
<TR>
<TD>&#38;&#38;
<TD>Left
<TD>Logical AND
<TR>
<TD>||
<TD>Left
<TD>Logical OR
<TR>
<TD>=
<TD>
<TD>
<TR>
<TD>&#43;=  -=  *=  /=
<TD>
<TD>
<TR>
<TD>%=  &gt;&gt;=  &lt;&lt;=  &gt;&gt;&gt;=
<TD>
<TD>
<TR>
<TD>&#38;=  ^=  |=
<TD>Right
<TD>
<TR>
<TD>Operation followed by assignment
<TR>
<TD COLSPAN="3"><HR>
</TABLE>
<P><FONT SIZE="+1"><B>Reserved Words</B></FONT></P>
<P>Table A-4 gives the reserved words in Java, which should not be used as names of identifiers.
</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table A-4</B> Java reserved words
<TR>
<TR>
<TD COLSPAN="5"><HR>
<TR>
<TD WIDTH="20%">abstract
<TD WIDTH="20%">boolean
<TD WIDTH="20%">break
<TD WIDTH="20%">byte
<TD WIDTH="20%">byvalue
<TR>
<TD>case
<TD>cast
<TD>catch
<TD>char
<TD>class
<TR>
<TD>const
<TD>continue
<TD>default
<TD>do
<TD>double
<TR>
<TD>else
<TD>extends
<TD>false
<TD>final
<TD>finally
<TR>
<TD>float
<TD>for
<TD>future
<TD>generic
<TD>goto
<TR>
<TD>if
<TD>implements
<TD>import
<TD>inner
<TD>instanceof
<TR>
<TD>int
<TD>interface
<TD>long
<TD>native
<TD>new
<TR>
<TD>null
<TD>operator
<TD>outer
<TD>package
<TD>private
<TR>
<TD>protected
<TD>public
<TD>rest
<TD>return
<TD>short
<TR>
<TD>static
<TD>super
<TD>switch
<TD>synchronized
<TD>this
<TR>
<TD>throw
<TD>throws
<TD>transient
<TD>true
<TD>try
<TR>
<TD>varvoid
<TD>volatile
<TD>while
<TR>
<TD COLSPAN="5"><HR>
</TABLE>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="ewtoc.html">Table of Contents</A></TD>
</TR>
</TABLE>
</CENTER>


</BODY>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -