if (STRAIGHT_LINES || (leftY == rightY)) {
g.drawLine(0, leftY, getWidth(), rightY);
} else {
BezierCurve curve = new BezierCurve(new int[] { 0, getWidth() / 2, getWidth() / 2, getWidth() },
new int[] { leftY, leftY, rightY, rightY });
curve.paint(g);
}
}
}