Lines Matching refs:keyframes
837 private static void dumpKeyframes(Object[] keyframes, String header) {
838 if (keyframes == null || keyframes.length == 0) {
842 int count = keyframes.length;
844 Keyframe keyframe = (Keyframe) keyframes[i];
851 // Load property values holder if there are keyframes defined in it. Otherwise return null.
857 ArrayList<Keyframe> keyframes = null;
869 if (keyframes == null) {
870 keyframes = new ArrayList<Keyframe>();
872 keyframes.add(keyframe);
879 if (keyframes != null && (count = keyframes.size()) > 0) {
880 // make sure we have keyframes at 0 and 1
881 // If we have keyframes with set fractions, add keyframes at start/end
885 Keyframe firstKeyframe = keyframes.get(0);
886 Keyframe lastKeyframe = keyframes.get(count - 1);
892 keyframes.add(keyframes.size(), createNewKeyframe(lastKeyframe, 1));
901 keyframes.add(0, createNewKeyframe(firstKeyframe, 0));
906 keyframes.toArray(keyframeArray);
916 // in fractions and distribute the gap among those keyframes
949 * Utility function to set fractions on keyframes to cover a gap in which the
952 * of .6 spread between two keyframes will be at .2 and .4 beyond the fraction at the
961 * @param keyframes the array of keyframes
966 private static void distributeKeyframes(Keyframe[] keyframes, float gap,
971 keyframes[i].setFraction(keyframes[i-1].getFraction() + increment);