com.monkeycoder.monkeynes.gui
Class SpriteRamHexViewerGui

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

public class SpriteRamHexViewerGui
extends Object
implements Observer

This is the GUI dialog that a hex view of the contents of the SPR-RAM.

Originally part of the MonkeyNES project.

Author:
David Stephens

Constructor Summary
SpriteRamHexViewerGui(Frame inParentFrame, NesSpriteMemory inSpriteMemory)
          Creates and configures a new SpriteRamHexViewerGui.
 
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

SpriteRamHexViewerGui

public SpriteRamHexViewerGui(Frame inParentFrame,
                             NesSpriteMemory inSpriteMemory)
Creates and configures a new SpriteRamHexViewerGui. Note that the window is constructed but not displayed.

Parameters:
inParentFrame - The parent of this dialog.
inSpriteMemory - The Sprite Memory that will be displayed.
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.