本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}