adjust linear combination coefficients according to sign
if sign(j) <> sign(k) then alpha = abs(j) beta = abs(k)
if sign(j) == sign(k) then alpha = -abs(j) beta = abs(k)
adjust linear combination coefficients according to sign
if sign(j) <> sign(k) then alpha = abs(j) beta = abs(k)
if sign(j) == sign(k) then alpha = -abs(j) beta = abs(k)
This calculates the rotation angle we need to apply to the arrow, and will also handle setting the bounds as that would require this same switch statement.
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
ModuleClass encapsulates information about the Module class and is designed to be used as a userobject in nodes in a JTree, in this case for nodes representing module classes.
Event handler for when the user presses down on the mouse, this is used in conjunction with mouseDragged and mouseReleased to implement the moving action
Handler for mousePressed event - currently includes code for displaying a menu which the mouse is right clicked, or deleting/moving a component according to the buttons modeType (ie.
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
Returns the distance between the outside of the component to the centre, in order to position the centre of the place where the mouse clicks on the screen
Unite two sets (arrays of integers) so that if there is a common entry in the arrays it appears only
once, and all the entries of each array appear in the union.