gishur.graph.gui
Class GraphPropertyActor

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

public class GraphPropertyActor
extends java.lang.Object
implements ContextActor

A ContextActor, that lets a user edit the properties of a GraphElement stored at its DisplayObject.

Version:
1.0
Author:
Thomas Wolf

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

GraphPropertyActor

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

GraphPropertyActor

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

GraphPropertyActor

public GraphPropertyActor(DisplayObject dgraph,
                          DrawAtom drw)
Constructs a new GraphPropertyActor using properties set on the given DrawAtom.
Parameters:
dgraph - the DisplayObject to edit properties
drw - the DrawAtom where to read properties from

GraphPropertyActor

public GraphPropertyActor(GraphElement source,
                          DrawAtom drw)
Constructs a new GraphPropertyActor using properties set on the given DrawAtom.
Parameters:
source - the GraphElement to edit properties
drw - the DrawAtom where to read properties from
new_visible - if true, the user may add new properties.
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.