private void updateYLocationsFrom(int location){
  if (location >= 0 && location < getRowCount()) {
    int counter, maxCounter, newYOrigin;
    TreeStateNode aNode;
    aNode=getNode(location);
    newYOrigin=aNode.getYOrigin() + aNode.getPreferredHeight();
    for (counter=location + 1, maxCounter=visibleNodes.size(); counter < maxCounter; counter++) {
      aNode=(TreeStateNode)visibleNodes.elementAt(counter);
      aNode.setYOrigin(newYOrigin);
      newYOrigin+=aNode.getPreferredHeight();
    }
  }
}

private void updateYLocationsFrom ( int location ) { if ( location >= 0 && location < getRowCount ( ) ) { int counter , maxCounter , newYOrigin ; TreeStateNode aNode ; aNode = getNode ( location ) ; newYOrigin = aNode . getYOrigin ( ) + aNode . getPreferredHeight ( ) ; for ( counter = location + 1 , maxCounter = visibleNodes . size ( ) ; counter < maxCounter ; counter ++ ) { aNode = ( TreeStateNode ) visibleNodes . elementAt ( counter ) ; aNode . setYOrigin ( newYOrigin ) ; newYOrigin += aNode . getPreferredHeight ( ) ; } } }
updates the y locations of all of the visible nodes after location .
