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.PivotPoint = PivotPoint.Center;
38 _imageFocus.PositionUsesPivotPoint = true;
39 _imageFocus.Name = _name;
48 public Direction FocusDirection
50 get { return _direction; }
51 set { _direction = value; }
57 set { _name = value; }
60 public string ImageName
62 get { return _imageName; }
63 set { _imageName = value; }
66 public Position ParentOrigin
75 _parentOrigin = value;
76 _imageFocus.ParentOrigin = _parentOrigin;
82 get { return _initSize; }
83 set { _initSize = value; }
86 public Size TargetSize
88 get { return _targetSize; }
89 set { _targetSize = value; }
92 public float KeyFrameStart
94 get { return _keyFrameStart; }
95 set { _keyFrameStart = value; }
98 public float KeyFrameEnd
100 get { return _keyFrameEnd; }
101 set { _keyFrameEnd = value; }
104 public ImageView ImageItem
106 get { return _imageFocus; }