public void reset(){
  Iterator iter=m_vis.visibleItems(m_nodeGroup);
  while (iter.hasNext()) {
    VisualItem item=(VisualItem)iter.next();
    ForceItem fitem=(ForceItem)item.get(FORCEITEM);
    if (fitem != null) {
      fitem.location[0]=(float)item.getEndX();
      fitem.location[1]=(float)item.getEndY();
      fitem.force[0]=fitem.force[1]=0;
      fitem.velocity[0]=fitem.velocity[1]=0;
    }
  }
  m_lasttime=-1L;
}

public void reset ( ) { Iterator iter = m_vis . visibleItems ( m_nodeGroup ) ; while ( iter . hasNext ( ) ) { VisualItem item = ( VisualItem ) iter . next ( ) ; ForceItem fitem = ( ForceItem ) item . get ( FORCEITEM ) ; if ( fitem != null ) { fitem . location [ 0 ] = ( float ) item . getEndX ( ) ; fitem . location [ 1 ] = ( float ) item . getEndY ( ) ; fitem . force [ 0 ] = fitem . force [ 1 ] = 0 ; fitem . velocity [ 0 ] = fitem . velocity [ 1 ] = 0 ; } } m_lasttime = - 1L ; }
reset the force simulation state for all nodes processed by this layout .
