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

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

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

Layout.initialize介绍

[英]Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.
[中]初始化节点中可能在构造函数期间未设置的字段。必须在迭代开始之前调用。

代码示例

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

/**
 * 
 * @see edu.uci.ics.jung.algorithms.layout.Layout#initialize()
 */
public void initialize() {
  delegate.initialize();
}

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

public void initialize() {
  delegate.initialize();
}

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

public void initialize() {
  delegate.initialize();
  for(Layout<V,E> layout : layouts.keySet()) {
    layout.initialize();
  }
}

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

public void initialize() {
  layout.initialize();
}

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

/**
 * 
 * @see edu.uci.ics.jung.algorithms.layout.Layout#initialize()
 */
public void initialize() {
  delegate.initialize();
  for(Layout<V,E> layout : layouts.keySet()) {
    layout.initialize();
  }
}

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

public void actionPerformed(ActionEvent e) {
        Layout<Integer,Number> layout = vv.getGraphLayout();
        layout.initialize();
        Relaxer relaxer = vv.getModel().getRelaxer();
        if(relaxer != null) {
//                if(layout instanceof IterativeContext) {
          relaxer.stop();
          relaxer.prerelax();
          relaxer.relax();
        }
      }});

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

public void actionPerformed(ActionEvent arg0) {
  Layout<Number, Number> layout = vv.getGraphLayout();
  layout.initialize();
  Relaxer relaxer = vv.getModel().getRelaxer();
  if(relaxer != null) {
    relaxer.stop();
    relaxer.prerelax();
    relaxer.relax();
  }
}

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

layout.initialize();
if(relaxer == null) {
  relaxer = new VisRunner((IterativeContext)this.layout);

代码示例来源:origin: de.tudarmstadt.ukp.dkpro.wsd/de.tudarmstadt.ukp.dkpro.wsd.graphconnectivity

vv.getRenderContext().getPickedVertexState().pick(vertex2, true);
vv.getRenderContext().getPickedEdgeState().pick(edge, true);
layout.initialize();

相关文章