public Orientation determine2WayOrientation(boolean vertical)
{
Rectangle centerBox = getCenterFigureBox();
// Determine the quarter from the socket's orientation
Quarter quarter = CircleConstants.determineQuarter(angle, centerBox);
Orientation orientation;
if (vertical)
{
orientation = quarter == Quarter.NW || quarter == Quarter.NE ? Orientation.TOP : Orientation.BOTTOM;