int y1 = Integer.MIN_VALUE;
int cx1 = Integer.MIN_VALUE;
int cy1 = Integer.MIN_VALUE;
while (!pi.isDone())
{
switch (pi.currentSegment(points))
{
case PathIterator.SEG_MOVETO:
x1 = (int) Math.floor(points[0]);
y1 = (int) Math.floor(points[1]);
cx1 = x1;