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

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

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

mxGraph.getConnectionConstraint介绍

[英]Returns an connection constraint that describes the given connection point. This result can then be passed to getConnectionPoint.
[中]返回描述给定连接点的连接约束。然后可以将该结果传递给getConnectionPoint。

代码示例

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

  1. /**
  2. * Sets the initial absolute terminal points in the given state before the
  3. * edge style is computed.
  4. *
  5. * @param edge
  6. * Cell state whose initial terminal points should be updated.
  7. * @param source
  8. * Cell state which represents the source terminal.
  9. * @param target
  10. * Cell state which represents the target terminal.
  11. */
  12. public void updateFixedTerminalPoints(mxCellState edge, mxCellState source,
  13. mxCellState target)
  14. {
  15. updateFixedTerminalPoint(edge, source, true,
  16. graph.getConnectionConstraint(edge, source, true));
  17. updateFixedTerminalPoint(edge, target, false,
  18. graph.getConnectionConstraint(edge, target, false));
  19. }

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

  1. /**
  2. * Sets the initial absolute terminal points in the given state before the
  3. * edge style is computed.
  4. *
  5. * @param edge
  6. * Cell state whose initial terminal points should be updated.
  7. * @param source
  8. * Cell state which represents the source terminal.
  9. * @param target
  10. * Cell state which represents the target terminal.
  11. */
  12. public void updateFixedTerminalPoints(mxCellState edge, mxCellState source,
  13. mxCellState target)
  14. {
  15. updateFixedTerminalPoint(edge, source, true,
  16. graph.getConnectionConstraint(edge, source, true));
  17. updateFixedTerminalPoint(edge, target, false,
  18. graph.getConnectionConstraint(edge, target, false));
  19. }

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

  1. .getGraph().getConnectionConstraint(clone, sourceState,
  2. true);
  3. mxConnectionConstraint targetConstraint = graphComponent
  4. .getGraph().getConnectionConstraint(clone, targetState,
  5. false);

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

  1. .getGraph().getConnectionConstraint(clone, sourceState,
  2. true);
  3. mxConnectionConstraint targetConstraint = graphComponent
  4. .getGraph().getConnectionConstraint(clone, targetState,
  5. false);

相关文章

mxGraph类方法