edu.ksu.cis.bnj.gui.components
Class VariableState
java.lang.Object
salvo.jesus.graph.visual.GraphPanelState
salvo.jesus.graph.visual.GraphPanelVertexState
edu.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
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 |
gpanel
protected salvo.jesus.graph.visual.GraphPanel gpanel
vGraph
protected salvo.jesus.graph.visual.VisualGraph vGraph
owner
protected NodeManager owner
counter
protected int counter
VariableState
public VariableState(NodeManager owner,
salvo.jesus.graph.visual.GraphPanel panel)
- Parameters:
panel
-
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)