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


Java RouterFactory.createOrthogonalSearchRouter方法代码示例

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

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

示例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));
}
 
开发者ID:donatellosantoro,项目名称:Llunatic,代码行数:13,代码来源:LunaticDepScene.java

示例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();
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:12,代码来源:SchemaScene.java


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