本文整理汇总了Java中org.netbeans.api.visual.router.RouterFactory.createOrthogonalSearchRouter方法的典型用法代码示例。如果您正苦于以下问题:Java RouterFactory.createOrthogonalSearchRouter方法的具体用法?Java RouterFactory.createOrthogonalSearchRouter怎么用?Java RouterFactory.createOrthogonalSearchRouter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.api.visual.router.RouterFactory
的用法示例。
在下文中一共展示了RouterFactory.createOrthogonalSearchRouter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: VMDGraphScene
import org.netbeans.api.visual.router.RouterFactory; //导入方法依赖的package包/类
/**
* Creates a VMD graph scene with a specific color scheme.
* @param scheme the color scheme
*/
public VMDGraphScene (VMDColorScheme scheme) {
this.scheme = scheme;
setKeyEventProcessingType (EventProcessingType.FOCUSED_WIDGET_AND_ITS_PARENTS);
addChild (backgroundLayer);
addChild (mainLayer);
addChild (connectionLayer);
addChild (upperLayer);
router = RouterFactory.createOrthogonalSearchRouter (mainLayer, connectionLayer);
getActions ().addAction (ActionFactory.createZoomAction ());
getActions ().addAction (ActionFactory.createPanAction ());
getActions ().addAction (ActionFactory.createRectangularSelectAction (this, backgroundLayer));
sceneLayout = LayoutFactory.createSceneGraphLayout (this, new GridGraphLayout<String, String> ().setChecker (true));
}
示例2: QBGraphScene
import org.netbeans.api.visual.router.RouterFactory; //导入方法依赖的package包/类
public QBGraphScene(QueryBuilderGraphFrame qbGF) {
qbGF._firstTableInserted = false;
mainLayer = new LayerWidget(this);
connectionLayer = new LayerWidget(this);
addChild(mainLayer);
addChild(connectionLayer);
router = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);
getActions().addAction(mouseHoverAction);
// getActions().addAction(ActionFactory.createZoomAction());
// ToDo: qbGF has been passed in only to support the menu; eventually, merge QBGF into this
getActions().addAction(ActionFactory.createPopupMenuAction(qbGF));
}
示例3: LunaticDepScene
import org.netbeans.api.visual.router.RouterFactory; //导入方法依赖的package包/类
public LunaticDepScene(VMDColorScheme scheme) {
this.scheme = scheme;
setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_PARENTS);
addChild(backgroundLayer);
addChild(mainLayer);
addChild(connectionLayer);
addChild(upperLayer);
orthoRouter = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);
getActions().addAction(ActionFactory.createZoomAction());
getActions().addAction(ActionFactory.createPanAction());
getActions().addAction(ActionFactory.createRectangularSelectAction(this, backgroundLayer));
}
示例4: SchemaScene
import org.netbeans.api.visual.router.RouterFactory; //导入方法依赖的package包/类
public SchemaScene()
{
mainLayer = new LayerWidget(this);
addChild(mainLayer);
connectionLayer = new LayerWidget(this);
addChild(connectionLayer);
router = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);
GraphLayout<SchemaClass, SchemaRelationship> graphLayout = GraphLayoutFactory.createOrthogonalGraphLayout(this, true);
SceneLayout sceneLayout = LayoutFactory.createSceneGraphLayout(this, graphLayout);
sceneLayout.invokeLayout();
}