ZoomOptions () { ImageEditor editor = this.editor; if (editor != null) { ZoomOptions options = editor.getZoomModel().getCustomZoomOptions(); if (options != null) { return options; } } Options options = OptionsManager.getInstance().getOptions(); return options.getEditorOptions().getZoomOptions(); }