cs015.SP
Class Screen

java.lang.Object
  extended bycs015.SP.Screen

public class Screen
extends java.lang.Object

A Screen can turn "on" or "off" by displaying the appropriate image.

Author:
Matt Chotin (mhc)

Constructor Summary
Screen(DrawingPanel panel, java.awt.Point point, java.lang.String filename)
          Initializes the screen and correctly positions it on the computer screen with respect to the TV.
 
Method Summary
 void off()
          Changes the screen so that it looks like it's off
 void on()
          Changes the screen so that it looks like it's on
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Screen

public Screen(DrawingPanel panel,
              java.awt.Point point,
              java.lang.String filename)
Initializes the screen and correctly positions it on the computer screen with respect to the TV. The screen is initially off.

Parameters:
panel - the DrawingPanel for this screen
point - the location of the TV that we should base our location on.
Method Detail

on

public void on()
Changes the screen so that it looks like it's on


off

public void off()
Changes the screen so that it looks like it's off