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

📄 scriptapp.html

📁 JILRuntime A general purpose, register based virtual machine (VM) that supports object-oriented feat
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">}</SPAN></FONT></PRE><H2 CLASS="western">
<FONT FACE="arial">class RectLayer</FONT></H2>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN>RectLayer;</PRE><P CLASS="western">
<FONT FACE="arial">This layer draws a rectangular area, filled by a
given color.</FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">class </FONT></SPAN>RectLayer : <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">interface </FONT></SPAN>Layer
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">{</SPAN></FONT>
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>RectLayer<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>IsVisible<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>X<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Width<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Height<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Show<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Hide<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>MoveTo<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>x, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>MoveBy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dx, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ResizeTo<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>x, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ResizeBy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dx, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>GroupID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>GroupID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>id<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>ItemID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ItemID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>id<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>GetColor<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000">&amp; </FONT></SPAN>r, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"><SPAN STYLE="background: #ffffff">&amp;</SPAN> </FONT></SPAN>g, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"><SPAN STYLE="background: #ffffff">&amp;</SPAN> </FONT></SPAN>b<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>SetColor<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>r, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>g, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>b<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">}</SPAN></FONT></PRE><H2 CLASS="western">
<FONT FACE="arial">class TextLayer</FONT></H2>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN>TextLayer;</PRE><P CLASS="western">
<FONT FACE="arial">This layer draws a text string with a given color
and font / size. Calling the <I>AutoSize()</I> method will
automatically<BR>set the width and height of the layer to the size
that is required to display the specified text.</FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">class </FONT></SPAN>TextLayer : <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">interface </FONT></SPAN>Layer
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">{</SPAN></FONT>
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>TextLayer<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>IsVisible<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>X<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Width<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Height<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Show<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Hide<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>MoveTo<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>x, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>MoveBy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dx, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dx<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ResizeTo<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>x, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ResizeBy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dx, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>dy<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>GroupID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>GroupID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>id<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>ItemID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>ItemID<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>id<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>AutoSize<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>GetColor<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"><SPAN STYLE="background: #ffffff">&amp;</SPAN> </FONT></SPAN>r, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"><SPAN STYLE="background: #ffffff">&amp;</SPAN> </FONT></SPAN>g, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"><SPAN STYLE="background: #ffffff">&amp;</SPAN> </FONT></SPAN>b<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>SetColor<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>r, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>g, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>b<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method string</FONT><FONT COLOR="#000000">&amp;  </FONT></SPAN>Text<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Text<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">&amp; </FONT></SPAN>text<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Font<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>Font<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">long</FONT><FONT COLOR="#000000"> </FONT></SPAN>fontId<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">}</SPAN></FONT></PRE><H2 CLASS="western">
<FONT FACE="arial">class BitmapLayer</FONT></H2>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN>BitmapLayer;</PRE><P CLASS="western">
<FONT COLOR="#000000"><FONT FACE="arial"><SPAN STYLE="background: #ffffff">This
layer draws an image. The image is specified by calling the <I>Bitmap()</I>
method and specifying a <I>Bitmap</I> object.<BR>The image can
contain an alpha channel. Calling the <I>AutoSize()</I> method will
set the layer to the width and height of<BR>the specified image.</SPAN></FONT></FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">class </FONT></SPAN>BitmapLayer : <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">interface </FONT></SPAN>Layer
<FONT COLOR="#ff0000"><SPAN STYLE="background: #ffffff">{</SPAN></FONT>
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method          </FONT></SPAN>BitmapLayer<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>IsVisible<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>X<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Y<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Width<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Height<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
    <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">method long </FONT><FONT COLOR="#000000">    </FONT></SPAN>Index<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;

⌨️ 快捷键说明

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