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:
863 bytes
|
Line | |
---|
1 | package org.expeditee.gio.gesture.data;
|
---|
2 |
|
---|
3 | import org.expeditee.core.Point;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Gesture data for scale gesture.
|
---|
7 | *
|
---|
8 | * @author cts16
|
---|
9 | */
|
---|
10 | public class ScaleGestureData extends ItemSpecificGestureData {
|
---|
11 |
|
---|
12 | private int _scaleFactor;
|
---|
13 |
|
---|
14 | public ScaleGestureData(int scaleFactor)
|
---|
15 | {
|
---|
16 | super(false);
|
---|
17 | _scaleFactor = scaleFactor;
|
---|
18 | }
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * @param centreOfScale
|
---|
22 | * Position to scale outward from. Should be
|
---|
23 | * null to scale relative to item.
|
---|
24 | *
|
---|
25 | * @param scaleFactor
|
---|
26 | */
|
---|
27 | public ScaleGestureData(Point centreOfScale, int scaleFactor)
|
---|
28 | {
|
---|
29 | super(centreOfScale);
|
---|
30 | _scaleFactor = scaleFactor;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public ScaleGestureData(ScaleGestureData other)
|
---|
34 | {
|
---|
35 | super(other);
|
---|
36 | _scaleFactor = other._scaleFactor;
|
---|
37 | }
|
---|
38 |
|
---|
39 | public int getScaleFactor()
|
---|
40 | {
|
---|
41 | return _scaleFactor;
|
---|
42 | }
|
---|
43 |
|
---|
44 | @Override
|
---|
45 | public GestureData clone()
|
---|
46 | {
|
---|
47 | return new ScaleGestureData(this);
|
---|
48 | }
|
---|
49 |
|
---|
50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.