All Packages Class Hierarchy This Package Previous Next Index
Class edsac.gui.Crt
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----edsac.gui.Crt
- public class Crt
- extends Canvas
Crt - Cathode Ray Tube to display a binary number. Returns the
CRT display on a canvas so the EDSAC GUI can just call add(new
CRT(...)
- Version:
- v2.0
- Author:
- Simon Freytag Group Echo
-
Crt(int, int, int)
- Build a CRT with the specified number of bits, width in pixels,
and columns to display the number given.
-
paint(Graphics)
- Controls drawing of CRT
-
setNumber(boolean[])
- Sets the number to be displayed on the Crt and refreshes the display
Crt
public Crt(int width,
int numberOfBits,
int numberOfColumns)
- Build a CRT with the specified number of bits, width in pixels,
and columns to display the number given. This gives complete
control of the crt
setNumber
public void setNumber(boolean number[])
- Sets the number to be displayed on the Crt and refreshes the display
paint
public void paint(Graphics g)
- Controls drawing of CRT
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index