_p.setLocation(anchor);
_p.y += arm + cell / 2;
for (int i = 0; i < hNum; i++) {
_p.y += cell;
connector[index] = new OffsetBoxConnector(this, Connector.WEST_DIRECTION, _p.x - anchor.x, _p.y - anchor.y);
index++;
}
//�����Ҳ����ӵ�
_p.setLocation(anchor);
_p.x += 2 * arm + 2 * cell + wNum * cell;
_p.y += arm + cell / 2;
for (int i = 0; i < hNum; i++) {
_p.y += cell;
connector[index] = new OffsetBoxConnector(this, Connector.EAST_DIRECTION, _p.x - anchor.x, _p.y - anchor.y);
index++;
}
//�����ϲ����ӵ�
_p.setLocation(anchor);
_p.x += arm + cell / 2;
for (int i = 0; i < wNum; i++) {
_p.x += cell;
connector[index] = new OffsetBoxConnector(this, Connector.WEST_DIRECTION, _p.x - anchor.x, _p.y - anchor.y);
index++;
}
//�����²����ӵ�
_p.setLocation(anchor);
_p.x += arm + cell / 2;
_p.y += 2 * arm + 2 * cell + hNum * cell;
for (int i = 0; i < wNum; i++) {
_p.x += cell;
connector[index] = new OffsetBoxConnector(this, Connector.WEST_DIRECTION, _p.x - anchor.x, _p.y - anchor.y);
index++;
}
}