gishur.graph.gui
Class RemoveGraphElementActor
java.lang.Object
|
+--gishur.graph.gui.RemoveGraphElementActor
- All Implemented Interfaces:
- ContextActor
- public class RemoveGraphElementActor
- extends java.lang.Object
- implements ContextActor
A ContextActor
that removes Nodes
and Edges
of a Graph
. The Graph
is given via a ModelController
that controls its visualization or via a special visualization (as
DisplayGraph
). When the menu-command is executed, the Edge
or Node
controlled by the given context-DrawAtom
will be
removed off the Graph
.
- Version:
- 1.0
- Author:
- Thomas Wolf
Method Summary |
void |
doMenuAction(java.lang.String cmd,
DrawAtom context,
java.lang.String context_element)
Does the action of a special context menu. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveGraphElementActor
public RemoveGraphElementActor(ModelController model)
- Constructs a new
RemoveGraphElementActor
on the Graph
that is source of the given ModelController
.
- Parameters:
model
- the ModelController
controlling the Graph
RemoveGraphElementActor
public RemoveGraphElementActor(DisplayGraph dgraph)
- Constructs a new
RemoveGraphElementActor
on the Graph
that is source of the given DisplayGraph
.
- Parameters:
dgraph
- the DisplayGraph
visualizing the Graph
doMenuAction
public void doMenuAction(java.lang.String cmd,
DrawAtom context,
java.lang.String context_element)
- Does the action of a special context menu.
- Specified by:
doMenuAction
in interface ContextActor
- Parameters:
cmd
- the command string of the MenuItem
selectedcontext
- the DrawAtom
that is the contextcontext_element
- the actual context element name of the given
context DrawAtom
.