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

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

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

mxGraph.getEdges介绍

[英]Returns all visible edges connected to the given cell including loops.
[中]返回连接到给定单元格的所有可见边,包括循环。

代码示例

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

  1. Object[] out = graph.getEdges(cell, parent, invert, !invert, false);

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

  1. /**
  2. * Returns all visible edges connected to the given cell including loops.
  3. *
  4. * @param cell Cell whose edges should be returned.
  5. * @return Returns the edges of the given cell.
  6. */
  7. public Object[] getEdges(Object cell)
  8. {
  9. return getEdges(cell, null);
  10. }

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

  1. /**
  2. * Returns all visible edges connected to the given cell including loops.
  3. *
  4. * @param cell Cell whose edges should be returned.
  5. * @param parent Optional parent of the opposite end for an edge
  6. * to be returned.
  7. * @return Returns the edges of the given cell.
  8. */
  9. public Object[] getEdges(Object cell, Object parent)
  10. {
  11. return getEdges(cell, parent, true, true, true);
  12. }

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

  1. /**
  2. * Returns all visible edges connected to the given cell including loops.
  3. *
  4. * @param cell Cell whose edges should be returned.
  5. * @param parent Optional parent of the opposite end for an edge
  6. * to be returned.
  7. * @return Returns the edges of the given cell.
  8. */
  9. public Object[] getEdges(Object cell, Object parent)
  10. {
  11. return getEdges(cell, parent, true, true, true);
  12. }

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

  1. /**
  2. * Returns all visible edges connected to the given cell including loops.
  3. *
  4. * @param cell Cell whose edges should be returned.
  5. * @return Returns the edges of the given cell.
  6. */
  7. public Object[] getEdges(Object cell)
  8. {
  9. return getEdges(cell, null);
  10. }

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

  1. /**
  2. * Returns the visible outgoing edges for the given cell. If the optional
  3. * parent argument is specified, then only child edges of the given parent
  4. * are returned.
  5. *
  6. * @param cell Cell whose outgoing edges should be returned.
  7. * @param parent Optional parent of the opposite end for an edge
  8. * to be returned.
  9. * @return Returns the outgoing edges of the given cell.
  10. */
  11. public Object[] getOutgoingEdges(Object cell, Object parent)
  12. {
  13. return getEdges(cell, parent, false, true, false);
  14. }

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

  1. /**
  2. * Returns the visible incoming edges for the given cell. If the optional
  3. * parent argument is specified, then only child edges of the given parent
  4. * are returned.
  5. *
  6. * @param cell Cell whose incoming edges should be returned.
  7. * @param parent Optional parent of the opposite end for an edge
  8. * to be returned.
  9. * @return Returns the incoming edges of the given cell.
  10. */
  11. public Object[] getIncomingEdges(Object cell, Object parent)
  12. {
  13. return getEdges(cell, parent, true, false, false);
  14. }

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

  1. /**
  2. * Returns all visible edges connected to the given cell without loops.
  3. * If the optional parent argument is specified, then only child
  4. * edges of the given parent are returned.
  5. *
  6. * @param cell Cell whose connections should be returned.
  7. * @param parent Optional parent of the opposite end for a connection
  8. * to be returned.
  9. * @return Returns the connected edges for the given cell.
  10. */
  11. public Object[] getConnections(Object cell, Object parent, boolean recurse)
  12. {
  13. return getEdges(cell, parent, true, true, false, recurse);
  14. }

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

  1. /**
  2. * Returns the visible incoming edges for the given cell. If the optional
  3. * parent argument is specified, then only child edges of the given parent
  4. * are returned.
  5. *
  6. * @param cell Cell whose incoming edges should be returned.
  7. * @param parent Optional parent of the opposite end for an edge
  8. * to be returned.
  9. * @return Returns the incoming edges of the given cell.
  10. */
  11. public Object[] getIncomingEdges(Object cell, Object parent)
  12. {
  13. return getEdges(cell, parent, true, false, false);
  14. }

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

  1. /**
  2. * Returns the visible outgoing edges for the given cell. If the optional
  3. * parent argument is specified, then only child edges of the given parent
  4. * are returned.
  5. *
  6. * @param cell Cell whose outgoing edges should be returned.
  7. * @param parent Optional parent of the opposite end for an edge
  8. * to be returned.
  9. * @return Returns the outgoing edges of the given cell.
  10. */
  11. public Object[] getOutgoingEdges(Object cell, Object parent)
  12. {
  13. return getEdges(cell, parent, false, true, false);
  14. }

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

  1. /**
  2. * Returns all visible edges connected to the given cell without loops.
  3. * If the optional parent argument is specified, then only child
  4. * edges of the given parent are returned.
  5. *
  6. * @param cell Cell whose connections should be returned.
  7. * @param parent Optional parent of the opposite end for a connection
  8. * to be returned.
  9. * @return Returns the connected edges for the given cell.
  10. */
  11. public Object[] getConnections(Object cell, Object parent, boolean recurse)
  12. {
  13. return getEdges(cell, parent, true, true, false, recurse);
  14. }

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

  1. /**
  2. * Returns the incoming and/or outgoing edges for the given cell.
  3. * If the optional parent argument is specified, then only edges are returned
  4. * where the opposite is in the given parent cell.
  5. *
  6. * @param cell Cell whose edges should be returned.
  7. * @param parent Optional parent. If specified the opposite end of any edge
  8. * must be a direct child of that parent in order for the edge to be returned.
  9. * @param incoming Specifies if incoming edges should be included in the
  10. * result.
  11. * @param outgoing Specifies if outgoing edges should be included in the
  12. * result.
  13. * @param includeLoops Specifies if loops should be included in the result.
  14. * @return Returns the edges connected to the given cell.
  15. */
  16. public Object[] getEdges(Object cell, Object parent, boolean incoming,
  17. boolean outgoing, boolean includeLoops)
  18. {
  19. return getEdges(cell, parent, incoming, outgoing, includeLoops, false);
  20. }

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

  1. /**
  2. * Returns the incoming and/or outgoing edges for the given cell.
  3. * If the optional parent argument is specified, then only edges are returned
  4. * where the opposite is in the given parent cell.
  5. *
  6. * @param cell Cell whose edges should be returned.
  7. * @param parent Optional parent. If specified the opposite end of any edge
  8. * must be a direct child of that parent in order for the edge to be returned.
  9. * @param incoming Specifies if incoming edges should be included in the
  10. * result.
  11. * @param outgoing Specifies if outgoing edges should be included in the
  12. * result.
  13. * @param includeLoops Specifies if loops should be included in the result.
  14. * @return Returns the edges connected to the given cell.
  15. */
  16. public Object[] getEdges(Object cell, Object parent, boolean incoming,
  17. boolean outgoing, boolean includeLoops)
  18. {
  19. return getEdges(cell, parent, incoming, outgoing, includeLoops, false);
  20. }

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

  1. Arrays.asList(getEdges(cell)));
  2. tmp.addAll(Arrays.asList(getEdges(edge)));

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

  1. return graph.getEdges(cell, parent, incoming, outgoing, includeLoops, recurse);
  2. Object[] edges = graph.getEdges(cell, parent, incoming, outgoing, includeLoops, recurse);
  3. List<Object> result = new ArrayList<Object>(edges.length);

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

  1. return graph.getEdges(cell, parent, incoming, outgoing, includeLoops, recurse);
  2. Object[] edges = graph.getEdges(cell, parent, incoming, outgoing, includeLoops, recurse);
  3. List<Object> result = new ArrayList<Object>(edges.length);

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

  1. boolean directed)
  2. Object[] edges = getEdges(source);
  3. List<Object> result = new ArrayList<Object>(edges.length);

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

  1. boolean directed)
  2. Object[] edges = getEdges(source);
  3. List<Object> result = new ArrayList<Object>(edges.length);

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

  1. Object[] out = graph.getEdges(cell, parent, invert, !invert, false);

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

  1. Object[] out = graph.getEdges(cell, parent, invert, !invert, false);

相关文章

mxGraph类方法