本文整理了Java中com.mxgraph.view.mxGraph.isCellFoldable()
方法的一些代码示例,展示了mxGraph.isCellFoldable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isCellFoldable()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isCellFoldable
[英]Returns true if the given cell is expandable. This implementation returns true if the cell has at least one child and its style does not specify mxConstants.STYLE_FOLDABLE to be 0.
[中]如果给定单元格可展开,则返回true。如果单元格至少有一个子元素,且其样式未指定mxConstants,则此实现返回true。样式_可折叠为0。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
public boolean filter(Object cell)
{
return isCellFoldable(cell, collapse);
}
});
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
public boolean filter(Object cell)
{
return isCellFoldable(cell, collapse);
}
});
代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn
/**
* Returns true if the given cell is expandable. This implementation
* returns true if the cell has at least one child and its style
* does not specify mxConstants.STYLE_FOLDABLE to be 0.
*
* @param cell <mxCell> whose expandable state should be returned.
* @return Returns true if the given cell is expandable.
*/
public boolean isCellFoldable(Object cell, boolean collapse)
{
boolean ret = super.isCellFoldable(cell, collapse);
if (cell instanceof VSubProcess)
// || cell instanceof VExternalSubProcess)
{
ret = true;
}
return ret;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the icon used to display the collapsed state of the specified
* cell state. This returns null for all edges.
*/
public ImageIcon getFoldingIcon(mxCellState state)
{
if (state != null && isFoldingEnabled()
&& !getGraph().getModel().isEdge(state.getCell()))
{
Object cell = state.getCell();
boolean tmp = graph.isCellCollapsed(cell);
if (graph.isCellFoldable(cell, !tmp))
{
return (tmp) ? collapsedIcon : expandedIcon;
}
}
return null;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the icon used to display the collapsed state of the specified
* cell state. This returns null for all edges.
*/
public ImageIcon getFoldingIcon(mxCellState state)
{
if (state != null && isFoldingEnabled()
&& !getGraph().getModel().isEdge(state.getCell()))
{
Object cell = state.getCell();
boolean tmp = graph.isCellCollapsed(cell);
if (graph.isCellFoldable(cell, !tmp))
{
return (tmp) ? collapsedIcon : expandedIcon;
}
}
return null;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
if ((!checkFoldable || isCellFoldable(cells[i], collapse))
&& collapse != isCellCollapsed(cells[i]))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
if ((!checkFoldable || isCellFoldable(cells[i], collapse))
&& collapse != isCellCollapsed(cells[i]))
内容来源于网络,如有侵权,请联系作者删除!