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