source: trunk/src/org/expeditee/gio/gesture/data/FormatGestureData.java@ 1097

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: 821 bytes
Line 
1package org.expeditee.gio.gesture.data;
2
3import org.expeditee.gui.DisplayController;
4import org.expeditee.gui.Frame;
5
6public class FormatGestureData extends GestureData {
7
8 private Frame _frame;
9 private boolean _horizontal;
10
11 public FormatGestureData(boolean horizontal)
12 {
13 super();
14 _frame = DisplayController.getCurrentFrame();
15 _horizontal = horizontal;
16 }
17
18 public FormatGestureData(Frame frame, boolean horizontal)
19 {
20 super();
21 _frame = frame;
22 _horizontal = horizontal;
23 }
24
25 public FormatGestureData(FormatGestureData other)
26 {
27 super(other);
28 _frame = other._frame;
29 _horizontal = other._horizontal;
30 }
31
32 public Frame getFrame()
33 {
34 return _frame;
35 }
36
37 public boolean getHorizontal()
38 {
39 return _horizontal;
40 }
41
42 public FormatGestureData clone()
43 {
44 return new FormatGestureData(this);
45 }
46
47}
Note: See TracBrowser for help on using the repository browser.