public void rotate_90_degree(int p_factor){
  if (p_factor == 0)   return;
  BrdComponents components=r_brd.brd_components;
  for (  BrdComponent curr_component : component_list) {
    components.rotate_90_deg(curr_component.id_no,p_factor,current_position);
  }
  clearance_violations=new LinkedList<BrdItemViolation>();
  for (  BrdItem curr_item : item_list) {
    curr_item.rotate_90_deg(p_factor,current_position);
    clearance_violations.addAll(curr_item.clearance_violations());
  }
  for (  IteraNetItems curr_net_items : net_items_list) {
    i_brd.update_ratsnest(curr_net_items.net_no,curr_net_items.items);
  }
  actlog_start_scope(LogfileScope.TURN_90_DEGREE,p_factor);
  i_brd.repaint();
}

public void rotate_90_degree ( int p_factor ) { if ( p_factor == 0 ) return ; BrdComponents components = r_brd . brd_components ; for ( BrdComponent curr_component : component_list ) { components . rotate_90_deg ( curr_component . id_no , p_factor , current_position ) ; } clearance_violations = new LinkedList < BrdItemViolation > ( ) ; for ( BrdItem curr_item : item_list ) { curr_item . rotate_90_deg ( p_factor , current_position ) ; clearance_violations . addAll ( curr_item . clearance_violations ( ) ) ; } for ( IteraNetItems curr_net_items : net_items_list ) { i_brd . update_ratsnest ( curr_net_items . net_no , curr_net_items . items ) ; } actlog_start_scope ( LogfileScope . TURN_90_DEGREE , p_factor ) ; i_brd . repaint ( ) ; }
turns the items in the list by p_factor times 90 degree around the current position .
