edu.ksu.cis.bnj.gui.components
Class VariableState

java.lang.Object
  extended bysalvo.jesus.graph.visual.GraphPanelState
      extended bysalvo.jesus.graph.visual.GraphPanelVertexState
          extended byedu.ksu.cis.bnj.gui.components.VariableState
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChanceVariableState, DecisionVariableState, UtilityVariableState

public abstract class VariableState
extends salvo.jesus.graph.visual.GraphPanelVertexState

Author:
Roby Joehanes
See Also:
Serialized Form

Field Summary
protected  int counter
           
protected  salvo.jesus.graph.visual.GraphPanel gpanel
           
protected  NodeManager owner
           
protected  salvo.jesus.graph.visual.VisualGraph vGraph
           
 
Constructor Summary
VariableState(NodeManager owner, salvo.jesus.graph.visual.GraphPanel panel)
           
 
Method Summary
protected abstract  BBNNode createNode(BBNGraph graph)
           
 salvo.jesus.graph.visual.GraphPanelState mousePressed(java.awt.event.MouseEvent e)
          Creates a new vertex on the specified coordinate.
 void resetCounter()
           
protected  void setSelectedNodes(salvo.jesus.graph.visual.VisualVertex vVertex)
           
 
Methods inherited from class salvo.jesus.graph.visual.GraphPanelVertexState
paint
 
Methods inherited from class salvo.jesus.graph.visual.GraphPanelState
informTargetVisualGraphComponentOfKeyEvent, informTargetVisualGraphComponentOfMouseEvent, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, recommendState, setGraphPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gpanel

protected salvo.jesus.graph.visual.GraphPanel gpanel

vGraph

protected salvo.jesus.graph.visual.VisualGraph vGraph

owner

protected NodeManager owner

counter

protected int counter
Constructor Detail

VariableState

public VariableState(NodeManager owner,
                     salvo.jesus.graph.visual.GraphPanel panel)
Parameters:
panel -
Method Detail

mousePressed

public salvo.jesus.graph.visual.GraphPanelState mousePressed(java.awt.event.MouseEvent e)
Creates a new vertex on the specified coordinate.


setSelectedNodes

protected void setSelectedNodes(salvo.jesus.graph.visual.VisualVertex vVertex)

resetCounter

public void resetCounter()

createNode

protected abstract BBNNode createNode(BBNGraph graph)