summaryrefslogtreecommitdiffstats
blob: 487aec031bee89b4f2383c585a1735a72cfe4a27 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*  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 WhiteboardTextElement extends WhiteboardElement {

    private final int x_, y_;
    private int size_;
    private String text_;
    private WhiteboardColor color_;

    public WhiteboardTextElement(int x, int y) {
        x_ = x;
        y_ = y;
    }
    
    public void setText(String text) {
        text_ = text;
    }

    public String getText() {
        return text_;
    }

    public int getX() {
        return x_;
    }

    public int getY() {
        return y_;
    }

    public WhiteboardColor getColor() {
        return color_;
    }

    public void setColor(WhiteboardColor color) {
        color_ = color;
    }

    public int getSize() {
        return size_;
    }

    public void setSize(int size) {
        size_ = size;
    }
    
    @Override
    public void accept(WhiteboardElementVisitor visitor) {
        visitor.visit(this);
    }

}