Last change
on this file since 1097 was 1097, checked in by davidb, 6 years ago |
Newly structured files from Corey's work on logic/graphics separation
|
File size:
827 bytes
|
Line | |
---|
1 | package org.expeditee.gio.gesture.data;
|
---|
2 |
|
---|
3 | public class InsertStringGestureData extends ItemSpecificGestureData {
|
---|
4 |
|
---|
5 | private String _string;
|
---|
6 | private boolean _shiftDown; // Required for Shift+Tab
|
---|
7 |
|
---|
8 | public InsertStringGestureData(String string, boolean shiftDown)
|
---|
9 | {
|
---|
10 | super();
|
---|
11 | _string = string;
|
---|
12 | _shiftDown = shiftDown;
|
---|
13 | }
|
---|
14 |
|
---|
15 | public InsertStringGestureData(char c, boolean shiftDown)
|
---|
16 | {
|
---|
17 | super();
|
---|
18 | _string = new String("" + c);
|
---|
19 | _shiftDown = shiftDown;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public InsertStringGestureData(InsertStringGestureData other)
|
---|
23 | {
|
---|
24 | super(other);
|
---|
25 | _string = new String(other._string);
|
---|
26 | _shiftDown = other._shiftDown;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public String getString()
|
---|
30 | {
|
---|
31 | return _string;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public boolean isShiftDown()
|
---|
35 | {
|
---|
36 | return _shiftDown;
|
---|
37 | }
|
---|
38 |
|
---|
39 | @Override
|
---|
40 | public GestureData clone()
|
---|
41 | {
|
---|
42 | return new InsertStringGestureData(this);
|
---|
43 | }
|
---|
44 |
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.