001package headfirst.facade.hometheater;
002
003public class Projector {
004        String description;
005        DvdPlayer dvdPlayer;
006
007        public Projector(String description, DvdPlayer dvdPlayer) {
008                this.description = description;
009                this.dvdPlayer = dvdPlayer;
010        }
011
012        public void on() {
013                System.out.println(description + " on");
014        }
015
016        public void off() {
017                System.out.println(description + " off");
018        }
019
020        public void wideScreenMode() {
021                System.out.println(description + " in widescreen mode (16x9 aspect ratio)");
022        }
023
024        public void tvMode() {
025                System.out.println(description + " in tv mode (4x3 aspect ratio)");
026        }
027
028        public String toString() {
029                return description;
030        }
031}