comparison src/uk/ac/qmul/eecs/ccmi/xmlparser/DiagramUpdater.java @ 0:e0ee6ac3a45f

first import
author Fiore Martin <fiore@eecs.qmul.ac.uk>
date Thu, 13 Dec 2012 20:00:21 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e0ee6ac3a45f
1 /*
2 CCmI Diagram Editor for Android
3
4 Copyright (C) 2012 Queen Mary University of London (http://ccmi.eecs.qmul.ac.uk/)
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package uk.ac.qmul.eecs.ccmi.xmlparser;
20
21 import java.util.List;
22
23 /**
24 *
25 * This interface must be implemented by classes who implement a strategy for changing the diagram model.
26 * Doing this through an interface allows interchangeability of strategies.
27 * This comes handy for eventual further implementations of a network-based real time sharing system. So
28 * the network client can implement this interface and, instead of directly changing the diagram, it can send
29 * messages to a server and change it accordingly to the server reply.
30 * All in a transparent way to the classes which are in charge of editing the diagram.
31 *
32 */
33 public interface DiagramUpdater {
34
35 public void addNode(Node node);
36
37 public void addEdge(Edge edge);
38
39 public void addProperty(Node node, NodeProperty nodeProperty, String proertyValue);
40
41 public void rename(HierarchyItem item, String newName);
42
43 public void delete(HierarchyItem item);
44
45 public void setLabel(EdgeNode node, String label);
46
47 public void setArrowHead(EdgeNode node, String arrowHead);
48
49 public void setModifiers(PropertyValue propertyValue, List<Integer> modifiers);
50
51 }