home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Image;
- import java.awt.image.ImageObserver;
-
- public class ArchText extends Applet implements Runnable {
- protected String text = "NetRexx";
- protected int tick;
- protected Thread timer;
- protected Image shadow;
- protected Graphics draw;
- // $FF: renamed from: $0 java.lang.String
- private static final String field_0 = "ArchText.nrx";
-
- public void init() {
- String var1 = ((Applet)this).getParameter("text");
- if (var1 != null) {
- this.text = var1;
- }
-
- this.shadow = ((Component)this).createImage(((Component)this).size().width, ((Component)this).size().height);
- this.draw = this.shadow.getGraphics();
- this.draw.setColor(Color.white);
- this.draw.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- this.draw.setFont(new Font("TimesRoman", 1, 30));
- }
-
- public void start() {
- if (this.timer == null) {
- this.timer = new Thread(this);
- }
-
- this.timer.setPriority(10);
- this.timer.start();
- }
-
- public void stop() {
- if (this.timer != null) {
- this.timer.stop();
- this.timer = null;
- }
- }
-
- public void run() {
- float var1 = 0.0F;
-
- try {
- while(this.timer != null) {
- ++this.tick;
- var1 = (float)((this.tick + 133) % 191) / 191.0F;
- this.draw.setColor(Color.getHSBColor(var1, 1.0F, 0.7F));
- this.draw.drawString(this.text, 0, 30);
- ((Component)this).repaint();
- Thread.sleep(119L);
- }
- } catch (InterruptedException var2) {
- }
-
- this.timer = null;
- }
-
- public void update(Graphics var1) {
- this.paint(var1);
- }
-
- public void paint(Graphics var1) {
- var1.drawImage(this.shadow, 0, 0, (ImageObserver)null);
- }
- }
-