本文整理汇总了Java中org.netbeans.api.visual.layout.LayoutFactory.createVerticalFlowLayout方法的典型用法代码示例。如果您正苦于以下问题:Java LayoutFactory.createVerticalFlowLayout方法的具体用法?Java LayoutFactory.createVerticalFlowLayout怎么用?Java LayoutFactory.createVerticalFlowLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.api.visual.layout.LayoutFactory
的用法示例。
在下文中一共展示了LayoutFactory.createVerticalFlowLayout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TLScene
import org.netbeans.api.visual.layout.LayoutFactory; //导入方法依赖的package包/类
public TLScene(TLDatabase db) {
LayoutFactory.SerialAlignment ALIGNMENT = LayoutFactory.SerialAlignment.LEFT_TOP;
Layout flowLayout = LayoutFactory.createVerticalFlowLayout(ALIGNMENT, 10);
getActions().addAction(ActionFactory.createPanAction());
// add main layer
this.mainLayer = new LayerWidget(this);
this.mainLayer.setLayout(flowLayout);
this.addChild(mainLayer);
// add overlay layer
this.overlayLayer = new LayerWidget(this);
this.addChild(overlayLayer);
// add CurrentTimeWidget to over
// currentTimeWidget = new CurrentTimeWidget(this, db);
// overlayLayer.addChild(currentTimeWidget);
// add widget showing ticks above
ticsWidgety = new TimeTicsWidget(this);
this.mainLayer.addChild(ticsWidgety);
}
示例2: SlotLayout
import org.netbeans.api.visual.layout.LayoutFactory; //导入方法依赖的package包/类
public SlotLayout(HorizontalAlignment alignment, boolean vertical) {
this.alignment = alignment;
baseLayout = LayoutFactory.createVerticalFlowLayout();
this.vertical = vertical;
}