protected float calcCurrentPosition(float start,float end,float min,float max,float percent){
  start-=min;
  end-=min;
  max-=min;
  if (Math.abs(start - end) < 0.01) {
    return start / max;
  }
  if ((mDrawMode == DecoEvent.EventType.EVENT_HIDE) || (mDrawMode == DecoEvent.EventType.EVENT_SHOW) || (mDrawMode == DecoEvent.EventType.EVENT_COLOR_CHANGE)) {
    percent=1.0f;
  }
  if (Math.abs(end) < 0.01) {
    return (start / max) * (start - (start * percent)) / start;
  }
  return (end / max) * (start + (percent * (end - start))) / end;
}

protected float calcCurrentPosition ( float start , float end , float min , float max , float percent ) { start -= min ; end -= min ; max -= min ; if ( Math . abs ( start - end ) < 0.01 ) { return start / max ; } if ( ( mDrawMode == DecoEvent . EventType . EVENT_HIDE ) || ( mDrawMode == DecoEvent . EventType . EVENT_SHOW ) || ( mDrawMode == DecoEvent . EventType . EVENT_COLOR_CHANGE ) ) { percent = 1.0f ; } if ( Math . abs ( end ) < 0.01 ) { return ( start / max ) * ( start - ( start * percent ) ) / start ; } return ( end / max ) * ( start + ( percent * ( end - start ) ) ) / end ; }
calculates the current position of an series based on the progress of the animation being executed
