if (command instanceof MoveTo) {
commands.add(new MoveTo((MoveTo) command));
} else if (command instanceof LineTo) {
commands.add(new LineTo((LineTo) command));
}
EndPointCommand point = (EndPointCommand) command;
pointsDown.get(i).add(0, new PrecisePoint(point.getX(), point.getY()));
}
command = commands.get(0);
if (command instanceof MoveTo) {
commands.add(new LineTo(bbox.getX(), ((MoveTo) command).getY()));
} else if (command instanceof LineTo) {