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:
535 bytes
|
Line | |
---|
1 | package org.expeditee.gio.gesture.data;
|
---|
2 |
|
---|
3 | import org.expeditee.core.Point;
|
---|
4 |
|
---|
5 | public class ZoomGestureData extends GestureData {
|
---|
6 |
|
---|
7 | private float _scaleFactor;
|
---|
8 |
|
---|
9 | public ZoomGestureData(Point centreOfZoom, float scaleFactor)
|
---|
10 | {
|
---|
11 | super(centreOfZoom);
|
---|
12 | _scaleFactor = scaleFactor;
|
---|
13 | }
|
---|
14 |
|
---|
15 | public ZoomGestureData(ZoomGestureData other) {
|
---|
16 | super(other);
|
---|
17 | _scaleFactor = other._scaleFactor;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public float getScaleFactor()
|
---|
21 | {
|
---|
22 | return _scaleFactor;
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public GestureData clone()
|
---|
27 | {
|
---|
28 | return new ZoomGestureData(this);
|
---|
29 | }
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.