本文整理汇总了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());
}
}
示例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);
}
示例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));
}