本文整理了Java中edu.uci.ics.jung.algorithms.layout.Layout.lock()
方法的一些代码示例,展示了Layout.lock()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.lock()
方法的具体详情如下:
包路径:edu.uci.ics.jung.algorithms.layout.Layout
类名称:Layout
方法名:lock
[英]Sets a flag which fixes this vertex in place.
[中]设置将此顶点固定到位的标志。
代码示例来源:origin: org.opendaylight.controller.thirdparty/net.sf.jung2
/**
* @see edu.uci.ics.jung.algorithms.layout.Layout#lock(Object, boolean)
*/
public void lock(V v, boolean state) {
delegate.lock(v, state);
}
代码示例来源:origin: net.sf.jung/jung-visualization
public void lock(V v, boolean state) {
layout.lock(v, state);
}
代码示例来源:origin: net.sf.jung/jung-algorithms
public void lock(V v, boolean state) {
delegate.lock(v, state);
}
代码示例来源:origin: net.sf.jung/jung-visualization
public void lock(V v, boolean state) {
dontmove.add(v);
delegate.lock(v, state);
}
代码示例来源:origin: net.sf.jung/jung-algorithms
/**
* Locks this vertex in the main layout and in any sublayouts whose graph contains
* this vertex.
* @param v the vertex whose locked state is to be set
* @param state {@code true} if the vertex is to be locked, and {@code false} if unlocked
*/
public void lock(V v, boolean state) {
for(Layout<V,E> layout : layouts.keySet()) {
if(layout.getGraph().getVertices().contains(v)) {
layout.lock(v, state);
}
}
delegate.lock(v, state);
}
代码示例来源:origin: org.opendaylight.controller.thirdparty/net.sf.jung2
/**
* override to lock or unlock this vertex in any layout with
* a subgraph containing it
* @param v
* @param state
* @see edu.uci.ics.jung.algorithms.layout.Layout#lock(java.lang.Object, boolean)
*/
public void lock(V v, boolean state) {
for(Layout<V,E> layout : layouts.keySet()) {
if(layout.getGraph().getVertices().contains(v)) {
layout.lock(v, state);
}
}
delegate.lock(v, state);
}
内容来源于网络,如有侵权,请联系作者删除!