当前位置: 首页>>代码示例>>Java>>正文


Java Layout类代码示例

本文整理汇总了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);
    }
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:24,代码来源:TLScene.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:DevolveWidgetLayout.java

示例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 ();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:Widget.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:Widget.java

示例5: getLayout

import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
 * Returns the layout of the widget.
 *
 * @return the layout
 */
Layout getLayout();
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:7,代码来源:IWidget.java

示例6: setLayout

import org.netbeans.api.visual.layout.Layout; //导入依赖的package包/类
/**
 * Sets the layout of the widget.
 *
 * @param layout the layout
 */
void setLayout(Layout layout);
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:7,代码来源:IWidget.java


注:本文中的org.netbeans.api.visual.layout.Layout类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。