1 | package org.expeditee.gio.gesture.data;
|
---|
2 |
|
---|
3 | import org.expeditee.core.Point;
|
---|
4 |
|
---|
5 | public class PickUpGestureData extends SelectAreaGestureData {
|
---|
6 |
|
---|
7 | protected boolean _copy;
|
---|
8 | protected boolean _extrude;
|
---|
9 | protected boolean _inheritAttributes;
|
---|
10 |
|
---|
11 | public PickUpGestureData(Point moveTo, Point draggedFrom, boolean copy, boolean inheritAttributes)
|
---|
12 | {
|
---|
13 | super(moveTo, draggedFrom, false);
|
---|
14 | _copy = copy;
|
---|
15 | _extrude = false;
|
---|
16 | _inheritAttributes = inheritAttributes;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public PickUpGestureData(boolean copy, boolean extrude, boolean inheritAttributes)
|
---|
20 | {
|
---|
21 | super();
|
---|
22 | _copy = copy;
|
---|
23 | _extrude = extrude;
|
---|
24 | _inheritAttributes = inheritAttributes;
|
---|
25 | }
|
---|
26 |
|
---|
27 | public PickUpGestureData(boolean copy, boolean extrude)
|
---|
28 | {
|
---|
29 | this(copy, extrude, false);
|
---|
30 | }
|
---|
31 |
|
---|
32 | public PickUpGestureData(boolean copy)
|
---|
33 | {
|
---|
34 | this(copy, false);
|
---|
35 | }
|
---|
36 |
|
---|
37 | public PickUpGestureData(PickUpGestureData other)
|
---|
38 | {
|
---|
39 | super(other);
|
---|
40 | if (other != null) {
|
---|
41 | _copy = other._copy;
|
---|
42 | _extrude = other._extrude;
|
---|
43 | _inheritAttributes = other._inheritAttributes;
|
---|
44 | }
|
---|
45 | }
|
---|
46 |
|
---|
47 | public boolean getCopy()
|
---|
48 | {
|
---|
49 | return _copy;
|
---|
50 | }
|
---|
51 |
|
---|
52 | public boolean getExtrude()
|
---|
53 | {
|
---|
54 | return _extrude;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public boolean getInheritAttributes()
|
---|
58 | {
|
---|
59 | return _inheritAttributes;
|
---|
60 | }
|
---|
61 |
|
---|
62 | public PickUpGestureData clone()
|
---|
63 | {
|
---|
64 | return new PickUpGestureData(this);
|
---|
65 | }
|
---|
66 | }
|
---|