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

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

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

mxGraph.getConnections介绍

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

代码示例

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

  1. /**
  2. * Returns a boolean indicating if the given <em>mxCell</em> should be ignored as a vertex. This returns true if the cell has no connections.
  3. *
  4. * @param vertex
  5. * Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. public boolean isVertexIgnored(Object vertex) {
  9. return super.isVertexIgnored(vertex) || graph.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative() || graph.getConnections(vertex).length == 0;
  10. }

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

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

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

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

代码示例来源: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)
  12. {
  13. return getConnections(cell, parent, 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)
  12. {
  13. return getConnections(cell, parent, false);
  14. }

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a
  3. * vertex. This returns true if the cell has no connections.
  4. *
  5. * @param vertex Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. public boolean isVertexIgnored(Object vertex)
  9. {
  10. return super.isVertexIgnored(vertex)
  11. || graph.getConnections(vertex).length == 0;
  12. }

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a
  3. * vertex. This returns true if the cell has no connections.
  4. *
  5. * @param vertex Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. public boolean isVertexIgnored(Object vertex)
  9. {
  10. return super.isVertexIgnored(vertex)
  11. || graph.getConnections(vertex).length == 0;
  12. }

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a
  3. * vertex. This returns true if the cell has no connections.
  4. *
  5. * @param vertex Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. public boolean isVertexIgnored(Object vertex)
  9. {
  10. return super.isVertexIgnored(vertex)
  11. || graph.getConnections(vertex).length == 0;
  12. }

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a
  3. * vertex. This returns true if the cell has no connections.
  4. *
  5. * @param vertex Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. public boolean isVertexIgnored(Object vertex)
  9. {
  10. return super.isVertexIgnored(vertex)
  11. || graph.getConnections(vertex).length == 0;
  12. }

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

  1. Object[] conns = getConnections(cell, (isolate) ? parent
  2. : null);
  3. int fanOut = 0;

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a vertex. This returns true if the cell has no connections.
  3. *
  4. * @param vertex
  5. * Object that represents the vertex to be tested.
  6. * @return Returns true if the vertex should be ignored.
  7. */
  8. @Override
  9. public boolean isVertexIgnored(Object vertex) {
  10. return super.isVertexIgnored(vertex) || graph.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative() || graph.getConnections(vertex).length == 0;
  11. }

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

  1. Object[] conns = getConnections(cell, (isolate) ? parent
  2. : null);
  3. int fanOut = 0;

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

  1. /**
  2. * Returns a boolean indicating if the given <mxCell> should be ignored as a vertex. This returns true if the cell
  3. * has no connections.
  4. *
  5. * @param vertex
  6. * Object that represents the vertex to be tested.
  7. * @return Returns true if the vertex should be ignored.
  8. */
  9. public boolean isVertexIgnored(Object vertex) {
  10. return super.isVertexIgnored(vertex) || graph.isSwimlane(vertex) || graph.getModel().getGeometry(vertex).isRelative()
  11. || graph.getConnections(vertex).length == 0;
  12. }

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

  1. Object[] conns = graph.getConnections(cell, parent, true);
  2. int fanOut = 0;
  3. int fanIn = 0;

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

  1. Object[] conns = graph.getConnections(cell, parent, true);
  2. int fanOut = 0;
  3. int fanIn = 0;

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

  1. .getConnections(u);
  2. Object[] opp = graph.getOpposites(e, u);

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

  1. .getConnections(u);
  2. Object[] opp = graph.getOpposites(e, u);

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

  1. .getConnections(obj);

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

  1. Object[] edges = getConnections(cells[i]);

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

  1. Object[] edges = getConnections(cells[i]);

相关文章

mxGraph类方法