source: trunk/src/org/expeditee/gio/gesture/data/NavigateTextGestureData.java@ 1532

Last change on this file since 1532 was 1532, checked in by bnemhaus, 4 years ago

New feature: when creating a frameset, if the item being used is linked and you hold shift, it will use the items on the linked frame to populate the zero frame of the new frameset

File size: 928 bytes
Line 
1package org.expeditee.gio.gesture.data;
2
3public class NavigateTextGestureData extends ItemSpecificGestureData {
4
5 public enum NavigateTo {
6 PREVIOUS_CHARACTER,
7 NEXT_CHARACTER,
8 PREVIOUS_WORD,
9 NEXT_WORD,
10 ABOVE_LINE,
11 BELOW_LINE,
12 LINE_END,
13 LINE_HOME,
14 PARAGRAPH_END,
15 PARAGRAPH_HOME,
16 NEXT_TEXT_ITEM,
17 PREVIOUS_TEXT_ITEM
18 }
19
20 private NavigateTo _navigateTo;
21 private boolean _selecting;
22
23 public NavigateTextGestureData(NavigateTo navigateTo, boolean selecting)
24 {
25 super(false);
26 _navigateTo = navigateTo;
27 _selecting = selecting;
28 }
29
30 public NavigateTextGestureData(NavigateTextGestureData other)
31 {
32 super(other);
33 _navigateTo = other._navigateTo;
34 _selecting = other._selecting;
35 }
36
37 public NavigateTo getNavigateTo()
38 {
39 return _navigateTo;
40 }
41
42 public boolean getSelecting()
43 {
44 return _selecting;
45 }
46
47 @Override
48 public GestureData clone()
49 {
50 return new NavigateTextGestureData(this);
51 }
52}
Note: See TracBrowser for help on using the repository browser.