本文整理了Java中com.mxgraph.view.mxGraph.toggleCellStyles()
方法的一些代码示例,展示了mxGraph.toggleCellStyles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.toggleCellStyles()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:toggleCellStyles
[英]Toggles the boolean value for the given key in the style of the selection cells.
[中]在选择单元格的样式中切换给定键的布尔值。
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Toggles the boolean value for the given key in the style of the
* selection cells.
*
* @param key Key for the boolean value to be toggled.
* @param defaultValue Default boolean value if no value is defined.
*/
public Object[] toggleCellStyles(String key, boolean defaultValue)
{
return toggleCellStyles(key, defaultValue, null);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Toggles the boolean value for the given key in the style of the
* selection cells.
*
* @param key Key for the boolean value to be toggled.
* @param defaultValue Default boolean value if no value is defined.
*/
public Object[] toggleCellStyles(String key, boolean defaultValue)
{
return toggleCellStyles(key, defaultValue, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Toggles the boolean value for the given key in the style of the
* given cell. If no cell is specified then the selection cell is
* used.
*
* @param key Key for the boolean value to be toggled.
* @param defaultValue Default boolean value if no value is defined.
* @param cell Cell whose style should be modified.
*/
public Object toggleCellStyle(String key, boolean defaultValue, Object cell)
{
return toggleCellStyles(key, defaultValue, new Object[] { cell })[0];
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Toggles the boolean value for the given key in the style of the
* given cell. If no cell is specified then the selection cell is
* used.
*
* @param key Key for the boolean value to be toggled.
* @param defaultValue Default boolean value if no value is defined.
* @param cell Cell whose style should be modified.
*/
public Object toggleCellStyle(String key, boolean defaultValue, Object cell)
{
return toggleCellStyles(key, defaultValue, new Object[] { cell })[0];
}
内容来源于网络,如有侵权,请联系作者删除!