2 using Tizen.NUI.Constants;
9 private string _name; // Name used for FocusData object (mainly to differentiate key frame animation )
10 private string _imageName; // Image File Name (to be loaded from disk) used for ImageView used in key frame animation
11 private Position _parentOrigin; // ParentOrigin applied to ImageView
12 private Size _initSize; // InitSize used for key frame animation
13 private Size _targetSize; // TargetSize used for key frame animation
14 private float _keyFrameStart; // KeyFrameStart used for key frame animation
15 private float _keyFrameEnd; // KeyFrameEnd used for key frame animation
16 private Direction _direction; // Direction used for key frame animation
17 private ImageView _imageFocus; // ImageView used in key frame animation
19 // Initialize FocusData used for key frame animation
20 public FocusData(string name, string imageName, Direction direction, Position parentOrigin, Size initSize,
21 Size targetSize, float keyFrameStart, float keyFrameEnd)
24 _imageName = imageName;
25 _parentOrigin = parentOrigin;
27 _targetSize = targetSize;
28 _keyFrameStart = keyFrameStart;
29 _keyFrameEnd = keyFrameEnd;
30 _direction = direction;
32 _imageFocus = new ImageView(Constants.ImageResourcePath + "/focuseffect/" + _imageName); // Target
34 _imageFocus.ParentOrigin = _parentOrigin;
35 _imageFocus.AnchorPoint = AnchorPoint.Center;
36 _imageFocus.Name = _name;
45 public Direction FocusDirection
47 get { return _direction; }
48 set { _direction = value; }
54 set { _name = value; }
57 public string ImageName
59 get { return _imageName; }
60 set { _imageName = value; }
63 public Position ParentOrigin
72 _parentOrigin = value;
73 _imageFocus.ParentOrigin = _parentOrigin;
79 get { return _initSize; }
80 set { _initSize = value; }
83 public Size TargetSize
85 get { return _targetSize; }
86 set { _targetSize = value; }
89 public float KeyFrameStart
91 get { return _keyFrameStart; }
92 set { _keyFrameStart = value; }
95 public float KeyFrameEnd
97 get { return _keyFrameEnd; }
98 set { _keyFrameEnd = value; }
101 public ImageView ImageItem
103 get { return _imageFocus; }