I want to know about the algorithm used in business tools. for example in few tools if we draw lines and other components it realign entire flowchart based on screen size and no of link between other components.  I want to develop a screen to draw flowchart for workflow process.

Can anyone please suggest me the algorithms/technology/libraries