org.problets.domain.viz.data.implement
Class DataSpaceViz

java.lang.Object
  extended by org.problets.domain.viz.data.BaseViz
      extended by org.problets.domain.viz.data.AggregateBaseViz
          extended by org.problets.domain.viz.data.implement.DataSpaceViz
All Implemented Interfaces:
VizConstants

public class DataSpaceViz
extends AggregateBaseViz

Visualizes the data space of a program

Author:
Stefan Kasabov

Field Summary
 
Fields inherited from class org.problets.domain.viz.data.BaseViz
NOT_FOUND
 
Fields inherited from interface org.problets.domain.viz.data.VizConstants
ACTIVE_COLOR, COLOR_SCHEME, HIGHLIGHT_COLOR, INACTIVE_COLOR, STRIKEOUT_COLOR
 
Constructor Summary
DataSpaceViz(CodeModel inCode)
           
 
Method Summary
 void deregisterChannel(Channel inChannel)
          Hands off request to deregister a channel to the channel manager
 AbstractVarViz findInAncestors(AbstractVarModel inModel)
          Recursively look for the variable in the ancestors of this block - Not to be used by anyone
 AbstractVarViz findInDescendants(AbstractVarModel inModel)
          Recursively look for the variable in the descendants of this block - Not to be used by anyone
 AbstractVarViz findInGlobal(AbstractVarModel inModel)
           
 AbstractVarViz findInHeap(AbstractVarModel inModel)
           
 AbstractVarViz findInStack(AbstractVarModel inModel)
           
 void initVisualizers()
          Resets all the visualizers to null
static void main(java.lang.String[] args)
           
 int paint(java.awt.Graphics g, java.awt.Font regFont, java.awt.FontMetrics regFontMetric, int topLeftX, int topLeftY, int width)
          Method provides a public interface to all the draw methods of visualizers
 void registerChannel(Channel inChannel)
          Hands off request to register a channel to the channel manager
 void respond(int xMouse, int yMouse)
          Ask all the segments of visualization to respond to a mouse event
 void setup()
          Sets up the visualizers of the global, stack and heap for the program
 void update()
          Ask all the segments of visualization to update themselves to reflect any change in the values in the model
 
Methods inherited from class org.problets.domain.viz.data.AggregateBaseViz
getParentViz, setParentViz
 
Methods inherited from class org.problets.domain.viz.data.BaseViz
getLeftX, getWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSpaceViz

public DataSpaceViz(CodeModel inCode)
Method Detail

paint

public int paint(java.awt.Graphics g,
                 java.awt.Font regFont,
                 java.awt.FontMetrics regFontMetric,
                 int topLeftX,
                 int topLeftY,
                 int width)
Method provides a public interface to all the draw methods of visualizers


respond

public void respond(int xMouse,
                    int yMouse)
Ask all the segments of visualization to respond to a mouse event


findInHeap

public AbstractVarViz findInHeap(AbstractVarModel inModel)

findInGlobal

public AbstractVarViz findInGlobal(AbstractVarModel inModel)

findInStack

public AbstractVarViz findInStack(AbstractVarModel inModel)

findInAncestors

public AbstractVarViz findInAncestors(AbstractVarModel inModel)
Recursively look for the variable in the ancestors of this block - Not to be used by anyone

Specified by:
findInAncestors in class AggregateBaseViz

findInDescendants

public AbstractVarViz findInDescendants(AbstractVarModel inModel)
Recursively look for the variable in the descendants of this block - Not to be used by anyone

Specified by:
findInDescendants in class AggregateBaseViz

registerChannel

public void registerChannel(Channel inChannel)
Hands off request to register a channel to the channel manager

Overrides:
registerChannel in class AggregateBaseViz

deregisterChannel

public void deregisterChannel(Channel inChannel)
Hands off request to deregister a channel to the channel manager

Overrides:
deregisterChannel in class AggregateBaseViz

update

public void update()
Ask all the segments of visualization to update themselves to reflect any change in the values in the model

Overrides:
update in class BaseViz

initVisualizers

public void initVisualizers()
Resets all the visualizers to null


setup

public void setup()
Sets up the visualizers of the global, stack and heap for the program


main

public static void main(java.lang.String[] args)