Lines Matching refs:state

289 	var state = graph.view.getState(cell);
291 if (state != null)
293 result.autoSize = result.autoSize || this.isAutoSizeState(state);
294 result.glass = result.glass && this.isGlassState(state);
295 result.rounded = result.rounded && this.isRoundedState(state);
296 result.lineJumps = result.lineJumps && this.isLineJumpState(state);
297 result.image = result.image && this.isImageState(state);
298 result.shadow = result.shadow && this.isShadowState(state);
299 result.fill = result.fill && this.isFillState(state);
300 result.stroke = result.stroke && this.isStrokeState(state);
302 var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null);
304 graph.mergeStyle(state.style, result.style, initial);
311 Format.prototype.isFillState = function(state) argument
313 return !this.isSpecialColor(state.style[mxConstants.STYLE_FILLCOLOR]) &&
314 (state.view.graph.model.isVertex(state.cell) ||
315 mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null) == 'arrow' ||
316 mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null) == 'filledEdge' ||
317 mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null) == 'flexArrow');
323 Format.prototype.isStrokeState = function(state) argument
325 return !this.isSpecialColor(state.style[mxConstants.STYLE_STROKECOLOR]);
341 Format.prototype.isGlassState = function(state) argument
343 var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null);
353 Format.prototype.isRoundedState = function(state) argument
355 return (state.shape != null) ? state.shape.isRoundable() :
356 mxUtils.indexOf(this.roundableShapes, mxUtils.getValue(state.style,
363 Format.prototype.isLineJumpState = function(state) argument
365 var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null);
366 var curved = mxUtils.getValue(state.style, mxConstants.STYLE_CURVED, false);
374 Format.prototype.isAutoSizeState = function(state) argument
376 return mxUtils.getValue(state.style, mxConstants.STYLE_AUTOSIZE, null) == '1';
382 Format.prototype.isImageState = function(state) argument
384 var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null);
392 Format.prototype.isShadowState = function(state) argument
394 var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null);
1331 var state = graph.view.getState(self.format.getSelectionState().cells[0]);
1333 if (state != null)
1335 return mxUtils.getValue(state.style, colorKey, null);
1366 var state = graph.view.getState(self.format.getSelectionState().cells[0]);
1368 if (state != null)
1370 apply(mxUtils.getValue(state.style, colorKey, null), true);
1501 var state = graph.view.getState(this.format.getSelectionState().cells[0]);
1503 if (state != null && value != mxUtils.getValue(state.style, key, 100))
2765 var state = graph.view.getState(cells[i]);
2767 if (state != null && graph.isRecursiveVertexResize(state))
3733 var state = graph.view.getState(cell);
3735 return state == null ||
3736 this.format.isAutoSizeState(state) ||