Package uk.ac.qmul.eecs.ccmi.xmlparser
Class LocalDiagramUpdater
- java.lang.Object
-
- uk.ac.qmul.eecs.ccmi.xmlparser.LocalDiagramUpdater
-
- All Implemented Interfaces:
- DiagramUpdater
public class LocalDiagramUpdater extends java.lang.Object implements DiagramUpdater
An implementation ofDiagramUpdater
that immediately execute the commands on the local instance ofDiagram
.
-
-
Constructor Summary
Constructors Constructor and Description LocalDiagramUpdater(Diagram diagram)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addEdge(Edge edge)
void
addNode(Node node)
void
addProperty(Node node, NodeProperty property, java.lang.String propertyValue)
void
delete(HierarchyItem item)
void
rename(HierarchyItem item, java.lang.String newName)
void
setArrowHead(EdgeNode edgeNode, java.lang.String arrowHead)
void
setLabel(EdgeNode edgeNode, java.lang.String label)
void
setModifiers(PropertyValue propertyValue, java.util.List<java.lang.Integer> modifiers)
-
-
-
Constructor Detail
-
LocalDiagramUpdater
public LocalDiagramUpdater(Diagram diagram)
Constructor- Parameters:
diagram
- the diagram the commands will be executed on
-
-
Method Detail
-
addNode
public void addNode(Node node)
- Specified by:
addNode
in interfaceDiagramUpdater
-
rename
public void rename(HierarchyItem item, java.lang.String newName)
- Specified by:
rename
in interfaceDiagramUpdater
-
delete
public void delete(HierarchyItem item)
- Specified by:
delete
in interfaceDiagramUpdater
-
addEdge
public void addEdge(Edge edge)
- Specified by:
addEdge
in interfaceDiagramUpdater
-
addProperty
public void addProperty(Node node, NodeProperty property, java.lang.String propertyValue)
- Specified by:
addProperty
in interfaceDiagramUpdater
-
setLabel
public void setLabel(EdgeNode edgeNode, java.lang.String label)
- Specified by:
setLabel
in interfaceDiagramUpdater
-
setArrowHead
public void setArrowHead(EdgeNode edgeNode, java.lang.String arrowHead)
- Specified by:
setArrowHead
in interfaceDiagramUpdater
-
setModifiers
public void setModifiers(PropertyValue propertyValue, java.util.List<java.lang.Integer> modifiers)
- Specified by:
setModifiers
in interfaceDiagramUpdater
-
-