private boolean isComplete(long currentTime){ for(Entry<Integer,CompiledPath> e : myAnimationMap.entrySet()){ CompiledPath path = e.getValue(); if(currentTime < path.getEndTime()){ return false; } } return true; }
private boolean isComplete(long currentTime){ for(Entry<Integer,CompiledPath> e : myAnimationMap.entrySet()){ CompiledPath path = e.getValue(); if(currentTime < path.getEndTime()){ return false; } } return true; }
private double findMaxDif(Map<Integer,Double> currentPos){ double maxDif = 0; for(Entry<Integer,CompiledPath> e : myAnimationMap.entrySet()){ CompiledPath path = e.getValue(); int id = e.getKey(); double start = getStart(path); if(start == -1){ continue; } Double cur = currentPos.get(id); if(cur == null){ continue; } double dif = Math.abs(cur - start); if(dif > maxDif){ maxDif = dif; } } return maxDif; }
myRampTimeMillisec = (int)(maxDif*myMaxRampTimeMillisec); InterpolatorFactory linearFact = new LinearInterpolatorFactory(); for(Entry<Integer,CompiledPath> e : myRampedAnimationMap.entrySet()){ CompiledPath path = e.getValue(); int id = e.getKey();
myPreviousPositions.clear(); long cur = getCurrentTime(time); for(Entry<Integer,CompiledPath> e : myRampedAnimationMap.entrySet()){ CompiledPath path = e.getValue(); Integer id = e.getKey(); myPreviousPositions.clear(); long next = getCurrentTime(time+interval); for(Entry<Integer,CompiledPath> e : myRampedAnimationMap.entrySet()){ CompiledPath path = e.getValue(); Integer id = e.getKey();
myPreviousPositions.clear(); long cur = getCurrentTime(time); for(Entry<Integer,CompiledPath> e : myAnimationMap.entrySet()){ CompiledPath path = e.getValue(); Integer id = e.getKey(); myPreviousPositions.clear(); cur = getCurrentTime(time+interval); for(Entry<Integer,CompiledPath> e : myAnimationMap.entrySet()){ CompiledPath path = e.getValue(); Integer id = e.getKey();