comparison java/src/uk/ac/qmul/eecs/ccmi/simpletemplate/PropertyView.java @ 0:78b7fc5391a2

first import, outcome of NIME 2014 hackaton
author Fiore Martin <f.martin@qmul.ac.uk>
date Tue, 08 Jul 2014 16:28:59 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:78b7fc5391a2
1 /*
2 CCmI Editor - A Collaborative Cross-Modal Diagram Editing Tool
3
4 Copyright (C) 2011 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
20 package uk.ac.qmul.eecs.ccmi.simpletemplate;
21
22 import uk.ac.qmul.eecs.ccmi.simpletemplate.SimpleShapeNode.Position;
23 import uk.ac.qmul.eecs.ccmi.simpletemplate.SimpleShapeNode.ShapeType;
24
25 /**
26 * This immutable class represents the view associated with the property type
27 * associated with it in a {@code NodeProperties} instance.
28 *
29 * */
30 public class PropertyView {
31 public PropertyView(Position position, ShapeType shapeType) {
32 super();
33 this.position = position;
34 this.shapeType = shapeType;
35 }
36
37 /* Getters */
38 public SimpleShapeNode.Position getPosition() {
39 return position;
40 }
41
42 public SimpleShapeNode.ShapeType getShapeType() {
43 return shapeType;
44 }
45
46 private SimpleShapeNode.Position position;
47 private SimpleShapeNode.ShapeType shapeType;
48 }