本文整理汇总了Java中edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer类的典型用法代码示例。如果您正苦于以下问题:Java RandomLocationTransformer类的具体用法?Java RandomLocationTransformer怎么用?Java RandomLocationTransformer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RandomLocationTransformer类属于edu.uci.ics.jung.algorithms.layout.util包,在下文中一共展示了RandomLocationTransformer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
public void initialize() {
setInitializer(new RandomLocationTransformer<V>(getSize()));
maxEpoch = 2000;
epoch = 1;
radiusConstantTime = 100;
radius = 5;
minRadius = 1;
initialAdaption = 90.0D / 100.0D;
adaption = initialAdaption;
minAdaption = 0;
//factor = 0; //Will be set later on
coolingFactor = 2;
//temperature = 0.03;
//initialJumpRadius = 100;
//jumpRadius = initialJumpRadius;
//delay = 100;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:24,代码来源:ISOMLayout.java
示例2: setSize
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
/**
* Sets the dimensions of the available space for layout to {@code size}.
*/
@Override
public void setSize(Dimension size) {
if(initialized == false)
setInitializer(new RandomLocationTransformer<V>(size));
super.setSize(size);
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:10,代码来源:SpringLayout.java
示例3: setSize
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
@Override
public void setSize(Dimension size) {
if(initialized == false) {
setInitializer(new RandomLocationTransformer<V>(size));
}
super.setSize(size);
max_dimension = Math.max(size.height, size.width);
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:9,代码来源:FRLayout.java
示例4: setSize
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
@Override
public void setSize(Dimension size) {
if(initialized == false)
setInitializer(new RandomLocationTransformer<V>(size));
super.setSize(size);
double t = size.width/50.0;
innerBounds.setFrameFromDiagonal(t,t,size.width-t,size.height-t);
max_dimension = Math.max(size.height, size.width);
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:10,代码来源:FRLayout2.java
示例5: FRLayout
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
/**
* Creates an instance of size {@code d} for the specified graph.
*/
public FRLayout(Graph<V, E> g, Dimension d) {
super(g, new RandomLocationTransformer<V>(d), d);
initialize();
max_dimension = Math.max(d.height, d.width);
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:9,代码来源:FRLayout.java
示例6: FRLayout2
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
/**
* Creates an instance of size {@code d} for the specified graph.
*/
public FRLayout2(Graph<V, E> g, Dimension d) {
super(g, new RandomLocationTransformer<V>(d), d);
max_dimension = Math.max(d.height, d.width);
initialize();
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:9,代码来源:FRLayout2.java
示例7: setSize
import edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer; //导入依赖的package包/类
@Override
public void setSize(Dimension size) {
if(initialized == false)
setInitializer(new RandomLocationTransformer<V>(size));
super.setSize(size);
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:7,代码来源:KKLayout.java
注:本文中的edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论