private void logGraphicalBufferOccupancy(float bufferOccupancy){
  String title="Buffer";
  int used=(int)(bufferOccupancy * WIDTH);
  StringBuilder sb=new StringBuilder();
  sb.append(START_END_CHAR);
  sb.append('-');
  sb.append(title);
  for (int i=title.length() + 1; i < WIDTH; i++) {
    sb.append('-');
  }
  sb.append(START_END_CHAR);
  log.info(sb.toString());
  sb=new StringBuilder();
  sb.append(START_END_CHAR);
  for (int i=0; i < used; i++) {
    sb.append('/');
  }
  for (int j=used; j < WIDTH; j++) {
    sb.append(' ');
  }
  sb.append(START_END_CHAR);
  log.info(sb.toString());
  sb=new StringBuilder();
  sb.append(START_END_CHAR);
  for (int i=0; i < WIDTH; i++) {
    sb.append('-');
  }
  sb.append(START_END_CHAR);
  log.info(sb.toString());
}

private void logGraphicalBufferOccupancy ( float bufferOccupancy ) { String title = "Buffer" ; int used = ( int ) ( bufferOccupancy * WIDTH ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( START_END_CHAR ) ; sb . append ( '-' ) ; sb . append ( title ) ; for ( int i = title . length ( ) + 1 ; i < WIDTH ; i ++ ) { sb . append ( '-' ) ; } sb . append ( START_END_CHAR ) ; log . info ( sb . toString ( ) ) ; sb = new StringBuilder ( ) ; sb . append ( START_END_CHAR ) ; for ( int i = 0 ; i < used ; i ++ ) { sb . append ( '/' ) ; } for ( int j = used ; j < WIDTH ; j ++ ) { sb . append ( ' ' ) ; } sb . append ( START_END_CHAR ) ; log . info ( sb . toString ( ) ) ; sb = new StringBuilder ( ) ; sb . append ( START_END_CHAR ) ; for ( int i = 0 ; i < WIDTH ; i ++ ) { sb . append ( '-' ) ; } sb . append ( START_END_CHAR ) ; log . info ( sb . toString ( ) ) ; }
log a graphical version of buffer occupancy .
