com.monkeycoder.monkeynes.gui
Class PrgRomHexViewerGui

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

public class PrgRomHexViewerGui
extends Object
implements Observer

This is the GUI dialog that displays a hex view of the contents of the PRG-ROM.

Originally part of the MonkeyNES project.

Author:
David Stephens

Constructor Summary
PrgRomHexViewerGui(Frame inParentFrame, NesMainMemory inMainMemory)
          Creates and configures a new PrgRomHexViewerGui.
 
Method Summary
 void show()
          Displays the PrgRomHexViewerGui.
 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

PrgRomHexViewerGui

public PrgRomHexViewerGui(Frame inParentFrame,
                          NesMainMemory inMainMemory)
Creates and configures a new PrgRomHexViewerGui. 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 PrgRomHexViewerGui.