Lines Matching refs:state
723 Graph.prototype.setViewState = function(state, removeOldExtFonts) argument
725 if (state != null)
727 this.lastPasteXml = state.lastPasteXml;
728 this.pasteCounter = state.pasteCounter || 0;
729 this.mathEnabled = state.mathEnabled;
730 this.gridEnabled = state.gridEnabled;
732 this.gridSize = state.gridSize;
733 this.graphHandler.guidesEnabled = state.guidesEnabled;
734 this.foldingEnabled = state.foldingEnabled;
735 this.setShadowVisible(state.shadowVisible, false);
736 this.scrollbars = state.scrollbars;
737 this.pageVisible = !this.isViewer() && state.pageVisible;
738 this.background = state.background;
739 this.pageScale = state.pageScale;
740 this.pageFormat = state.pageFormat;
741 this.view.currentRoot = state.currentRoot;
742 this.defaultParent = state.defaultParent;
743 this.connectionArrowsEnabled = state.arrows;
744 this.setTooltips(state.tooltips);
745 this.setConnectable(state.connect);
746 this.setBackgroundImage(state.backgroundImage);
747 this.hiddenTags = state.hiddenTags;
750 this.extFonts = state.extFonts || [];
772 if (state.scale != null)
774 this.view.scale = state.scale;
795 if (state.translate != null)
797 this.view.translate = state.translate;
830 this.fireEvent(new mxEventObject('viewStateChanged', 'state', state));