adalogo.gui.varmonitor

Class VarMonitorModel

Implemented Interfaces:
SymbolTable.SymbolTableListener, TreeModel, TreeTableModel

public class VarMonitorModel
extends AbstractTreeTableModel
implements SymbolTable.SymbolTableListener

Nested Class Summary

Field Summary

String
block
protected String[]
cNames
protected Class[]
cTypes
protected int
changewithinrounds
String
notVisible
protected boolean
showonlyvariables
String
symtab

Fields inherited from class adalogo.gui.varmonitor.AbstractTreeTableModel

listenerList, root

Constructor Summary

VarMonitorModel(SymbolTable symboltable, VarMonitor vm, ProgramCounter pc)

Method Summary

void
LevelDownPerformed()
void
LevelUpPerformed()
void
NewVariablePerformed(Object name)
void
ValueChangedPerformed(Object name)
Object
getChild(Object node, int index)
Returns the child of node at index i.
int
getChildCount(Object node)
Returns the number of children of node.
protected Object[]
getChildren(Object node)
Class
getColumnClass(int column)
Returns the type for column number column.
int
getColumnCount()
Returns the number ofs availible column.
String
getColumnName(int column)
Returns the name for column number column.
Object
getValueAt(Object node, int column)
Returns the value of the particular column for a treenode.
void
modelUpdate(int l)

Methods inherited from class adalogo.gui.varmonitor.AbstractTreeTableModel

addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getColumnClass, getIndexOfChild, getRoot, isCellEditable, isLeaf, removeTreeModelListener, setValueAt, valueForPathChanged

Field Details

block

public String block


cNames

protected String[] cNames


cTypes

protected Class[] cTypes


changewithinrounds

protected int changewithinrounds


notVisible

public String notVisible


showonlyvariables

protected boolean showonlyvariables


symtab

public String symtab

Constructor Details

VarMonitorModel

public VarMonitorModel(SymbolTable symboltable,
                       VarMonitor vm,
                       ProgramCounter pc)

Method Details

LevelDownPerformed

public void LevelDownPerformed()
Specified by:
LevelDownPerformed in interface SymbolTable.SymbolTableListener


LevelUpPerformed

public void LevelUpPerformed()
Specified by:
LevelUpPerformed in interface SymbolTable.SymbolTableListener


NewVariablePerformed

public void NewVariablePerformed(Object name)
Specified by:
NewVariablePerformed in interface SymbolTable.SymbolTableListener


ValueChangedPerformed

public void ValueChangedPerformed(Object name)
Specified by:
ValueChangedPerformed in interface SymbolTable.SymbolTableListener


getChild

public Object getChild(Object node,
                       int index)
Returns the child of node at index i.


getChildCount

public int getChildCount(Object node)
Returns the number of children of node.


getChildren

protected Object[] getChildren(Object node)


getColumnClass

public Class getColumnClass(int column)
Returns the type for column number column.
Specified by:
getColumnClass in interface TreeTableModel
Overrides:
getColumnClass in interface AbstractTreeTableModel


getColumnCount

public int getColumnCount()
Returns the number ofs availible column.
Specified by:
getColumnCount in interface TreeTableModel


getColumnName

public String getColumnName(int column)
Returns the name for column number column.
Specified by:
getColumnName in interface TreeTableModel


getValueAt

public Object getValueAt(Object node,
                         int column)
Returns the value of the particular column for a treenode.
Specified by:
getValueAt in interface TreeTableModel


modelUpdate

public void modelUpdate(int l)