Point p1 = line.pointAt(fSegment);
Point p2 = line.pointAt(fSegment + 1);
int _x = (p1.x + p2.x) / 2;
int _y = (p1.y + p2.y) / 2;
line.insertPointAt(new Point(_x, _y), fSegment + 1);
line.insertPointAt(new Point(_x, _y), fSegment + 1);
fSegment = 2;
}
} else if (fSegment == line.pointCount() - 2) {//����ĩ�˵����ӷ�ʽ(H <-> V)
if ((inputEvent != null) && (inputEvent.isShiftDown())) {