Lines Matching refs:state
7 …e: 'numbered', dispName: 'Numbered', type: 'bool', defVal: true, isVisible: function(state, format) argument
33 var state = graphViewValidateCellState.apply(this, arguments);
36 if (recurse && state != null && graph.model.isVertex(state.cell) &&
37 mxUtils.getValue(state.style, 'numbered', 1) == 1)
40 this.redrawNumberShape(state);
43 return state;
46 graph.view.redrawNumberShape = function(state) argument
48 var numbered = mxUtils.getValue(state.style, 'numbered', 1) == 1;
52 if (enabled && numbered && graph.model.isVertex(state.cell) &&
53 state.shape != null && state.secondLabel == null)
55 state.secondLabel = new mxText(value, new mxRectangle(),
59 state.secondLabel.size = 12;
60 state.secondLabel.dialect = mxConstants.DIALECT_STRICTHTML;
61 graph.cellRenderer.initializeLabel(state, state.secondLabel);
64 if (state.secondLabel != null)
68 state.secondLabel.destroy();
69 state.secondLabel = null;
74 var bounds = new mxRectangle(state.x + state.width - 4 * scale, state.y + 4 * scale, 0, 0);
75 state.secondLabel.value = value;
76 state.secondLabel.state = state;
77 state.secondLabel.scale = scale;
78 state.secondLabel.bounds = bounds;
79 state.secondLabel.redraw();
86 graph.cellRenderer.destroy = function(state) argument
90 if (state.secondLabel != null)
92 state.secondLabel.destroy();
93 state.secondLabel = null;
97 graph.cellRenderer.getShapesForState = function(state) argument
99 return [state.shape, state.text, state.secondLabel, state.control];