com.mxgraph.view.mxGraph.isCellFoldable()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中com.mxgraph.view.mxGraph.isCellFoldable()方法的一些代码示例,展示了mxGraph.isCellFoldable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isCellFoldable()方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isCellFoldable

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

  1. public boolean filter(Object cell)
  2. {
  3. return isCellFoldable(cell, collapse);
  4. }
  5. });

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. public boolean filter(Object cell)
  2. {
  3. return isCellFoldable(cell, collapse);
  4. }
  5. });

代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn

  1. /**
  2. * Returns true if the given cell is expandable. This implementation
  3. * returns true if the cell has at least one child and its style
  4. * does not specify mxConstants.STYLE_FOLDABLE to be 0.
  5. *
  6. * @param cell <mxCell> whose expandable state should be returned.
  7. * @return Returns true if the given cell is expandable.
  8. */
  9. public boolean isCellFoldable(Object cell, boolean collapse)
  10. {
  11. boolean ret = super.isCellFoldable(cell, collapse);
  12. if (cell instanceof VSubProcess)
  13. // || cell instanceof VExternalSubProcess)
  14. {
  15. ret = true;
  16. }
  17. return ret;
  18. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Returns the icon used to display the collapsed state of the specified
  3. * cell state. This returns null for all edges.
  4. */
  5. public ImageIcon getFoldingIcon(mxCellState state)
  6. {
  7. if (state != null && isFoldingEnabled()
  8. && !getGraph().getModel().isEdge(state.getCell()))
  9. {
  10. Object cell = state.getCell();
  11. boolean tmp = graph.isCellCollapsed(cell);
  12. if (graph.isCellFoldable(cell, !tmp))
  13. {
  14. return (tmp) ? collapsedIcon : expandedIcon;
  15. }
  16. }
  17. return null;
  18. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Returns the icon used to display the collapsed state of the specified
  3. * cell state. This returns null for all edges.
  4. */
  5. public ImageIcon getFoldingIcon(mxCellState state)
  6. {
  7. if (state != null && isFoldingEnabled()
  8. && !getGraph().getModel().isEdge(state.getCell()))
  9. {
  10. Object cell = state.getCell();
  11. boolean tmp = graph.isCellCollapsed(cell);
  12. if (graph.isCellFoldable(cell, !tmp))
  13. {
  14. return (tmp) ? collapsedIcon : expandedIcon;
  15. }
  16. }
  17. return null;
  18. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. if ((!checkFoldable || isCellFoldable(cells[i], collapse))
  2. && collapse != isCellCollapsed(cells[i]))

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. if ((!checkFoldable || isCellFoldable(cells[i], collapse))
  2. && collapse != isCellCollapsed(cells[i]))

相关文章

mxGraph类方法