This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

BIN
java/IPLED/IMAGE/BLANK.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

BIN
java/IPLED/IMAGE/DASH.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

BIN
java/IPLED/IMAGE/EIGHT.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

BIN
java/IPLED/IMAGE/FIVE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/IPLED/IMAGE/FOUR.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/IPLED/IMAGE/LED.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

BIN
java/IPLED/IMAGE/NINE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

BIN
java/IPLED/IMAGE/ONE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

BIN
java/IPLED/IMAGE/SEVEN.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

BIN
java/IPLED/IMAGE/SIX.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

BIN
java/IPLED/IMAGE/THREE.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

BIN
java/IPLED/IMAGE/TWO.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

BIN
java/IPLED/IMAGE/ZERO.GIF Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

23
java/IPLED/INDEX~1.HTM Normal file
View File

@@ -0,0 +1,23 @@
<html>
<head>
<title>proto</title>
</head>
<body>
<hr>
<TITLE>Sean Kessler's Home Page</TITLE>
<META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (Win95; U) [Netscape]">
<SCRIPT LANGUAGE="JavaScript">
var leave=true;
function Leave()
{
/*if (leave)
open("ftp://127.0.0.1");*/
alert("goodbye");
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" ONUNLOAD="Leave()">
</html>

133
java/IPLED/IPLED.MAK Normal file
View File

@@ -0,0 +1,133 @@
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
# ** DO NOT EDIT **
# TARGTYPE "Java Virtual Machine Java Workspace" 0x0809
!IF "$(CFG)" == ""
CFG=ipled - Java Virtual Machine Debug
!MESSAGE No configuration specified. Defaulting to ipled - Java Virtual\
Machine Debug.
!ENDIF
!IF "$(CFG)" != "ipled - Java Virtual Machine Release" && "$(CFG)" !=\
"ipled - Java Virtual Machine Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE on this makefile
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "ipled.mak" CFG="ipled - Java Virtual Machine Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "ipled - Java Virtual Machine Release" (based on\
"Java Virtual Machine Java Workspace")
!MESSAGE "ipled - Java Virtual Machine Debug" (based on\
"Java Virtual Machine Java Workspace")
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
################################################################################
# Begin Project
JAVA=jvc.exe
!IF "$(CFG)" == "ipled - Java Virtual Machine Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir ""
# PROP BASE Intermediate_Dir ""
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
OUTDIR=.
INTDIR=.
ALL : "$(OUTDIR)\IPLed.class"
CLEAN :
-@erase "$(INTDIR)\IPLed.class"
# ADD BASE JAVA /O
# ADD JAVA /O
!ELSEIF "$(CFG)" == "ipled - Java Virtual Machine Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir ""
# PROP BASE Intermediate_Dir ""
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ""
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
OUTDIR=.
INTDIR=.
ALL : "$(OUTDIR)\IPLed.class"
CLEAN :
-@erase "$(INTDIR)\IPLed.class"
# ADD BASE JAVA /g
# ADD JAVA /g
!ENDIF
################################################################################
# Begin Target
# Name "ipled - Java Virtual Machine Release"
# Name "ipled - Java Virtual Machine Debug"
!IF "$(CFG)" == "ipled - Java Virtual Machine Release"
!ELSEIF "$(CFG)" == "ipled - Java Virtual Machine Debug"
!ENDIF
################################################################################
# Begin Source File
SOURCE=.\IPLed.java
!IF "$(CFG)" == "ipled - Java Virtual Machine Release"
"$(INTDIR)\IPLed.class" : $(SOURCE) "$(INTDIR)"
!ELSEIF "$(CFG)" == "ipled - Java Virtual Machine Debug"
"$(INTDIR)\IPLed.class" : $(SOURCE) "$(INTDIR)"
!ENDIF
# End Source File
################################################################################
# Begin Source File
SOURCE=.\index.html
!IF "$(CFG)" == "ipled - Java Virtual Machine Release"
!ELSEIF "$(CFG)" == "ipled - Java Virtual Machine Debug"
!ENDIF
# End Source File
# End Target
# End Project
################################################################################

BIN
java/IPLED/IPLED~1.CLA Normal file

Binary file not shown.

94
java/IPLED/IPLED~1.JAV Normal file
View File

@@ -0,0 +1,94 @@
import java.awt.*;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Color;
import java.util.Date;
import java.awt.Frame;
import java.awt.image.*;
public class IPLed extends java.applet.Applet implements Runnable
{
Thread mThread;
final int smImageCount=12;
Image[] mLedImages=new Image[smImageCount];
String mStrParam;
public void init()
{
mLedImages[0]=getImage(getCodeBase(),"image/zero.gif");
mLedImages[1]=getImage(getCodeBase(),"image/one.gif");
mLedImages[2]=getImage(getCodeBase(),"image/two.gif");
mLedImages[3]=getImage(getCodeBase(),"image/three.gif");
mLedImages[4]=getImage(getCodeBase(),"image/four.gif");
mLedImages[5]=getImage(getCodeBase(),"image/five.gif");
mLedImages[6]=getImage(getCodeBase(),"image/six.gif");
mLedImages[7]=getImage(getCodeBase(),"image/seven.gif");
mLedImages[8]=getImage(getCodeBase(),"image/eight.gif");
mLedImages[9]=getImage(getCodeBase(),"image/nine.gif");
mLedImages[10]=getImage(getCodeBase(),"image/dash.gif");
mLedImages[11]=getImage(getCodeBase(),"image/blank.gif");
mStrParam=new String(getParameter("address"));
if(null==mStrParam)mStrParam="255.255.255.255";
MediaTracker mediaTracker=new MediaTracker(this);
for(int imageIndex=0;imageIndex<smImageCount;imageIndex++)mediaTracker.addImage(mLedImages[imageIndex],imageIndex);
try(mediaTracker.waitForAll());
catch(InterruptedException ie){;}
repaint();
}
public void run()
{
repaint();
}
public void start()
{
if(mThread==null){mThread=new Thread(this);mThread.start();}
}
public void stop()
{
if(null!=mThread){mThread.stop();mThread=null;}
}
public void paint(Graphics graphics)
{
drawLEDString(mStrParam,graphics);
}
public void drawLEDString(String strLED,Graphics graphics)
{
int strLength=strLED.length();
int imageWidth;
int imageHeight;
Point ptLoc;
ptLoc=new Point(4,4);
imageWidth=mLedImages[0].getWidth(this);
imageHeight=mLedImages[0].getHeight(this);
for(int strIndex=0;strIndex<strLength;strIndex++)
{
char strChar=strLED.charAt(strIndex);
if('0'==strChar)graphics.drawImage(mLedImages[0],ptLoc.x,ptLoc.y,this);
else if('1'==strChar)graphics.drawImage(mLedImages[1],ptLoc.x,ptLoc.y,this);
else if('2'==strChar)graphics.drawImage(mLedImages[2],ptLoc.x,ptLoc.y,this);
else if('3'==strChar)graphics.drawImage(mLedImages[3],ptLoc.x,ptLoc.y,this);
else if('4'==strChar)graphics.drawImage(mLedImages[4],ptLoc.x,ptLoc.y,this);
else if('5'==strChar)graphics.drawImage(mLedImages[5],ptLoc.x,ptLoc.y,this);
else if('6'==strChar)graphics.drawImage(mLedImages[6],ptLoc.x,ptLoc.y,this);
else if('7'==strChar)graphics.drawImage(mLedImages[7],ptLoc.x,ptLoc.y,this);
else if('8'==strChar)graphics.drawImage(mLedImages[8],ptLoc.x,ptLoc.y,this);
else if('9'==strChar)graphics.drawImage(mLedImages[9],ptLoc.x,ptLoc.y,this);
else if('.'==strChar)graphics.drawImage(mLedImages[10],ptLoc.x,ptLoc.y,this);
else graphics.drawImage(mLedImages[11],ptLoc.x,ptLoc.y,this);
ptLoc.x+=imageWidth;
}
graphics.setColor(new Color(48,64,0));
graphics.drawLine(3,3,ptLoc.x,3);
graphics.drawLine(3,3,3,imageHeight+4);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(3,imageHeight+4,ptLoc.x,imageHeight+4);
graphics.drawLine(ptLoc.x,3,ptLoc.x,imageHeight+4);
graphics.setColor(new Color(96,143,208));
graphics.drawRect(2,2,(ptLoc.x+1)-2,imageHeight+3);
graphics.setColor(new Color(175,192,224));
graphics.drawLine(1,1,ptLoc.x+2,1);
}
}

BIN
java/IPLED/Ipled.mdp Normal file

Binary file not shown.