x = x + ser.getDeltaX();
y = y + ser.getDeltaY();
}
else if (r instanceof CurvedEdgeRecord)
{
CurvedEdgeRecord cer = (CurvedEdgeRecord)r;
Rect currRect = new Rect(x1, x2, y1, y2);
if (!curveControlPointInsideCurrentRect(x, y, cer, currRect))
{
Rect curvBounds = computeCurveBounds(x, y, cer);
if (curvBounds.xMin() < x1) x1 = curvBounds.xMin();
if (curvBounds.yMin() < y1) y1 = curvBounds.yMin();
if (curvBounds.xMax() > x2) x2 = curvBounds.xMax();
if (curvBounds.yMax() > y2) y2 = curvBounds.yMax();
}
x = x + cer.getControlDeltaX() + cer.getAnchorDeltaX();
y = y + cer.getControlDeltaY() + cer.getAnchorDeltaY();
}
//update x1, y1 to min values and x2, y2 to max values
if (x < x1) x1 = x;
if (y < y1) y1 = y;