private void executeMove(@NonNull DecoEvent event){
  if ((event.getEventType() != DecoEvent.EventType.EVENT_MOVE) && (event.getEventType() != DecoEvent.EventType.EVENT_COLOR_CHANGE)) {
    return;
  }
  if (mChartSeries != null) {
    if (mChartSeries.size() <= event.getIndexPosition()) {
      throw new IllegalArgumentException("Invalid index: Position out of range (Index: " + event.getIndexPosition() + " Series Count: "+ mChartSeries.size()+ ")");
    }
    final int index=event.getIndexPosition();
    if (index >= 0 && index < mChartSeries.size()) {
      ChartSeries item=mChartSeries.get(event.getIndexPosition());
      if (event.getEventType() == DecoEvent.EventType.EVENT_COLOR_CHANGE) {
        item.startAnimateColorChange(event);
      }
 else {
        item.startAnimateMove(event);
      }
    }
 else {
      Log.e(TAG,"Ignoring move request: Invalid array index. Index: " + index + " Size: "+ mChartSeries.size());
    }
  }
}

private void executeMove ( @ NonNull DecoEvent event ) { if ( ( event . getEventType ( ) != DecoEvent . EventType . EVENT_MOVE ) && ( event . getEventType ( ) != DecoEvent . EventType . EVENT_COLOR_CHANGE ) ) { return ; } if ( mChartSeries != null ) { if ( mChartSeries . size ( ) <= event . getIndexPosition ( ) ) { throw new IllegalArgumentException ( "Invalid index: Position out of range (Index: " + event . getIndexPosition ( ) + " Series Count: " + mChartSeries . size ( ) + ")" ) ; } final int index = event . getIndexPosition ( ) ; if ( index >= 0 && index < mChartSeries . size ( ) ) { ChartSeries item = mChartSeries . get ( event . getIndexPosition ( ) ) ; if ( event . getEventType ( ) == DecoEvent . EventType . EVENT_COLOR_CHANGE ) { item . startAnimateColorChange ( event ) ; } else { item . startAnimateMove ( event ) ; } } else { Log . e ( TAG , "Ignoring move request: Invalid array index. Index: " + index + " Size: " + mChartSeries . size ( ) ) ; } } }
execute a move event
