Class Decorator

java.lang.Object
  |
  +--Decorator

public class Decorator
extends java.lang.Object

This class creates a graphics window, and then adds some display objects to the scene. The idea is to illustrate the use of 2-D arrays


Constructor Summary
Decorator(int n)
          Create a new Decorator and all the required patterns.
 
Method Summary
 void showPattern(int k)
          Display the requested patterns
 void shutDown()
          Close down the display window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decorator

public Decorator(int n)
Create a new Decorator and all the required patterns.

Parameters:
n - the number of patterns to create of each type
Method Detail

showPattern

public void showPattern(int k)
Display the requested patterns

Parameters:
k - the pattern number to show

shutDown

public void shutDown()
Close down the display window.