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

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

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

mxGraph.findTreeRoots介绍

[英]Returns all visible children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned. This takes into account edges that are being promoted to the given root due to invisible children or collapsed cells.
[中]返回给定父对象中没有传入边的所有可见子对象。如果结果为空,则返回传入边和传出边之间差异最大的。这将考虑由于不可见的子单元或折叠的单元而提升到给定根的边。

代码示例

代码示例来源:origin: Activiti/Activiti

  1. public void execute(Object parent) {
  2. mxIGraphModel model = graph.getModel();
  3. List<Object> roots = graph.findTreeRoots(parent, true, invert);

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

  1. /**
  2. * Returns all visible children in the given parent which do not have
  3. * incoming edges. If the result is empty then the with the greatest
  4. * difference between incoming and outgoing edges is returned. This
  5. * takes into account edges that are being promoted to the given
  6. * root due to invisible children or collapsed cells.
  7. *
  8. * @param parent Cell whose children should be checked.
  9. * @return List of tree roots in parent.
  10. */
  11. public List<Object> findTreeRoots(Object parent)
  12. {
  13. return findTreeRoots(parent, false);
  14. }

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

  1. /**
  2. * Returns all visible children in the given parent which do not have
  3. * incoming edges. If the result is empty then the with the greatest
  4. * difference between incoming and outgoing edges is returned. This
  5. * takes into account edges that are being promoted to the given
  6. * root due to invisible children or collapsed cells.
  7. *
  8. * @param parent Cell whose children should be checked.
  9. * @return List of tree roots in parent.
  10. */
  11. public List<Object> findTreeRoots(Object parent)
  12. {
  13. return findTreeRoots(parent, false);
  14. }

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

  1. /**
  2. * Returns all visible children in the given parent which do not have
  3. * incoming edges. If the result is empty then the children with the
  4. * maximum difference between incoming and outgoing edges are returned.
  5. * This takes into account edges that are being promoted to the given
  6. * root due to invisible children or collapsed cells.
  7. *
  8. * @param parent Cell whose children should be checked.
  9. * @param isolate Specifies if edges should be ignored if the opposite
  10. * end is not a child of the given parent cell.
  11. * @return List of tree roots in parent.
  12. */
  13. public List<Object> findTreeRoots(Object parent, boolean isolate)
  14. {
  15. return findTreeRoots(parent, isolate, false);
  16. }

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

  1. /**
  2. * Returns all visible children in the given parent which do not have
  3. * incoming edges. If the result is empty then the children with the
  4. * maximum difference between incoming and outgoing edges are returned.
  5. * This takes into account edges that are being promoted to the given
  6. * root due to invisible children or collapsed cells.
  7. *
  8. * @param parent Cell whose children should be checked.
  9. * @param isolate Specifies if edges should be ignored if the opposite
  10. * end is not a child of the given parent cell.
  11. * @return List of tree roots in parent.
  12. */
  13. public List<Object> findTreeRoots(Object parent, boolean isolate)
  14. {
  15. return findTreeRoots(parent, isolate, false);
  16. }

代码示例来源:origin: org.flowable/flowable-bpmn-layout

  1. @Override
  2. public void execute(Object parent) {
  3. mxIGraphModel model = graph.getModel();
  4. List<Object> roots = graph.findTreeRoots(parent, true, invert);

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-layout

  1. public void execute(Object parent) {
  2. mxIGraphModel model = graph.getModel();
  3. List<Object> roots = graph.findTreeRoots(parent, true, invert);

相关文章

mxGraph类方法