2 using Tizen.NUI.UIComponents;
3 using Tizen.NUI.Constants;
10 private string _name; // Name used for FocusData object (mainly to differentiate key frame animation )
11 private string _imageName; // Image File Name (to be loaded from disk) used for ImageView used in key frame animation
12 private Position _parentOrigin; // ParentOrigin applied to ImageView
13 private Size _initSize; // InitSize used for key frame animation
14 private Size _targetSize; // TargetSize used for key frame animation
15 private float _keyFrameStart; // KeyFrameStart used for key frame animation
16 private float _keyFrameEnd; // KeyFrameEnd used for key frame animation
17 private Direction _direction; // Direction used for key frame animation
18 private ImageView _imageFocus; // ImageView used in key frame animation
20 // Initialize FocusData used for key frame animation
21 public FocusData(string name, string imageName, Direction direction, Position parentOrigin, Size initSize,
22 Size targetSize, float keyFrameStart, float keyFrameEnd)
25 _imageName = imageName;
26 _parentOrigin = parentOrigin;
28 _targetSize = targetSize;
29 _keyFrameStart = keyFrameStart;
30 _keyFrameEnd = keyFrameEnd;
31 _direction = direction;
33 _imageFocus = new ImageView(Constants.ImageResourcePath + "/focuseffect/" + _imageName); // Target
35 _imageFocus.ParentOrigin = _parentOrigin;
36 _imageFocus.AnchorPoint = AnchorPoint.Center;
37 _imageFocus.Name = _name;
46 public Direction FocusDirection
48 get { return _direction; }
49 set { _direction = value; }
55 set { _name = value; }
58 public string ImageName
60 get { return _imageName; }
61 set { _imageName = value; }
64 public Position ParentOrigin
73 _parentOrigin = value;
74 _imageFocus.ParentOrigin = _parentOrigin;
80 get { return _initSize; }
81 set { _initSize = value; }
84 public Size TargetSize
86 get { return _targetSize; }
87 set { _targetSize = value; }
90 public float KeyFrameStart
92 get { return _keyFrameStart; }
93 set { _keyFrameStart = value; }
96 public float KeyFrameEnd
98 get { return _keyFrameEnd; }
99 set { _keyFrameEnd = value; }
102 public ImageView ImageItem
104 get { return _imageFocus; }