edu.cornell.cs.sam.ui.components
Class MemoryCell

java.lang.Object
  extended by edu.cornell.cs.sam.ui.components.MemoryCell

public class MemoryCell
extends java.lang.Object


Field Summary
static java.awt.Color COLOR_CH
          The background color used for characters
static java.awt.Color COLOR_DEFAULT
          The color used for any items that do not have a correct type
static java.awt.Color COLOR_FLOAT
          The background color used for floats
static java.awt.Color COLOR_INT
          The background color used for integers
static java.awt.Color COLOR_MA
          The background color used for memory addresses
static java.awt.Color COLOR_PA
          The background color used for program addresses
 
Constructor Summary
MemoryCell(Memory.Data data, int address)
           
 
Method Summary
 java.awt.Color getColor()
           
 java.lang.String getText()
           
 java.lang.String getToolTip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_INT

public static final java.awt.Color COLOR_INT
The background color used for integers


COLOR_FLOAT

public static final java.awt.Color COLOR_FLOAT
The background color used for floats


COLOR_MA

public static final java.awt.Color COLOR_MA
The background color used for memory addresses


COLOR_PA

public static final java.awt.Color COLOR_PA
The background color used for program addresses


COLOR_CH

public static final java.awt.Color COLOR_CH
The background color used for characters


COLOR_DEFAULT

public static final java.awt.Color COLOR_DEFAULT
The color used for any items that do not have a correct type

Constructor Detail

MemoryCell

public MemoryCell(Memory.Data data,
                  int address)
Method Detail

getText

public java.lang.String getText()

getToolTip

public java.lang.String getToolTip()

getColor

public java.awt.Color getColor()