本文整理汇总了Java中org.netbeans.api.visual.layout.Layout类的典型用法代码示例。如果您正苦于以下问题:Java Layout类的具体用法?Java Layout怎么用?Java Layout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Layout类属于org.netbeans.api.visual.layout包,在下文中一共展示了Layout类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TLScene
import org.netbeans.api.visual.layout.Layout; //导入依赖的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: DevolveWidgetLayout
import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
public DevolveWidgetLayout (Widget widget, Layout devolveLayout, boolean animate) {
super (widget.getScene ());
assert devolveLayout != null;
this.widget = widget;
this.devolveLayout = devolveLayout;
this.animate = animate;
}
示例3: setLayout
import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
* Sets the layout of the widget.
* @param layout the layout
*/
public final void setLayout (Layout layout) {
this.layout = layout;
revalidate ();
}
示例4: getLayout
import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
* Returns the layout of the widget.
* @return the layout
*/
public final Layout getLayout () {
return layout;
}
示例5: getLayout
import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
* Returns the layout of the widget.
*
* @return the layout
*/
Layout getLayout();
示例6: setLayout
import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
* Sets the layout of the widget.
*
* @param layout the layout
*/
void setLayout(Layout layout);