com.monkeycoder.monkeynes.gui
Class PrgRomViewerGui

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

public class PrgRomViewerGui
extends Object
implements Observer

This is a GUI Dialog box that displays a simple top down disassembly of the memory in PRG-ROM.

Originally part of the MonkeyNES project.

Author:
David Stephens

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

Constructor Detail

PrgRomViewerGui

public PrgRomViewerGui(Frame inParentFrame,
                       NesMainMemory inMainMemory)
Creates and configures a new PrgRomViewerGui. Note that the window is constructed but not displayed.

Parameters:
inParentFrame - The parent of this dialog.
inMainMemory - The MainMemory from which the PRG-ROM will be loaded.
Method Detail

update

public void update(Observable o,
                   Object arg)
Accepts messages from main memory. If the specific area of main memory that contains the PRG-ROM 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 PrgRomViewerGui.