summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/elements/WhiteboardUpdateOperation.java')
-rw-r--r--src/com/isode/stroke/elements/WhiteboardUpdateOperation.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/WhiteboardUpdateOperation.java b/src/com/isode/stroke/elements/WhiteboardUpdateOperation.java
new file mode 100644
index 0000000..9ca5e32
--- /dev/null
+++ b/src/com/isode/stroke/elements/WhiteboardUpdateOperation.java
@@ -0,0 +1,43 @@
+/* Copyright (c) 2016, Isode Limited, London, England.
+ * All rights reserved.
+ *
+ * Acquisition and use of this software and related materials for any
+ * purpose requires a written license agreement from Isode Limited,
+ * or a written license from an organisation licensed by Isode Limited
+ * to grant such a license.
+ *
+ */
+package com.isode.stroke.elements;
+
+public class WhiteboardUpdateOperation extends WhiteboardOperation {
+
+ private WhiteboardElement element_;
+ private int newPos_ = 0;
+
+ public WhiteboardUpdateOperation() {
+ // Empty Constructor
+ }
+
+ public WhiteboardUpdateOperation(WhiteboardUpdateOperation other) {
+ super(other);
+ this.element_ = other.element_;
+ this.newPos_ = other.newPos_;
+ }
+
+ public WhiteboardElement getElement() {
+ return element_;
+ }
+
+ public void setElement(WhiteboardElement element) {
+ element_ = element;
+ }
+
+ public int getNewPos() {
+ return newPos_;
+ }
+
+ public void setNewPos(int newPos) {
+ newPos_ = newPos;
+ }
+
+}