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
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 |
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 propertiesdrw
- the DrawAtom
where to read properties fromnew_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 propertiesdrw
- the DrawAtom
where to read properties fromnew_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 propertiesdrw
- 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 propertiesdrw
- the DrawAtom
where to read properties fromnew_visible
- if true
, the user may add new properties.
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
.