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


Java LayerWidget.bringToFront方法代码示例

本文整理汇总了Java中org.netbeans.api.visual.widget.LayerWidget.bringToFront方法的典型用法代码示例。如果您正苦于以下问题:Java LayerWidget.bringToFront方法的具体用法?Java LayerWidget.bringToFront怎么用?Java LayerWidget.bringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.visual.widget.LayerWidget的用法示例。


在下文中一共展示了LayerWidget.bringToFront方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: movementStarted

import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
@Override
public void movementStarted(Widget widget) {
    locationChanged = false;
    INodeWidget nodeWidget = (INodeWidget) widget;
    NBModelerUtil.hideContextPalette(nodeWidget.getModelerScene());
    nodeWidget.hideResizeBorder();
    LayerWidget interractionLayer = ((IModelerScene) widget.getScene()).getInterractionLayer();
    LayerWidget connectionLayer = ((IModelerScene) widget.getScene()).getConnectionLayer();
    interractionLayer.bringToFront();
    connectionLayer.bringToFront();

    Object object = scene.findObject(widget);
    if (scene.isNode(object)) {
        for (Object o : scene.getSelectedObjects()) {
            if (scene.isNode(o)) {
                Widget w = scene.findWidget(o);
                if (w != null) {
                    originals.put(w, w.getPreferredLocation());
                }
            }
        }
    } else {
        originals.put(widget, widget.getPreferredLocation());
    }
}
 
开发者ID:jGauravGupta,项目名称:jBPMNSuite,代码行数:26,代码来源:MultiMoveProvider.java

示例2: AbstractPModelerScene

import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public AbstractPModelerScene() {
    setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_CHILDREN);
    backgroundLayer = new LayerWidget(this);
    mainLayer = new LayerWidget(this);
    connectionLayer = new LayerWidget(this);
    interractionLayer = new LayerWidget(this);
    labelLayer = new LayerWidget(this);
    addChild(backgroundLayer);
    addChild(mainLayer);
    addChild(interractionLayer);
    addChild(connectionLayer);
    addChild(labelLayer);

    connectionLayer.bringToFront();
    labelLayer.bringToFront();

    router = new OrthogonalSearchRouter(new WidgetsCollisionCollector (mainLayer, connectionLayer));//RouterFactory.createFreeRouter();
    satelliteView = this.createSatelliteView();
    setActiveTool(DesignerTools.SELECT);
}
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:21,代码来源:AbstractPModelerScene.java

示例3: AbstractModelerScene

import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public AbstractModelerScene() {

        setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_CHILDREN);

        backgroundLayer = new LayerWidget(this);
        mainLayer = new LayerWidget(this);
        connectionLayer = new LayerWidget(this);
        interractionLayer = new LayerWidget(this);
        boundaryWidgetLayer = new LayerWidget(this);
        labelLayer = new LayerWidget(this);
        addChild(backgroundLayer);
        addChild(mainLayer);
        addChild(interractionLayer);
        addChild(connectionLayer);
        addChild(boundaryWidgetLayer);
        addChild(labelLayer);

        boundaryWidgetLayer.bringToFront();
        connectionLayer.bringToFront();
        labelLayer.bringToFront();

        router = RouterFactory.createFreeRouter();
//          router = RouterFactory.createOrthogonalSearchRouter(mainLayer);

        satelliteView = this.createSatelliteView();
        //  idGenerator = new UltraSimpleIdGenerator();
        setActiveTool(DesignerTools.SELECT);
// Zoom Action
//        getActions ().addAction (ActionFactory.createZoomAction (1.05, true));
//        getActions ().addAction (ActionFactory.createPanAction ());
        //multi move rectangular selection of widgets
        // getActions ().addAction (ActionFactory.createRectangularSelectAction (this, backgroundLayer));

//     getPriorActions().addAction(new WidgetAction.Adapter () {
//            @Override
//            public State mousePressed(Widget widget, WidgetMouseEvent event) {
//                getView().requestFocus();
//                return State.REJECTED;
//            }
//        });
        this.setContextPaletteManager(new SwingPaletteManager((IModelerScene) this));

    }
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:44,代码来源:AbstractModelerScene.java


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