com.monkeycoder.monkeynes.gui
Class PatternTableViewerGui

java.lang.Object
  |
  +--com.monkeycoder.monkeynes.gui.PatternTableViewerGui
All Implemented Interfaces:
Observer

public class PatternTableViewerGui
extends Object
implements Observer

This is the GUI dialog that shows graphically the contents of the CHR-ROM (Pattern Tables).

Originally part of the MonkeyNES project.

Author:
David Stephens

Constructor Summary
PatternTableViewerGui(Frame inParentFrame, NesVideoMemory inVidMemory)
          Creates and configures a new PatternTableViewerGui.
 
Method Summary
 void show()
          Displays the PatternTableViewerGui.
 void update(Observable o, Object arg)
          Accepts messages from video memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternTableViewerGui

public PatternTableViewerGui(Frame inParentFrame,
                             NesVideoMemory inVidMemory)
Creates and configures a new PatternTableViewerGui. Note that the window is constructed but not displayed.

Parameters:
inParentFrame - The parent of this dialog.
inVidMemory - The VideoMemory from which the pattern tables will be loaded.
Method Detail

update

public void update(Observable o,
                   Object arg)
Accepts messages from video memory. If the specific area of video memory that contains the pattern tables changes a redraw of this control will be triggered.

Specified by:
update in interface Observer
Parameters:
o - The observable object sending the message.
arg - The message being sent.

show

public void show()
Displays the PatternTableViewerGui.