public void addNodeKeys(ArrayList<SpatialKey> list,Page p){
  if (p != null && !p.isLeaf()) {
    for (int i=0; i < p.getKeyCount(); i++) {
      list.add((SpatialKey)p.getKey(i));
      addNodeKeys(list,p.getChildPage(i));
    }
  }
}

public void addNodeKeys ( ArrayList < SpatialKey > list , Page p ) { if ( p != null && ! p . isLeaf ( ) ) { for ( int i = 0 ; i < p . getKeyCount ( ) ; i ++ ) { list . add ( ( SpatialKey ) p . getKey ( i ) ) ; addNodeKeys ( list , p . getChildPage ( i ) ) ; } } }
add all node keys ( including internal bounds ) to the given list . this is mainly used to visualize the internal splits .
