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

Constructor Index

 o Crt(int, int, int)
Build a CRT with the specified number of bits, width in pixels, and columns to display the number given.

Method Index

 o paint(Graphics)
Controls drawing of CRT
 o setNumber(boolean[])
Sets the number to be displayed on the Crt and refreshes the display

Constructors

 o 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

Methods

 o setNumber
 public void setNumber(boolean number[])
Sets the number to be displayed on the Crt and refreshes the display

 o paint
 public void paint(Graphics g)
Controls drawing of CRT

Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index