ANIMATOR : Add boilerplate 67/22067/1
authorseongwon.shim <seongwon.shim@samsung.com>
Thu, 29 May 2014 06:50:17 +0000 (15:50 +0900)
committerseongwon.shim <seongwon.shim@samsung.com>
Thu, 29 May 2014 06:55:25 +0000 (15:55 +0900)
Add bolierplate.
Bug fix for splitKeyframe

Change-Id: I3246b47225c75447cd0b3fca8acb7fef41593a0b
Signed-off-by: seongwon.shim <seongwon.shim@samsung.com>
16 files changed:
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/model/AnimatorKeyframe.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/model/AnimatorSelector.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/model/part/AnimatorPagePart.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/TimelineClipboard.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/TimelineContextMenu.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/AddKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/AddPredefinedKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/CopyKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/CutKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/DeleteKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/PasteKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/action/ZOrderKeyFrameAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/header/AnimatorGroupToolTip.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/widget/KeyFrame.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/widget/KeyFrameComponent.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/animator/ui/views/timeline/widget/KeyFrameUnit.java

index 2e8f217..1627771 100644 (file)
@@ -605,7 +605,7 @@ public class AnimatorKeyframe extends AnimatorModel {
         }
         
         if (nextFrame != null) {
-            if (nextFrame.hasSamePropertyValue(frame)) {
+            if (frame.getPropertySize() == 0 || nextFrame.hasSamePropertyValue(frame)) {
                AnimatorKeyframe nextKeyframe = null;
                if(!removedKeyframes.isEmpty()) {
                        nextKeyframe = removedKeyframes.poll();
index 1902689..ec6928f 100644 (file)
@@ -609,16 +609,18 @@ public class AnimatorSelector extends AnimatorModel {
                                                currentKeyframe.getChildIndex(currentFrame) == 0) {
                                        //If previousFrame is last frame in expectedPreviousKeyframe
                                        //need to merge or split
-                                       if(!previousFrame.hasSamePropertyValue(currentFrame)) {
-                                               if(!previousFrame.getParent().equals(currentFrame.getParent())) {
-                                               currentKeyframe.removeChild(currentFrame, true);
-                                               expectedPreviousKeyframe.addChild(currentFrame, true);
-                                               expectedPreviousKeyframe.addName(currentKeyframe.getName());
-                                               if(currentKeyframe.getChildrenSize() == 0) {
-                                                       removedKeyframes.add(currentKeyframe);
-                                               }
-                                               result = true;
-                                       }
+                                       if(currentFrame.getPropertySize() != 0 && previousFrame.getPropertySize() != 0) {
+                                               if(!previousFrame.hasSamePropertyValue(currentFrame)) {
+                                                       if(!previousFrame.getParent().equals(currentFrame.getParent())) {
+                                                               currentKeyframe.removeChild(currentFrame, true);
+                                                               expectedPreviousKeyframe.addChild(currentFrame, true);
+                                                               expectedPreviousKeyframe.addName(currentKeyframe.getName());
+                                                               if(currentKeyframe.getChildrenSize() == 0) {
+                                                                       removedKeyframes.add(currentKeyframe);
+                                                               }
+                                                               result = true;
+                                                       }
+                                               }
                                }
                                } else {
                                        //previousFrame is one of middle frame in expectedPreviousKeyframe
index e6e7519..aa9c5a1 100644 (file)
@@ -1,3 +1,26 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+
 package org.tizen.webuibuilder.animator.model.part;
 
 import java.util.ArrayList;
index c813b1f..59beca9 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline;\r
index e646eec..a068ef2 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline;\r
index 095b06b..434fbfa 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index a3f47a3..818d125 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index 3ab203e..362ddc5 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index 5b92d83..45f430f 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index 3df4170..a6f95f1 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index bf908e6..03d7d16 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index ff3a685..1c084a0 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.action;\r
index a2bd7d9..6938400 100644 (file)
@@ -1,3 +1,24 @@
+/*\r
+ * UI Builder\r
+ *\r
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ * Contributors:\r
+ * - S-Core Co., Ltd\r
+ *\r
+ */\r
 \r
 \r
 package org.tizen.webuibuilder.animator.ui.views.timeline.header;\r
index a8d265e..5493ddf 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 
 package org.tizen.webuibuilder.animator.ui.views.timeline.widget;
index 9dddf4f..e2a4be3 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 
 package org.tizen.webuibuilder.animator.ui.views.timeline.widget;
index a3e8914..e8f6042 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 
 package org.tizen.webuibuilder.animator.ui.views.timeline.widget;