protected void refreshCapacity(double newCap){
  maxCap=Math.max(maxCap,newCap);
  minCap=Math.min(minCap,newCap);
  updateCapacityLabels();
}

protected void refreshCapacity ( double newCap ) { maxCap = Math . max ( maxCap , newCap ) ; minCap = Math . min ( minCap , newCap ) ; updateCapacityLabels ( ) ; }
refresh the maxcap and mincap values when a new capacity is set
