gishur.gui2.handler
Interface ContextActor
- All Known Implementing Classes:
- GraphElementPropertyActor, GraphPropertyActor, RemoveGraphElementActor, SelectElementContextActor
- public interface ContextActor
An interface to define action-methods for certain context-menu entries.
ContextActor
should be stored at the DrawProperties
of the
appropriate DrawAtoms
as action-entries for a
ContextHandler
.
- 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. |
doMenuAction
public void doMenuAction(java.lang.String cmd,
DrawAtom context,
java.lang.String context_element)
- Does the action of a special context menu.
- 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
.