org.problets.domain.viz.data.variable
Class AbstractVarViz
java.lang.Object
org.problets.domain.viz.data.BaseViz
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVarViz
public AbstractVarViz(AbstractVarModel inModel)
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()