public void updateShapeShadowsToCurrentTime(boolean updateMinutes,boolean updateHours,int currentMinute,int currentHour){
  if (updateMinutes) {
    int tens=(int)Math.floor(currentMinute / 10.0f);
    int units=(int)Math.floor(currentMinute % 10.0f);
    if (minutesTens.getCurrentValue() != tens) {
      String mt=String.format("%d",tens);
      mt=mt.concat(".json");
      Log.d(TAG,"MINUTE TENS STRING: " + mt);
      minutesTens.parseJSON(mt);
    }
    if (minutesUnits.getCurrentValue() != units) {
      String mu=String.format("%d",units);
      mu=mu.concat(".json");
      Log.d(TAG,"MINUTE UNITS STRING: " + mu);
      minutesUnits.parseJSON(mu);
    }
  }
  if (updateHours) {
    int tens=(int)Math.floor(currentHour / 10.0f);
    int units=(int)Math.floor(currentHour % 10.0f);
    if (hoursTens.getCurrentValue() != tens) {
      String ht=String.format("%d",tens);
      ht=ht.concat(".json");
      Log.d(TAG,"HOURS TENS STRING: " + ht);
      hoursTens.parseJSON(ht);
    }
    if (hoursUnits.getCurrentValue() != units) {
      String hu=String.format("%d",units);
      hu=hu.concat(".json");
      Log.d(TAG,"HOURS UNITS STRING: " + hu);
      hoursUnits.parseJSON(hu);
    }
  }
}

public void updateShapeShadowsToCurrentTime ( boolean updateMinutes , boolean updateHours , int currentMinute , int currentHour ) { if ( updateMinutes ) { int tens = ( int ) Math . floor ( currentMinute / 10.0f ) ; int units = ( int ) Math . floor ( currentMinute % 10.0f ) ; if ( minutesTens . getCurrentValue ( ) != tens ) { String mt = String . format ( "%d" , tens ) ; mt = mt . concat ( ".json" ) ; Log . d ( TAG , "MINUTE TENS STRING: " + mt ) ; minutesTens . parseJSON ( mt ) ; } if ( minutesUnits . getCurrentValue ( ) != units ) { String mu = String . format ( "%d" , units ) ; mu = mu . concat ( ".json" ) ; Log . d ( TAG , "MINUTE UNITS STRING: " + mu ) ; minutesUnits . parseJSON ( mu ) ; } } if ( updateHours ) { int tens = ( int ) Math . floor ( currentHour / 10.0f ) ; int units = ( int ) Math . floor ( currentHour % 10.0f ) ; if ( hoursTens . getCurrentValue ( ) != tens ) { String ht = String . format ( "%d" , tens ) ; ht = ht . concat ( ".json" ) ; Log . d ( TAG , "HOURS TENS STRING: " + ht ) ; hoursTens . parseJSON ( ht ) ; } if ( hoursUnits . getCurrentValue ( ) != units ) { String hu = String . format ( "%d" , units ) ; hu = hu . concat ( ".json" ) ; Log . d ( TAG , "HOURS UNITS STRING: " + hu ) ; hoursUnits . parseJSON ( hu ) ; } } }
updates the shadows of the numbers to the current time
