|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.viz.data.BaseViz
org.problets.domain.viz.data.AggregateBaseViz
org.problets.domain.viz.data.control.abstraction.BlockViz
public class BlockViz
Draws the rectangle in which an ActivationRecord is displayed.
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 | |
---|---|
BlockViz(ActivationRecord inModel,
AggregateBaseViz inParentViz)
|
Method Summary | |
---|---|
void |
addChild(BlockViz tmpBlockViz)
Adds a child to this block or its descendant as appropriate, used by stackviz |
void |
deleteLastChild()
Deletes a child of the current block or of its descendants |
void |
deregisterChannel(Channel inChannel)
Passing up the channel to be deregistered by the ChannelManager |
int |
draw(java.awt.Graphics g,
java.awt.Font regFont,
java.awt.FontMetrics regFontMetric,
int inTopLeftX,
int inTopLeftY,
int inWidth)
This method is called instead of the paintComponent() method. |
AbstractVarViz |
findInAncestors(AbstractVarModel inModel)
Given a variable, looks for it in this block and its parents until found |
AbstractVarViz |
findInDescendants(AbstractVarModel inModel)
Given a variable to which a pointer is pointing, look for it in the embedded scopes and return its visualization, if found |
static void |
main(java.lang.String[] args)
|
void |
registerChannel(Channel inChannel)
Passing up the channel to be registered by the ChannelManager |
void |
respond(int xMouse,
int yMouse)
Responds to mouse events on the object |
void |
update()
Broadcast call for updating visualization objects |
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 |
---|
public BlockViz(ActivationRecord inModel, AggregateBaseViz inParentViz)
Method Detail |
---|
public int draw(java.awt.Graphics g, java.awt.Font regFont, java.awt.FontMetrics regFontMetric, int inTopLeftX, int inTopLeftY, int inWidth)
BaseViz
g
- Graphics context on which to draw the visualizationpublic void respond(int xMouse, int yMouse)
BaseViz
public AbstractVarViz findInAncestors(AbstractVarModel inModel)
findInAncestors
in class AggregateBaseViz
public AbstractVarViz findInDescendants(AbstractVarModel inModel)
findInDescendants
in class AggregateBaseViz
public void update()
update
in class BaseViz
public void registerChannel(Channel inChannel)
registerChannel
in class AggregateBaseViz
public void deregisterChannel(Channel inChannel)
deregisterChannel
in class AggregateBaseViz
public void addChild(BlockViz tmpBlockViz)
public void deleteLastChild()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |