Uses of Interface
twaver.Generator

Packages that use Generator
twaver   
twaver.layout   
twaver.model   
twaver.network   
 

Uses of Generator in twaver
 

Subinterfaces of Generator in twaver
 interface IDGenerator
          id生成器,用于生成元素编号,默认为递增整数
 

Uses of Generator in twaver.layout
 

Methods in twaver.layout with parameters of type Generator
 void AutoLayouter.setElementSizeGenerator(Generator<Node,Size> elementSizeGenerator)
          设置网元大小生成器,默认取网元UI大小,网元UI不存在时,取网元的计算大小 Node.getCalculateSize()
 

Constructors in twaver.layout with parameters of type Generator
AutoLayouter(Network network, int layoutType, java.lang.Runnable callback, int xOffset, int yOffset, Generator<Node,Size> elementSizeGenerator)
          构造函数,自动布局,twaver默认实现了几种布局算法,支持树形布局,圆形布局,星形布局,层次布局
 

Uses of Generator in twaver.model
 

Methods in twaver.model that return Generator
 Generator<T,java.lang.Object> QuickFinder.getValueGenerator()
          Get the value generator function.
 

Constructors in twaver.model with parameters of type Generator
QuickFinder(DataBox<T> dataBox, java.lang.String propertyName, java.lang.String propertyType, Generator<T,java.lang.Object> valueGenerator, IFilter<T> filter)
          构造函数,快速查找器,通过元素的某个属性查找相关元素,比如通过元素名称查找,下面的例子是查找所有名称为"pc"的元素:
 

Uses of Generator in twaver.network
 

Methods in twaver.network with parameters of type Generator
 void Network.setLabelGenerator(Generator<Element,java.lang.String> labelGenerator)
          设置网元文本生成器,默认取网元的name属性