summaryrefslogtreecommitdiffstats
blob: 9ca5e32d0d1d57fd2b0e039413e6dfa51587ff6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
    }

}