gishur.graph.gui
Class GraphElementPropertyActor

java.lang.Object
  |
  +--gishur.graph.gui.GraphElementPropertyActor
All Implemented Interfaces:
ContextActor

public class GraphElementPropertyActor
extends java.lang.Object
implements ContextActor

A ContextActor, that lets a user edit the properties of a GraphElement (that must be stored at the context DrawAtom).

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
GraphElementPropertyActor(DrawAtom drw)
          Constructs a new GraphElementPropertyActor using properties set on the given DrawAtom.
GraphElementPropertyActor(DrawAtom drw, boolean new_visible)
          Constructs a new GraphElementPropertyActor using properties set on the given DrawAtom.
 
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
 

Constructor Detail

GraphElementPropertyActor

public GraphElementPropertyActor(DrawAtom drw,
                                 boolean new_visible)
Constructs a new GraphElementPropertyActor using properties set on the given DrawAtom.
Parameters:
drw - the DrawAtom where to read properties from
new_visible - if true, the user may add new properties.

GraphElementPropertyActor

public GraphElementPropertyActor(DrawAtom drw)
Constructs a new GraphElementPropertyActor using properties set on the given DrawAtom.
Parameters:
drw - the DrawAtom where to read properties from
Method Detail

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 selected
context - the DrawAtom that is the context
context_element - the actual context element name of the given context DrawAtom.