/** * Assigns the value for the given key in the styles of the given cells, or * removes the key from the styles if the value is null. * * @param model * Model to execute the transaction in. * @param cells * Array of cells to be updated. * @param key * Key of the style to be changed. * @param value * New value for the given key. * @deprecated Use <code>mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String)</code> (Jan 2012) */ public static void setCellStyles(mxIGraphModel model, Object[] cells, String key, String value) { mxStyleUtils.setCellStyles(model, cells, key, value); }
/** * Assigns the value for the given key in the styles of the given cells, or * removes the key from the styles if the value is null. * * @param model * Model to execute the transaction in. * @param cells * Array of cells to be updated. * @param key * Key of the style to be changed. * @param value * New value for the given key. * @deprecated Use <code>mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String)</code> (Jan 2012) */ public static void setCellStyles(mxIGraphModel model, Object[] cells, String key, String value) { mxStyleUtils.setCellStyles(model, cells, key, value); }
/** * Sets the key to value in the styles of the given cells. This will modify * the existing cell styles in-place and override any existing assignment * for the given key. If no cells are specified, then the selection cells * are changed. If no value is specified, then the respective key is * removed from the styles. * * @param key String representing the key to be assigned. * @param value String representing the new value for the key. * @param cells Array of cells to change the style for. */ public Object[] setCellStyles(String key, String value, Object[] cells) { if (cells == null) { cells = getSelectionCells(); } mxStyleUtils.setCellStyles(model, cells, key, value); return cells; }
/** * Sets the key to value in the styles of the given cells. This will modify * the existing cell styles in-place and override any existing assignment * for the given key. If no cells are specified, then the selection cells * are changed. If no value is specified, then the respective key is * removed from the styles. * * @param key String representing the key to be assigned. * @param value String representing the new value for the key. * @param cells Array of cells to change the style for. */ public Object[] setCellStyles(String key, String value, Object[] cells) { if (cells == null) { cells = getSelectionCells(); } mxStyleUtils.setCellStyles(model, cells, key, value); return cells; }