2 using Tizen.NUI.UIComponents;
3 using Tizen.NUI.BaseComponents;
4 using Tizen.NUI.Constants;
11 private string _name; // Name used for FocusData object (mainly to differentiate key frame animation )
12 private string _imageName; // Image File Name (to be loaded from disk) used for ImageView used in key frame animation
13 private Position _parentOrigin; // ParentOrigin applied to ImageView
14 private Size _initSize; // InitSize used for key frame animation
15 private Size _targetSize; // TargetSize used for key frame animation
16 private float _keyFrameStart; // KeyFrameStart used for key frame animation
17 private float _keyFrameEnd; // KeyFrameEnd used for key frame animation
18 private Direction _direction; // Direction used for key frame animation
19 private ImageView _imageFocus; // ImageView used in key frame animation
21 // Initialize FocusData used for key frame animation
22 public FocusData(string name, string imageName, Direction direction, Position parentOrigin, Size initSize,
23 Size targetSize, float keyFrameStart, float keyFrameEnd)
26 _imageName = imageName;
27 _parentOrigin = parentOrigin;
29 _targetSize = targetSize;
30 _keyFrameStart = keyFrameStart;
31 _keyFrameEnd = keyFrameEnd;
32 _direction = direction;
34 _imageFocus = new ImageView(Constants.ImageResourcePath + "/focuseffect/" + _imageName); // Target
36 _imageFocus.ParentOrigin = _parentOrigin;
37 _imageFocus.AnchorPoint = AnchorPoint.Center;
38 _imageFocus.Name = _name;
47 public Direction FocusDirection
49 get { return _direction; }
50 set { _direction = value; }
56 set { _name = value; }
59 public string ImageName
61 get { return _imageName; }
62 set { _imageName = value; }
65 public Position ParentOrigin
74 _parentOrigin = value;
75 _imageFocus.ParentOrigin = _parentOrigin;
81 get { return _initSize; }
82 set { _initSize = value; }
85 public Size TargetSize
87 get { return _targetSize; }
88 set { _targetSize = value; }
91 public float KeyFrameStart
93 get { return _keyFrameStart; }
94 set { _keyFrameStart = value; }
97 public float KeyFrameEnd
99 get { return _keyFrameEnd; }
100 set { _keyFrameEnd = value; }
103 public ImageView ImageItem
105 get { return _imageFocus; }