graphlab.gui.plugins.main.core.actions.edge
Class AddEdge

java.lang.Object
  extended by graphlab.main.core.action.AbstractAction
      extended by graphlab.gui.plugins.main.core.actions.edge.AddEdge
All Implemented Interfaces:
PaintHandler, Undoable, Action, Notifiable

public class AddEdge
extends AbstractAction
implements PaintHandler, Undoable

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.main.core.action.AbstractAction
listeningEvents
 
Constructor Summary
AddEdge(BlackBoard bb)
          constructor
 
Method Summary
static Edge doJob(Graph g, Vertex v1, Vertex v2)
           
 void paint(java.awt.Graphics g, java.awt.Component component)
           
 void performJob(java.lang.String name)
          like Action
 void redo(UndoableActionOccuredData uaod)
           
 void undo(UndoableActionOccuredData uaod)
           
 
Methods inherited from class graphlab.main.core.action.AbstractAction
disable, doJob, enable, getBlackBoard, isEnable, setBlackBoard
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddEdge

public AddEdge(BlackBoard bb)
constructor

Parameters:
bb - the BlackBoard of the action
Method Detail

performJob

public void performJob(java.lang.String name)
Description copied from class: AbstractAction
like Action

Specified by:
performJob in class AbstractAction

doJob

public static Edge doJob(Graph g,
                         Vertex v1,
                         Vertex v2)

paint

public void paint(java.awt.Graphics g,
                  java.awt.Component component)
Specified by:
paint in interface PaintHandler

undo

public void undo(UndoableActionOccuredData uaod)
Specified by:
undo in interface Undoable

redo

public void redo(UndoableActionOccuredData uaod)
Specified by:
redo in interface Undoable