home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Image;
- import java.util.Date;
- import java.util.NoSuchElementException;
- import java.util.StringTokenizer;
-
- public class broadway extends Applet implements Runnable {
- private Thread ledThread;
- private Color ledRimColor;
- private Color backGroundColor;
- private Color borderColor;
- private Color appletColor;
- private int ledWidth = 10;
- private int ledHeight = 10;
- private int spaceWidth = 1;
- private int ledDim;
- private int startPosition;
- int startPositionX;
- int startPositionY;
- private int letterSpace = 5;
- private int blinkcount;
- private boolean blinkOff = true;
- private boolean blink;
- private int displayWidth;
- private int displayHeight;
- private int ledPosition;
- private boolean testPosInit = true;
- private int borderTotalWidth;
- private int borderOuter = 2;
- private int borderSize = 2;
- private int borderInner = 2;
- private boolean borderRaised = true;
- private Color ledOffColor;
- private int maxLedHeightArray;
- private int maxLedWidthArray;
- private boolean brokenLed;
- private boolean oval;
- private String fontFile;
- private String scriptFile;
- private ldscript theScript;
- private cmddata command;
- private letters letterFont;
- private textmess theMessage;
- private int sleepTime;
- private boolean nextFuncReady;
- private boolean readyToPaint;
- private boolean firstTime;
- private boolean userPause;
- private Image offImage;
- private Graphics offGraphics;
- private Date myDate;
- private int date;
- private int month;
- private int year;
- private boolean initialised;
- private boolean unreg;
- private boolean regError;
- private boolean paramError;
- private boolean fileError;
- private boolean serialIdError;
- static String paramErrorString = "HTML parameter error: ";
- private String growingString;
- private boolean dbg2;
- private boolean dbg3;
-
- public void stop() {
- if (this.ledThread != null && this.ledThread.isAlive()) {
- this.ledThread.stop();
- }
-
- this.ledThread = null;
- }
-
- private void ScrollDown(Graphics var1, int var2) {
- var1.copyArea(this.startPositionX, this.startPositionY, this.displayWidth, this.ledDim * (funcnum.MAXBITS - 1), 0, this.ledDim);
- int var3 = this.startPositionX;
- int var4 = this.startPositionY;
-
- for(int var5 = 0; var5 < this.theMessage.getStringLength() && var5 < this.maxLedWidthArray; ++var5) {
- this.ledLight(var1, var3, var4, this.theMessage.getBool(var2, var5), this.theMessage.letterColor(var5));
- var3 += this.ledDim;
- }
-
- int var7 = 0;
- if ((var7 = this.maxLedWidthArray - this.theMessage.getStringLength()) > 0) {
- for(int var6 = 0; var6 < var7; ++var6) {
- this.ledLight(var1, var3, var4, false, this.ledOffColor);
- var3 += this.ledDim;
- }
- }
-
- }
-
- private String intoLetters(String var1) {
- char[] var2 = new char[var1.length()];
-
- for(int var3 = 0; var3 < var1.length(); ++var3) {
- var2[var3] = (char)(Character.digit(var1.charAt(var3), 10) + 65);
- }
-
- return String.valueOf(var2);
- }
-
- private void drawLed(Graphics var1, int var2, int var3, Color var4) {
- var1.setColor(var4);
- if (this.ledWidth > 2) {
- for(int var5 = 0; var5 < this.ledWidth - 2; ++var5) {
- var1.drawLine(var2 + 1 + var5, var3, var2 + 1 + var5, var3 + this.ledWidth - 1);
- var1.drawLine(var2, var3 + 1 + var5, var2 + this.ledWidth - 1, var3 + 1 + var5);
- }
- } else if (this.ledWidth == 2) {
- var1.drawLine(var2, var3, var2, var3 + 1);
- var1.drawLine(var2 + 1, var3, var2 + 1, var3 + 1);
- } else {
- var1.drawLine(var2, var3, var2, var3);
- }
-
- }
-
- private void drawBorder(Graphics var1, Color var2, int var3, int var4, int var5, boolean var6) {
- var1.setColor(var2);
- int var7 = 0;
- int var8 = ((Component)this).size().width - 1;
- int var9 = ((Component)this).size().height - 1;
-
- for(int var10 = 0; var10 < var3; ++var10) {
- var1.draw3DRect(var7, var7, var8, var9, var6);
- ++var7;
- var8 -= 2;
- var9 -= 2;
- }
-
- for(int var11 = 0; var11 < var4; ++var11) {
- var1.drawRect(var7, var7, var8, var9);
- ++var7;
- var8 -= 2;
- var9 -= 2;
- }
-
- for(int var12 = 0; var12 < var5; ++var12) {
- var1.draw3DRect(var7, var7, var8, var9, !var6);
- ++var7;
- var8 -= 2;
- var9 -= 2;
- }
-
- }
-
- private synchronized void testPosition(int var1) {
- ++this.ledPosition;
- if (this.ledPosition >= var1) {
- this.ledPosition = 0;
- this.nextFuncReady = true;
- this.testPosInit = true;
- }
-
- }
-
- private synchronized void testPosition() {
- this.ledPosition += -1;
- if (this.ledPosition < 0) {
- this.ledPosition = 0;
- this.testPosInit = true;
- this.nextFuncReady = true;
- }
-
- }
-
- private void OverUpDown(Graphics var1, int var2) {
- if (var2 < this.maxLedHeightArray) {
- int var3 = this.startPositionX;
- int var4 = this.startPositionY + this.ledDim * var2;
-
- for(int var5 = 0; var5 < this.maxLedWidthArray; ++var5) {
- if (var5 < this.theMessage.getStringLength()) {
- this.ledLight(var1, var3, var4, this.theMessage.getBool(var2, var5), this.theMessage.letterColor(var5));
- } else {
- this.ledLight(var1, var3, var4, false, this.ledOffColor);
- }
-
- var3 += this.ledDim;
- }
- }
-
- }
-
- private void calcXY(String var1) {
- String var2 = ((Applet)this).getParameter("serialid");
- if (var2 == null) {
- this.NotRegistered();
- } else {
- long var3 = this.whatXY(var1);
- this.synchMaster(var1);
- String var5 = this.intoLetters(Long.toString(var3));
- this.synchMaster(var5);
- boolean var6 = var2.regionMatches(true, 0, var5, 0, var5.length());
- if (!var6) {
- this.NotRegistered();
- }
- }
-
- }
-
- public void update(Graphics var1) {
- if (this.readyToPaint) {
- this.paint(var1);
- }
-
- }
-
- private void getCommand() {
- try {
- this.command = this.theScript.nextFunction();
- this.theMessage.setText(this.command);
- } catch (ArrayIndexOutOfBoundsException var2) {
- System.out.println(((Throwable)var2).getMessage());
- }
-
- }
-
- public void start() {
- System.out.println("START");
- this.firstTime = true;
- if (this.ledThread == null) {
- this.ledThread = new Thread(this);
- }
-
- this.ledThread.start();
- }
-
- public String getAppletInfo() {
- return "Broadway v1.1 - Copyright Sausage Software 1996";
- }
-
- public broadway() {
- this.maxLedHeightArray = funcnum.MAXBITS;
- this.maxLedWidthArray = 10;
- this.readyToPaint = true;
- this.firstTime = true;
- this.unreg = true;
- }
-
- private String addString(String var1, String var2) {
- return var1 == null ? new String(var2) : var1.concat(var2);
- }
-
- private void getParams() {
- String var1 = ((Applet)this).getParameter("from");
- if (var1 != null) {
- if (!var1.equals("Broadway - Sausage Software 1996")) {
- this.unreg = true;
- } else {
- this.unreg = false;
- this.growingString = this.addString(this.growingString, var1 + "6");
- }
- } else {
- System.out.println("No 'from' parameter");
- this.unreg = true;
- }
-
- var1 = ((Applet)this).getParameter("date");
- if (var1 == null) {
- System.out.println("no 'date' parameter");
- paramErrorString = new String(paramErrorString.concat("date "));
- this.paramError = true;
- } else {
- this.growingString = this.addString(this.growingString, var1);
- }
-
- this.growingString = this.addString(this.growingString, "font.fnt");
- var1 = ((Applet)this).getParameter("scriptfile");
- if (var1 != null) {
- this.scriptFile = new String(var1);
- this.growingString = this.addString(this.growingString, var1);
- } else {
- System.out.println("no scriptfile parameter");
- paramErrorString = new String(paramErrorString.concat("scriptfile "));
- this.paramError = true;
- }
-
- var1 = ((Applet)this).getParameter("space");
- if (var1 != null) {
- this.letterSpace = Integer.parseInt(var1);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("spaceWidth");
- if (var1 != null) {
- this.spaceWidth = Integer.parseInt(var1);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("borderOuter");
- if (var1 != null) {
- this.borderOuter = Integer.parseInt(var1);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("borderInner");
- if (var1 != null) {
- this.borderInner = Integer.parseInt(var1);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("borderSize");
- if (var1 != null) {
- this.borderSize = Integer.parseInt(var1);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("borderColor");
- if (var1 != null) {
- StringTokenizer var2 = new StringTokenizer(var1, ",");
- this.borderColor = this.getColor(var2);
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("ledRimColor");
- if (var1 != null) {
- StringTokenizer var19 = new StringTokenizer(var1, ",");
- this.ledRimColor = this.getColor(var19);
- }
-
- var1 = ((Applet)this).getParameter("brokenLed");
- if (var1 != null && var1.equalsIgnoreCase("true")) {
- this.brokenLed = true;
- }
-
- var1 = ((Applet)this).getParameter("appletColor");
- if (var1 != null) {
- StringTokenizer var20 = new StringTokenizer(var1, ",");
- this.appletColor = this.getColor(var20);
- } else {
- this.appletColor = ((Component)this).getBackground();
- }
-
- var1 = ((Applet)this).getParameter("backGroundColor");
- if (var1 != null) {
- this.backGroundColor = new Color(Integer.parseInt(var1));
- } else {
- this.backGroundColor = new Color(0, 0, 0);
- }
-
- var1 = ((Applet)this).getParameter("ledOffColor");
- if (var1 != null) {
- StringTokenizer var21 = new StringTokenizer(var1, ",");
- this.growingString = this.addString(this.growingString, var1);
- this.ledOffColor = this.getColor(var21);
- } else {
- this.ledOffColor = new Color(0, 0, 0);
- }
-
- var1 = ((Applet)this).getParameter("oval");
- if (var1 != null) {
- if ("true".equalsIgnoreCase(var1)) {
- this.oval = true;
- }
-
- this.growingString = this.addString(this.growingString, var1);
- }
-
- var1 = ((Applet)this).getParameter("fontfile");
- if (var1 != null) {
- this.fontFile = new String(var1);
- } else {
- System.out.println("no fontfile parameter");
- paramErrorString = new String(paramErrorString.concat("fontfile "));
- this.paramError = true;
- }
-
- var1 = ((Applet)this).getParameter("reguser");
- if (var1 == null) {
- this.paramError = true;
- } else {
- if (var1.toLowerCase().equals("unregistered")) {
- this.unreg = true;
- } else {
- this.unreg = false;
- }
-
- this.growingString = this.addString(this.growingString, var1);
- }
-
- this.calcXY(this.growingString);
- }
-
- private void OverLeftRight(Graphics var1, int var2) {
- int var3 = this.startPositionY;
- int var4 = this.startPositionX + this.ledDim * var2;
- if (var2 < this.maxLedWidthArray) {
- if (var2 < this.theMessage.getStringLength()) {
- for(int var5 = 0; var5 < funcnum.MAXBITS; ++var5) {
- this.ledLight(var1, var4, var3, this.theMessage.getBool(var5, var2), this.theMessage.letterColor(var2));
- var3 += this.ledDim;
- }
- } else {
- for(int var6 = 0; var6 < funcnum.MAXBITS; ++var6) {
- this.ledLight(var1, var4, var3, false, this.ledOffColor);
- var3 += this.ledDim;
- }
- }
- }
-
- }
-
- private long whatXY(String var1) {
- int var2 = 0;
-
- for(int var3 = 0; var3 < var1.length(); ++var3) {
- if (Character.isLetterOrDigit(var1.charAt(var3))) {
- var2 += var1.charAt(var3);
- }
- }
-
- return (long)var2;
- }
-
- private void debug2(String var1) {
- if (this.dbg2) {
- if (var1 != null) {
- System.out.println(var1);
- } else {
- System.out.println("NULL");
- }
- }
-
- }
-
- private void NotRegistered() {
- System.out.println("Program not registered");
- this.serialIdError = true;
- }
-
- public void paint(Graphics var1) {
- if (this.initialised && this.ledThread != null) {
- if (this.serialIdError) {
- this.showSerialIdError(this.offGraphics);
- } else if (this.paramError) {
- this.showParamError(this.offGraphics);
- } else if (this.fileError) {
- this.showFileError(this.offGraphics);
- } else if (this.firstTime) {
- System.out.println("PAINT");
- ((Component)this).setBackground(this.appletColor);
- var1.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- this.offGraphics.setColor(this.appletColor);
- this.offGraphics.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- this.clearLeds(this.offGraphics);
- this.drawBorder(this.offGraphics, this.borderColor, this.borderOuter, this.borderSize, this.borderInner, this.borderRaised);
- this.firstTime = false;
- }
-
- var1.drawImage(this.offImage, 0, 0, this);
- }
-
- }
-
- private void posInit(int var1) {
- if (this.testPosInit) {
- this.testPosInit = false;
- this.ledPosition = var1 - 1;
- }
-
- }
-
- public Color getColor(StringTokenizer var1) {
- try {
- int var2 = Integer.parseInt(var1.nextToken());
- int var3 = Integer.parseInt(var1.nextToken());
- int var4 = Integer.parseInt(var1.nextToken());
- return new Color(var2, var3, var4);
- } catch (NoSuchElementException var5) {
- System.out.println("Color problems getColor(St)");
- return new Color(128, 128, 128);
- }
- }
-
- private void showParamError(Graphics var1) {
- var1.setFont(new Font("Courier", 1, 11));
- var1.setColor(Color.black);
- var1.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- var1.setColor(Color.red);
- var1.drawString("You are missing", 2, 11);
- var1.drawString("vital parameters", 2, 22);
- var1.drawString("in your .html file.", 2, 33);
- var1.drawString(paramErrorString, 2, 44);
- ((Applet)this).showStatus("PLEASE READ HELP FILE");
- }
-
- private void showFileError(Graphics var1) {
- var1.setFont(new Font("Courier", 1, 11));
- var1.setColor(Color.black);
- var1.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- var1.setColor(Color.red);
- var1.drawString("I have problems reading from", 2, 11);
- var1.drawString("script file and or", 2, 22);
- var1.drawString("font file.", 2, 33);
- ((Applet)this).showStatus("PLEASE READ HELP FILE");
- }
-
- public void showSerialIdError(Graphics var1) {
- var1.setFont(new Font("Courier", 1, 11));
- var1.setColor(Color.black);
- var1.fillRect(0, 0, ((Component)this).size().width, ((Component)this).size().height);
- var1.setColor(Color.red);
- var1.drawString("SerialID ERROR", 2, 11);
- ((Applet)this).showStatus("PLEASE READ HELP FILE");
- }
-
- public void clearLeds(Graphics var1) {
- int var3 = this.startPositionX;
- int var4 = (this.startPositionY - this.startPosition) / this.ledDim;
- int var5 = ((Component)this).size().height - this.borderTotalWidth;
-
- for(int var6 = 0; var6 < this.maxLedWidthArray; ++var6) {
- int var2 = this.startPositionY - this.ledDim * var4;
-
- for(int var7 = 0; var7 < funcnum.MAXBITS; ++var7) {
- this.ledLight(var1, var3, var2, false, this.ledOffColor);
- var2 += this.ledDim;
- }
-
- while(var2 + this.ledDim < var5) {
- this.ledLight(var1, var3, var2, false, this.ledOffColor);
- var2 += this.ledDim;
- }
-
- var3 += this.ledDim;
- }
-
- }
-
- private void synchMaster(String var1) {
- }
-
- private void debug3(String var1) {
- if (this.dbg3) {
- System.out.println(var1);
- }
-
- }
-
- private void calcDisplayArea() {
- this.displayWidth = ((Component)this).size().width - this.borderTotalWidth * 2 - this.spaceWidth;
- this.displayHeight = ((Component)this).size().height - this.borderTotalWidth * 2 - this.spaceWidth;
- this.calcLeds();
- }
-
- private void loader() {
- this.debug3("LOAD font & script");
- this.letterFont = new letters(((Applet)this).getDocumentBase(), this.fontFile, this.letterSpace);
- if (!(this.fileError = this.letterFont.getFileError())) {
- try {
- this.letterFont.readFontFile();
- this.debug3(this.fontFile + " loaded");
- } catch (Exception var3) {
- this.fileError = true;
- System.out.println("Error reading from " + this.fontFile);
- System.out.println(((Throwable)var3).getMessage());
- }
-
- if (!this.fileError) {
- this.theMessage = new textmess(this.letterFont);
-
- try {
- this.theScript = new ldscript(((Applet)this).getDocumentBase(), this.scriptFile);
- if (!(this.fileError = this.theScript.getFileError())) {
- this.getCommand();
- this.debug3(this.scriptFile + " loaded");
- }
- } catch (NullPointerException var2) {
- this.fileError = true;
- System.out.println("Could not find " + this.scriptFile);
- }
- }
- }
-
- }
-
- private void ledLight(Graphics var1, int var2, int var3, boolean var4, Color var5) {
- var1.setColor(this.ledRimColor);
- Color var6;
- if (!var4) {
- var6 = this.ledOffColor;
- } else {
- var6 = var5;
- }
-
- if (this.oval) {
- this.drawLed(var1, var2, var3, var6);
- } else {
- var1.setColor(var6);
- var1.fillRect(var2, var3, this.ledWidth, this.ledHeight);
- }
-
- }
-
- private void calcLeds() {
- this.ledWidth = this.ledHeight = this.displayHeight / funcnum.MAXBITS - this.spaceWidth;
- int var1 = this.displayHeight % funcnum.MAXBITS;
- this.maxLedWidthArray = this.displayWidth / (this.spaceWidth + this.ledHeight);
- this.startPositionX = this.startPosition;
- this.startPositionY = this.startPosition + var1 / 2;
- }
-
- private void ScrollRight(Graphics var1, int var2) {
- var1.copyArea(this.startPositionX, this.startPositionY, this.ledDim * (this.maxLedWidthArray - 1), this.displayHeight, this.ledDim, 0);
- int var3 = this.startPositionY;
- int var4 = this.startPositionX;
-
- for(int var5 = 0; var5 < funcnum.MAXBITS; ++var5) {
- this.ledLight(var1, var4, var3, this.theMessage.getBool(var5, var2), this.theMessage.letterColor(var2));
- var3 += this.ledDim;
- }
-
- }
-
- public void run() {
- System.out.println("RUN");
- if (!this.paramError && !this.serialIdError) {
- this.debug2("paramError=" + this.paramError);
- this.loader();
- }
-
- while(true) {
- ((Component)this).repaint();
-
- try {
- Thread.sleep((long)(this.sleepTime + 10));
- } catch (Exception var1) {
- }
-
- if (this.nextFuncReady) {
- this.getCommand();
- }
-
- this.nextFuncReady = false;
- this.readyToPaint = false;
- if (!this.fileError && !this.paramError && !this.serialIdError) {
- this.preDraw();
- if (this.unreg) {
- ((Applet)this).getAppletContext().showStatus("Unregistered version. Copyright (c) Sausage Software 1996");
- }
- }
-
- this.readyToPaint = true;
- }
- }
-
- public void init() {
- System.out.println(this.getAppletInfo());
- System.out.println("INIT");
- this.getParams();
-
- try {
- this.offImage = ((Component)this).createImage(((Component)this).size().width, ((Component)this).size().height);
- this.offGraphics = this.offImage.getGraphics();
- } catch (Exception var1) {
- this.offGraphics = null;
- }
-
- this.borderTotalWidth = this.borderOuter + this.borderSize + this.borderInner;
- this.startPosition = this.borderTotalWidth + this.spaceWidth;
- this.calcDisplayArea();
- this.ledDim = this.ledWidth + this.spaceWidth;
- this.initialised = true;
- }
-
- public boolean handleEvent(Event var1) {
- switch (var1.id) {
- case 201:
- this.stop();
- System.exit(0);
- break;
- case 501:
- if (this.userPause) {
- this.ledThread.resume();
- } else {
- this.ledThread.suspend();
- }
-
- this.userPause = !this.userPause;
- }
-
- return true;
- }
-
- private synchronized void preDraw() {
- if (!this.firstTime) {
- switch (this.command.getFuncNum()) {
- case 1:
- this.debug3("Scroll up");
- this.ScrollUp(this.offGraphics, this.ledPosition);
- this.testPosition(this.maxLedHeightArray);
- break;
- case 2:
- this.debug3("Scrolldown");
- this.posInit(this.maxLedHeightArray);
- this.ScrollDown(this.offGraphics, this.ledPosition);
- this.testPosition();
- break;
- case 3:
- this.debug3("Scroll Right");
- this.posInit(this.theMessage.getStringLength());
- this.ScrollRight(this.offGraphics, this.ledPosition);
- this.testPosition();
- break;
- case 4:
- this.debug3("Scroll left");
- this.ScrollLeft(this.offGraphics, this.ledPosition);
- this.testPosition(this.theMessage.getStringLength());
- break;
- case 10:
- this.debug3("Over Scroll Up");
- this.posInit(this.maxLedHeightArray);
- this.OverUpDown(this.offGraphics, this.ledPosition);
- this.testPosition();
- break;
- case 11:
- this.debug3("Over Scroll Down");
- this.OverUpDown(this.offGraphics, this.ledPosition);
- this.testPosition(this.maxLedHeightArray);
- break;
- case 12:
- this.debug3("Over Scroll Right");
- this.OverLeftRight(this.offGraphics, this.ledPosition);
- this.testPosition(this.maxLedWidthArray);
- break;
- case 13:
- this.debug3("Over Scroll Left");
- this.posInit(this.maxLedWidthArray);
- this.OverLeftRight(this.offGraphics, this.ledPosition);
- this.testPosition();
- break;
- case 103:
- this.debug3("Pause");
- this.nextFuncReady = true;
- break;
- case 104:
- this.debug3("Show");
- this.Show(this.offGraphics);
- this.nextFuncReady = true;
- break;
- case 105:
- if (!this.blink) {
- this.blinkcount = this.command.getBlink();
- this.blink = true;
- } else if (this.blinkOff) {
- this.clearLeds(this.offGraphics);
- this.blinkOff = false;
- } else {
- this.Show(this.offGraphics);
- this.blinkOff = true;
- this.blinkcount += -1;
- }
-
- if (this.blinkcount < 1) {
- this.nextFuncReady = true;
- this.blinkOff = true;
- this.blink = false;
- }
- break;
- case 106:
- this.debug3("CLEAR");
- this.clearLeds(this.offGraphics);
- this.ledPosition = 0;
- this.nextFuncReady = true;
- break;
- default:
- this.debug3("Default nothing");
- this.ledPosition = 0;
- this.nextFuncReady = true;
- this.testPosInit = true;
- System.out.println("Nothing to do. A function is not known by me - led.java");
- }
-
- this.sleepTime = this.command.getDelay();
- }
-
- }
-
- private void ScrollUp(Graphics var1, int var2) {
- var1.copyArea(this.startPositionX, this.startPositionY + this.ledDim, this.displayWidth, (funcnum.MAXBITS - 1) * this.ledDim, 0, -this.ledWidth - this.spaceWidth);
- int var3 = this.startPositionX;
- int var4 = this.startPositionY + this.ledDim * (funcnum.MAXBITS - 1);
-
- for(int var5 = 0; var5 < this.theMessage.getStringLength() && var5 < this.maxLedWidthArray; ++var5) {
- this.ledLight(var1, var3, var4, this.theMessage.getBool(var2, var5), this.theMessage.letterColor(var5));
- var3 += this.ledDim;
- }
-
- int var7 = 0;
- if ((var7 = this.maxLedWidthArray - this.theMessage.getStringLength()) > 0) {
- for(int var6 = 0; var6 < var7; ++var6) {
- this.ledLight(var1, var3, var4, false, this.ledOffColor);
- var3 += this.ledDim;
- }
- }
-
- }
-
- private void Show(Graphics var1) {
- int var2 = this.startPositionX;
- int var3 = this.startPositionY;
-
- for(int var4 = 0; var4 < funcnum.MAXBITS; ++var4) {
- var2 = this.startPosition;
-
- for(int var5 = 0; var5 < this.theMessage.getStringLength() && var5 < this.maxLedWidthArray; ++var5) {
- this.ledLight(var1, var2, var3, this.theMessage.getBool(var4, var5), this.theMessage.letterColor(var5));
- var2 += this.ledDim;
- }
-
- var3 += this.ledDim;
- }
-
- }
-
- private void ScrollLeft(Graphics var1, int var2) {
- int var3 = (this.maxLedWidthArray - 1) * this.ledDim;
- var1.copyArea(this.startPositionX + this.ledDim, this.startPosition, var3, this.displayHeight, -this.ledDim, 0);
- int var4 = this.startPositionY;
- int var5 = this.startPositionX + var3;
-
- for(int var6 = 0; var6 < funcnum.MAXBITS; ++var6) {
- this.ledLight(var1, var5, var4, this.theMessage.getBool(var6, var2), this.theMessage.letterColor(var2));
- var4 += this.ledDim;
- }
-
- }
- }
-