本文整理了Java中com.mxgraph.view.mxGraph.getConnectionConstraint()
方法的一些代码示例,展示了mxGraph.getConnectionConstraint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getConnectionConstraint()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称: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
/**
* Sets the initial absolute terminal points in the given state before the
* edge style is computed.
*
* @param edge
* Cell state whose initial terminal points should be updated.
* @param source
* Cell state which represents the source terminal.
* @param target
* Cell state which represents the target terminal.
*/
public void updateFixedTerminalPoints(mxCellState edge, mxCellState source,
mxCellState target)
{
updateFixedTerminalPoint(edge, source, true,
graph.getConnectionConstraint(edge, source, true));
updateFixedTerminalPoint(edge, target, false,
graph.getConnectionConstraint(edge, target, false));
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Sets the initial absolute terminal points in the given state before the
* edge style is computed.
*
* @param edge
* Cell state whose initial terminal points should be updated.
* @param source
* Cell state which represents the source terminal.
* @param target
* Cell state which represents the target terminal.
*/
public void updateFixedTerminalPoints(mxCellState edge, mxCellState source,
mxCellState target)
{
updateFixedTerminalPoint(edge, source, true,
graph.getConnectionConstraint(edge, source, true));
updateFixedTerminalPoint(edge, target, false,
graph.getConnectionConstraint(edge, target, false));
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
.getGraph().getConnectionConstraint(clone, sourceState,
true);
mxConnectionConstraint targetConstraint = graphComponent
.getGraph().getConnectionConstraint(clone, targetState,
false);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
.getGraph().getConnectionConstraint(clone, sourceState,
true);
mxConnectionConstraint targetConstraint = graphComponent
.getGraph().getConnectionConstraint(clone, targetState,
false);
内容来源于网络,如有侵权,请联系作者删除!