public void alignRight(ArrayList<Integer> nodes){
  if (m_bNeedsUndoAction) {
    addUndoAction(new alignRightAction(nodes));
  }
  int nMaxX=-1;
  for (int iNode=0; iNode < nodes.size(); iNode++) {
    int nX=getPositionX(nodes.get(iNode));
    if (nX > nMaxX || iNode == 0) {
      nMaxX=nX;
    }
  }
  for (int iNode=0; iNode < nodes.size(); iNode++) {
    int nNode=nodes.get(iNode);
    m_nPositionX.set(nNode,nMaxX);
  }
}

public void alignRight ( ArrayList < Integer > nodes ) { if ( m_bNeedsUndoAction ) { addUndoAction ( new alignRightAction ( nodes ) ) ; } int nMaxX = - 1 ; for ( int iNode = 0 ; iNode < nodes . size ( ) ; iNode ++ ) { int nX = getPositionX ( nodes . get ( iNode ) ) ; if ( nX > nMaxX || iNode == 0 ) { nMaxX = nX ; } } for ( int iNode = 0 ; iNode < nodes . size ( ) ; iNode ++ ) { int nNode = nodes . get ( iNode ) ; m_nPositionX . set ( nNode , nMaxX ) ; } }
align set of nodes with the right most node in the list
