String style = setStyle(model.getStyle(cells[i]), key, value); model.setStyle(cells[i], style);
/** * Returns an array of key, value pairs representing the cell style for the * given cell. If no string is defined in the model that specifies the * style, then the default style for the cell is returned or <EMPTY_ARRAY>, * if not style can be found. * * @param cell Cell whose style should be returned. * @return Returns the style of the cell. */ public Map<String, Object> getCellStyle(Object cell) { Map<String, Object> style = (model.isEdge(cell)) ? stylesheet .getDefaultEdgeStyle() : stylesheet.getDefaultVertexStyle(); String name = model.getStyle(cell); if (name != null) { style = postProcessCellStyle(stylesheet.getCellStyle(name, style)); } if (style == null) { style = mxStylesheet.EMPTY_STYLE; } return style; }
String style = setStyle(model.getStyle(cells[i]), key, value); model.setStyle(cells[i], style);
String style = setStyleFlag(model.getStyle(cells[i]), key, flag, value); model.setStyle(cells[i], style);
/** * Returns an array of key, value pairs representing the cell style for the * given cell. If no string is defined in the model that specifies the * style, then the default style for the cell is returned or <EMPTY_ARRAY>, * if not style can be found. * * @param cell Cell whose style should be returned. * @return Returns the style of the cell. */ public Map<String, Object> getCellStyle(Object cell) { Map<String, Object> style = (model.isEdge(cell)) ? stylesheet .getDefaultEdgeStyle() : stylesheet.getDefaultVertexStyle(); String name = model.getStyle(cell); if (name != null) { style = postProcessCellStyle(stylesheet.getCellStyle(name, style)); } if (style == null) { style = mxStylesheet.EMPTY_STYLE; } return style; }
String style = setStyleFlag(model.getStyle(cells[i]), key, flag, value); model.setStyle(cells[i], style);
try String style = model.getStyle(edge);
try String style = model.getStyle(edge);
Map<String, Object> style = (state != null) ? state .getStyle() : getCellStyle(cell); String cellStyle = model.getStyle(cell);
Map<String, Object> style = (state != null) ? state .getStyle() : getCellStyle(cell); String cellStyle = model.getStyle(cell);