本文整理了Java中com.mxgraph.view.mxGraph.foldCells()
方法的一些代码示例,展示了mxGraph.foldCells()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.foldCells()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:foldCells
[英]Sets the collapsed state of the selection cells without recursion. This is a shortcut method.
[中]设置选择单元格的折叠状态,而不进行递归。这是一种快捷方式。
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Sets the collapsed state of the selection cells without recursion.
* This is a shortcut method.
*
* @param collapse Boolean that specifies the collapsed state to be
* assigned.
* @return Returns the cells whose collapsed state was changed.
*/
public Object[] foldCells(boolean collapse)
{
return foldCells(collapse, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Invokes foldCells with checkFoldable set to false.
*/
public Object[] foldCells(boolean collapse, boolean recurse, Object[] cells)
{
return foldCells(collapse, recurse, cells, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Sets the collapsed state of the selection cells. This is a shortcut
* method.
*
* @param collapse Boolean that specifies the collapsed state to be
* assigned.
* @param recurse Boolean that specifies if the collapsed state should
* be assigned to all descendants.
* @return Returns the cells whose collapsed state was changed.
*/
public Object[] foldCells(boolean collapse, boolean recurse)
{
return foldCells(collapse, recurse, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Invokes foldCells with checkFoldable set to false.
*/
public Object[] foldCells(boolean collapse, boolean recurse, Object[] cells)
{
return foldCells(collapse, recurse, cells, false);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Sets the collapsed state of the selection cells without recursion.
* This is a shortcut method.
*
* @param collapse Boolean that specifies the collapsed state to be
* assigned.
* @return Returns the cells whose collapsed state was changed.
*/
public Object[] foldCells(boolean collapse)
{
return foldCells(collapse, false);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Sets the collapsed state of the selection cells. This is a shortcut
* method.
*
* @param collapse Boolean that specifies the collapsed state to be
* assigned.
* @param recurse Boolean that specifies if the collapsed state should
* be assigned to all descendants.
* @return Returns the cells whose collapsed state was changed.
*/
public Object[] foldCells(boolean collapse, boolean recurse)
{
return foldCells(collapse, recurse, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
boolean collapse = getValue(Action.NAME).toString()
.equalsIgnoreCase("collapse");
graph.foldCells(collapse);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public void actionPerformed(ActionEvent e)
{
mxGraph graph = getGraph(e);
if (graph != null)
{
boolean collapse = getValue(Action.NAME).toString()
.equalsIgnoreCase("collapse");
graph.foldCells(collapse);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
protected void fold(Object cell)
{
boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell);
graphComponent.getGraph().foldCells(collapse, false,
new Object[] { cell });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
protected void fold(Object cell)
{
boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell);
graphComponent.getGraph().foldCells(collapse, false,
new Object[] { cell });
}
内容来源于网络,如有侵权,请联系作者删除!