com.monkeycoder.monkeynes.gui
Class VideoRamHexViewerGui

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

public class VideoRamHexViewerGui
extends Object
implements Observer

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

Originally part of the MonkeyNES project.

Author:
David Stephens

Constructor Summary
VideoRamHexViewerGui(Frame inParentFrame, NesVideoMemory inVideoMemory)
          Creates and configures a new VideoRamHexViewerGui.
 
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

VideoRamHexViewerGui

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

Parameters:
inParentFrame - The parent of this dialog.
inVideoMemory - The Video 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.