private void move(PlaPointFloat p_new_position){
  current_position=p_new_position.round();
  if (!current_position.equals(previous_position)) {
    PlaVectorInt translate_vector=current_position.difference_by(previous_position);
    if (grid_snap_component != null) {
      translate_vector=adjust_to_placement_grid(translate_vector);
    }
    BrdComponents components=r_brd.brd_components;
    for (    BrdComponent curr_component : component_list) {
      components.move(curr_component.id_no,translate_vector);
    }
    clearance_violations=new LinkedList<BrdItemViolation>();
    for (    BrdItem curr_item : item_list) {
      curr_item.translate_by(translate_vector);
      clearance_violations.addAll(curr_item.clearance_violations());
    }
    previous_position=current_position;
    for (    IteraNetItems curr_net_items : net_items_list) {
      i_brd.update_ratsnest(curr_net_items.net_no,curr_net_items.items);
    }
    i_brd.repaint();
  }
}

private void move ( PlaPointFloat p_new_position ) { current_position = p_new_position . round ( ) ; if ( ! current_position . equals ( previous_position ) ) { PlaVectorInt translate_vector = current_position . difference_by ( previous_position ) ; if ( grid_snap_component != null ) { translate_vector = adjust_to_placement_grid ( translate_vector ) ; } BrdComponents components = r_brd . brd_components ; for ( BrdComponent curr_component : component_list ) { components . move ( curr_component . id_no , translate_vector ) ; } clearance_violations = new LinkedList < BrdItemViolation > ( ) ; for ( BrdItem curr_item : item_list ) { curr_item . translate_by ( translate_vector ) ; clearance_violations . addAll ( curr_item . clearance_violations ( ) ) ; } previous_position = current_position ; for ( IteraNetItems curr_net_items : net_items_list ) { i_brd . update_ratsnest ( curr_net_items . net_no , curr_net_items . items ) ; } i_brd . repaint ( ) ; } }
changes the position of the items in the list to p_new_location .
