Package uk.ac.qmul.eecs.ccmi.xmlparser
Interface DiagramUpdater
-
- All Known Implementing Classes:
- LocalDiagramUpdater
public interface DiagramUpdaterThis interface must be implemented by classes who implement a strategy for changing the diagram model. Doing this through an interface allows interchangeability of strategies. This comes handy for eventual further implementations of a network-based real time sharing system. So the network client can implement this interface and, instead of directly changing the diagram, it can send messages to a server and change it accordingly to the server reply. All in a transparent way to the classes which are in charge of editing the diagram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddEdge(Edge edge)voidaddNode(Node node)voidaddProperty(Node node, NodeProperty nodeProperty, java.lang.String proertyValue)voiddelete(HierarchyItem item)voidrename(HierarchyItem item, java.lang.String newName)voidsetArrowHead(EdgeNode node, java.lang.String arrowHead)voidsetLabel(EdgeNode node, java.lang.String label)voidsetModifiers(PropertyValue propertyValue, java.util.List<java.lang.Integer> modifiers)
-
-
-
Method Detail
-
addNode
void addNode(Node node)
-
addEdge
void addEdge(Edge edge)
-
addProperty
void addProperty(Node node, NodeProperty nodeProperty, java.lang.String proertyValue)
-
rename
void rename(HierarchyItem item, java.lang.String newName)
-
delete
void delete(HierarchyItem item)
-
setLabel
void setLabel(EdgeNode node, java.lang.String label)
-
setArrowHead
void setArrowHead(EdgeNode node, java.lang.String arrowHead)
-
setModifiers
void setModifiers(PropertyValue propertyValue, java.util.List<java.lang.Integer> modifiers)
-
-