newMode.enter();
}
// The CropModes need setup and teardown:
if ((newMode == cropMode) || (newMode == rotateMode)) {
CropMode crop = (CropMode) newMode;
crop.resetCrop();
}
// The CropModes need to be kept in sync with each other:
if (oldMode == cropMode) {
rotateMode.setCrop(cropMode.getCrop());
}