private void initialCoords(mxGraph facade,mxGraphHierarchyModel model){
  calculateWidestRank(facade,model);
  for (int i=widestRank; i >= 0; i--) {
    if (i < model.maxRank) {
      rankCoordinates(i,facade,model);
    }
  }
  for (int i=widestRank + 1; i <= model.maxRank; i++) {
    if (i > 0) {
      rankCoordinates(i,facade,model);
    }
  }
}

private void initialCoords ( mxGraph facade , mxGraphHierarchyModel model ) { calculateWidestRank ( facade , model ) ; for ( int i = widestRank ; i >= 0 ; i -- ) { if ( i < model . maxRank ) { rankCoordinates ( i , facade , model ) ; } } for ( int i = widestRank + 1 ; i <= model . maxRank ; i ++ ) { if ( i > 0 ) { rankCoordinates ( i , facade , model ) ; } } }
sets up the layout in an initial positioning . the ranks are all centered as much as possible along the middle vertex in each rank . the other cells are then placed as close as possible on either side .
