question: public void shiftBeans ( BeanInstance toShiftTo , boolean save ) { if ( save ) { m_originalCoords = new Vector < Point > ( ) ; } int targetX = toShiftTo . getX ( ) ; int targetY = toShiftTo . getY ( ) ; for ( int i = 0 ; i < m_subFlow . size ( ) ; i ++ ) { BeanInstance temp = ( BeanInstance ) m_subFlow . elementAt ( i ) ; if ( save ) { Point p = new Point ( temp . getX ( ) - targetX , temp . getY ( ) - targetY ) ; m_originalCoords . add ( p ) ; } temp . setX ( targetX ) ; temp . setY ( targetY ) ; } }
target:  Move coords of all inputs and outputs of this meta bean to the coords of the supplied BeanInstance. Typically the supplied BeanInstance is the BeanInstance that encapsulates this meta bean; the result in this case is that all inputs and outputs are shifted so that their coords coincide with the meta bean and all connections to them appear (visually) to go to/from the meta bean.