org.problets.domain.viz.data.variable
Class AbstractVarViz

java.lang.Object
  extended by org.problets.domain.viz.data.BaseViz
      extended by org.problets.domain.viz.data.variable.AbstractVarViz
All Implemented Interfaces:
VizConstants
Direct Known Subclasses:
PtrViz, VarViz

public abstract class AbstractVarViz
extends BaseViz

Used as a base of the visualization of all the variables

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
AbstractVarViz(AbstractVarModel inModel)
           
 
Method Summary
 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.
 int getMidY()
           
 AbstractVarModel getModel()
           
 void respond(int xMouse, int yMouse)
          Responds to mouse events on the object
 
Methods inherited from class org.problets.domain.viz.data.BaseViz
getLeftX, getWidth, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVarViz

public AbstractVarViz(AbstractVarModel inModel)
Method Detail

draw

public int draw(java.awt.Graphics g,
                java.awt.Font regFont,
                java.awt.FontMetrics regFontMetric,
                int inTopLeftX,
                int inTopLeftY,
                int inWidth)
Description copied from class: BaseViz
This method is called instead of the paintComponent() method. It draws the visualization in the provided Graphics context.

Parameters:
g - Graphics context on which to draw the visualization

respond

public void respond(int xMouse,
                    int yMouse)
Description copied from class: BaseViz
Responds to mouse events on the object


getModel

public AbstractVarModel getModel()

getMidY

public int getMidY()