int width = endX - beginX;
int height = endY - beginY;
if (height != 0 && width != 0) {
zoomInRect.setStep(5, new MoveTo(false, beginX, beginY));
zoomInRect.setStep(6, new LineTo(false, endX, beginY));
zoomInRect.setStep(7, new LineTo(false, endX, endY));
zoomInRect.setStep(8, new LineTo(false, beginX, endY));
zoomInRect.setStep(9, new ClosePath());
screenBounds = factory.createBbox(beginX, beginY, width, height);
}
}