Lines Matching defs:ImageEditor

8  * ImageEditor is the top level object that holds together and connects
13 * @param {ImageEditor.Prompt} prompt Prompt instance.
15 * @param {Array.<ImageEditor.Mode>} modes Available editor modes.
21 function ImageEditor(
42 this.panControl_ = new ImageEditor.MouseControl(
46 this.mainToolbar_ = new ImageEditor.Toolbar(
49 this.modeToolbar_ = new ImageEditor.Toolbar(
63 ImageEditor.prototype.isLocked = function() {
70 ImageEditor.prototype.isBusy = function() {
78 ImageEditor.prototype.lockUI = function(on) {
86 ImageEditor.prototype.recordToolUse = function(name) {
95 ImageEditor.prototype.onContentUpdate_ = function() {
111 ImageEditor.prototype.openSession = function(
137 ImageEditor.prototype.closeSession = function(callback) {
165 ImageEditor.prototype.executeWhenReady = function(callback) {
179 ImageEditor.prototype.canUndo = function() {
186 ImageEditor.prototype.undo = function() {
205 ImageEditor.prototype.redo = function() {
217 ImageEditor.prototype.updateUndoRedo = function() {
227 ImageEditor.prototype.getCanvas = function() {
234 ImageEditor.prototype.getBuffer = function() { return this.buffer_; };
239 ImageEditor.prototype.getImageView = function() { return this.imageView_; };
244 ImageEditor.prototype.getViewport = function() { return this.viewport_; };
247 * @return {ImageEditor.Prompt} Prompt instance.
249 ImageEditor.prototype.getPrompt = function() { return this.prompt_; };
255 ImageEditor.prototype.onOptionsChange = function(options) {
264 * ImageEditor.Mode represents a modal state dedicated to a specific operation.
273 ImageEditor.Mode = function(name, title) {
279 ImageEditor.Mode.prototype = {__proto__: ImageBuffer.Overlay.prototype };
284 ImageEditor.Mode.prototype.getViewport = function() { return this.viewport_; };
289 ImageEditor.Mode.prototype.getImageView = function() {
296 ImageEditor.Mode.prototype.getMessage = function() { return this.message_; };
301 ImageEditor.Mode.prototype.isApplicable = function() { return true; };
306 * @param {ImageEditor} editor The editor instance.
310 ImageEditor.Mode.prototype.bind = function(editor, button) {
321 ImageEditor.Mode.prototype.setUp = function() {
328 * @param {ImageEditor.Toolbar} toolbar The toolbar to populate.
330 ImageEditor.Mode.prototype.createTools = function(toolbar) {};
335 ImageEditor.Mode.prototype.cleanUpUI = function() {
342 ImageEditor.Mode.prototype.cleanUpCaches = function() {};
348 ImageEditor.Mode.prototype.update = function(options) {
355 ImageEditor.Mode.prototype.markUpdated = function() {
362 ImageEditor.Mode.prototype.isUpdated = function() { return this.updated_; };
367 ImageEditor.Mode.prototype.reset = function() {
380 ImageEditor.Mode.OneClick = function(name, title, command) {
381 ImageEditor.Mode.call(this, name, title);
386 ImageEditor.Mode.OneClick.prototype = {__proto__: ImageEditor.Mode.prototype};
391 ImageEditor.Mode.OneClick.prototype.getCommand = function() {
400 ImageEditor.prototype.registerAction_ = function(name) {
407 ImageEditor.prototype.createToolButtons = function() {
438 * @return {ImageEditor.Mode} The current mode.
440 ImageEditor.prototype.getMode = function() { return this.currentMode_; };
445 * @param {ImageEditor.Mode} mode The new mode.
447 ImageEditor.prototype.enterMode = function(mode) {
468 * @param {ImageEditor.Mode} mode The mode.
471 ImageEditor.prototype.setUpMode_ = function(mode) {
495 ImageEditor.prototype.leaveMode = function(commit) {
523 ImageEditor.prototype.leaveModeGently = function() {
535 ImageEditor.prototype.enterModeByName_ = function(name) {
552 ImageEditor.prototype.onKeyDown = function(event) {
605 ImageEditor.prototype.onDoubleTap_ = function(x, y) {
622 ImageEditor.prototype.hideOverlappingTools = function(frame, transparent) {
649 ImageEditor.MouseControl = function(rootContainer, container, buffer) {
677 ImageEditor.MouseControl.MAX_MOVEMENT_FOR_TAP_ = 8;
683 ImageEditor.MouseControl.MAX_TAP_DURATION_ = 500;
690 ImageEditor.MouseControl.MAX_DISTANCE_FOR_DOUBLE_TAP_ = 32;
696 ImageEditor.MouseControl.MAX_DOUBLE_TAP_DURATION_ = 1000;
705 ImageEditor.MouseControl.getPosition_ = function(e) {
719 ImageEditor.MouseControl.prototype.getTouchPosition_ = function(e) {
721 return ImageEditor.MouseControl.getPosition_(e.targetTouches[0]);
730 ImageEditor.MouseControl.prototype.onTouchStart = function(e) {
749 ImageEditor.MouseControl.prototype.onTouchEnd = function(e) {
753 ImageEditor.MouseControl.MAX_TAP_DURATION_) {
757 ImageEditor.MouseControl.MAX_DOUBLE_TAP_DURATION_) {
761 ImageEditor.MouseControl.MAX_DISTANCE_FOR_DOUBLE_TAP_);
780 ImageEditor.MouseControl.prototype.doubleTapCallback_ = function(x, y) {};
786 ImageEditor.MouseControl.prototype.setDoubleTapCallback = function(callback) {
793 ImageEditor.MouseControl.prototype.onTouchCancel = function() {
804 ImageEditor.MouseControl.prototype.onTouchMove = function(e) {
812 ImageEditor.MouseControl.MAX_MOVEMENT_FOR_TAP_);
825 ImageEditor.MouseControl.prototype.onMouseDown = function(e) {
826 var position = ImageEditor.MouseControl.getPosition_(e);
838 ImageEditor.MouseControl.prototype.onMouseUp = function(e) {
839 var position = ImageEditor.MouseControl.getPosition_(e);
853 ImageEditor.MouseControl.prototype.onMouseMove = function(e) {
854 var position = ImageEditor.MouseControl.getPosition_(e);
875 ImageEditor.MouseControl.prototype.lockMouse_ = function(on) {
885 ImageEditor.MouseControl.prototype.updateCursor_ = function(position) {
894 * A toolbar for the ImageEditor.
900 ImageEditor.Toolbar = function(parent, displayStringFunction, updateCallback) {
907 ImageEditor.Toolbar.prototype = {
916 ImageEditor.Toolbar.prototype.clear = function() {
926 ImageEditor.Toolbar.prototype.create_ = function(tagName) {
935 ImageEditor.Toolbar.prototype.add = function(element) {
945 ImageEditor.Toolbar.prototype.addLabel = function(name) {
960 ImageEditor.Toolbar.prototype.addButton = function(
987 ImageEditor.Toolbar.prototype.addRange = function(
1051 ImageEditor.Toolbar.prototype.getOptions = function() {
1063 ImageEditor.Toolbar.prototype.reset = function() {
1073 ImageEditor.Toolbar.prototype.show = function(on) {
1086 ImageEditor.Prompt = function(container, displayStringFunction) {
1094 ImageEditor.Prompt.prototype.reset = function() {
1106 ImageEditor.Prompt.prototype.cancelTimer = function() {
1118 ImageEditor.Prompt.prototype.setTimer = function(callback, timeout) {
1134 ImageEditor.Prompt.prototype.show = function(text, timeout, var_args) {
1148 ImageEditor.Prompt.prototype.showAt = function(
1162 ImageEditor.Prompt.prototype.showStringAt = function(pos, text, timeout) {
1199 ImageEditor.Prompt.prototype.hide = function() {