edu.uci.ics.jung.algorithms.layout.Layout.isLocked()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(115)

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

Layout.isLocked介绍

[英]Returns true if the position of vertex v is locked.
[中]如果顶点v的位置已锁定,则返回true

代码示例

代码示例来源:origin: org.opendaylight.controller.thirdparty/net.sf.jung2

/**
 * @see edu.uci.ics.jung.algorithms.layout.Layout#isLocked(Object)
 */
public boolean isLocked(V v) {
  return delegate.isLocked(v);
}

代码示例来源:origin: net.sf.jung/jung-algorithms

public boolean isLocked(V v) {
  return delegate.isLocked(v);
}

代码示例来源:origin: net.sf.jung/jung-visualization

public boolean isLocked(V v) {
  return layout.isLocked(v);
}

代码示例来源:origin: net.sf.jung/jung-algorithms

/**
 * @param v the vertex whose locked state is to be returned
 * @return true if v is locked in any of the layouts, and false otherwise
 */
public boolean isLocked(V v) {
  for(Layout<V,E> layout : layouts.keySet()) {
    if (layout.isLocked(v)) {
      return true;
    }
  }
  return delegate.isLocked(v);
}

代码示例来源:origin: org.opendaylight.controller.thirdparty/net.sf.jung2

/**
 * Override to test if the passed vertex is locked in
 * any of the layouts.
 * @param v
 * @return true if v is locked in any of the layouts, and false otherwise
 * @see edu.uci.ics.jung.algorithms.layout.Layout#isLocked(java.lang.Object)
 */
public boolean isLocked(V v) {
  boolean locked = false;
  for(Layout<V,E> layout : layouts.keySet()) {
    locked |= layout.isLocked(v);
  }
  locked |= delegate.isLocked(v);
  return locked;
}

相关文章