/** * Sets or removes the given key from the specified style and returns the * new style. If value is null then the flag is toggled. * * @param style * String of the form stylename[;key=value]. * @param key * Key of the style to be changed. * @param flag * Integer for the bit to be changed. * @param value * Optional boolean value for the given flag. * @deprecated Use <code>mxStyleUtils.setStyleFlag(String, String, int, Boolean)</code> (Jan 2012) */ public static String setStyleFlag(String style, String key, int flag, Boolean value) { return mxStyleUtils.setStyleFlag(style, key, flag, value); }
/** * Sets or removes the given key from the specified style and returns the * new style. If value is null then the flag is toggled. * * @param style * String of the form stylename[;key=value]. * @param key * Key of the style to be changed. * @param flag * Integer for the bit to be changed. * @param value * Optional boolean value for the given flag. * @deprecated Use <code>mxStyleUtils.setStyleFlag(String, String, int, Boolean)</code> (Jan 2012) */ public static String setStyleFlag(String style, String key, int flag, Boolean value) { return mxStyleUtils.setStyleFlag(style, key, flag, value); }
String style = setStyleFlag(model.getStyle(cells[i]), key, flag, value); model.setStyle(cells[i], style);
String style = setStyleFlag(model.getStyle(cells[i]), key, flag, value); model.setStyle(cells[i], style);