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


Java Router类代码示例

本文整理汇总了Java中org.netbeans.api.visual.router.Router的典型用法代码示例。如果您正苦于以下问题:Java Router类的具体用法?Java Router怎么用?Java Router使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Router类属于org.netbeans.api.visual.router包,在下文中一共展示了Router类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUseBezierRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
private void setUseBezierRouter(boolean value) {
    Router router;
    if (value) {
        router = new PolylineRouterV2(new WidgetCollisionCollector() {
            @Override
            public void collectCollisions(List<Widget> collisions) {
                collisions.addAll(getNodeWidgets());
            }
        });
    } else {
        router = RouterFactory.createDirectRouter();
    }

    for (CfgEdge e : this.getEdges()) {
        EdgeWidget ew = (EdgeWidget) this.findWidget(e);
        ew.setRouter(router);
    }
    this.validate();
    getPreferences().putBoolean(PREFERENCE_ROUTER, value);
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:21,代码来源:CfgScene.java

示例2: VMDConnectionWidget

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * Creates a connection widget with a specific router.
 * @param scene the scene
 * @param router the router
 */
public VMDConnectionWidget (Scene scene, Router router) {
    this (scene, VMDFactory.getOriginalScheme ());
    if (router != null)
        setRouter (router);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:VMDConnectionWidget.java

示例3: setRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * Sets a control-points-based path router of the connection widget.
 * @param router the path router
 */
public final void setRouter (Router router) {
    assert router != null;
    this.router = router;
    reroute ();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:ConnectionWidget.java

示例4: getRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * @return the router
 */
@Override
public Router getRouter() {
    return router;
}
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:8,代码来源:AbstractPModelerScene.java

示例5: setRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * @param router the router to set
 */
public void setRouter(Router router) {
    this.router = router;
}
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:7,代码来源:AbstractPModelerScene.java

示例6: getOrthogonalRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
public Router getOrthogonalRouter() {
    return orthoRouter;
}
 
开发者ID:donatellosantoro,项目名称:Llunatic,代码行数:4,代码来源:LunaticDepScene.java

示例7: getFreeRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
public Router getFreeRouter() {
    return freeRouter;
}
 
开发者ID:donatellosantoro,项目名称:Llunatic,代码行数:4,代码来源:LunaticDepScene.java

示例8: getRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * Returns the control-points-based path router of the connection widget.
 * @return the path router
 */
public final Router getRouter () {
    return router;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:ConnectionWidget.java

示例9: getRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * Returns the control-points-based path router of the connection widget.
 *
 * @return the path router
 */
Router getRouter();
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:7,代码来源:IConnectionWidget.java

示例10: setRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
/**
 * Sets a control-points-based path router of the connection widget.
 *
 * @param router the path router
 */
void setRouter(Router router);
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:7,代码来源:IConnectionWidget.java

示例11: getRouter

import org.netbeans.api.visual.router.Router; //导入依赖的package包/类
Router getRouter(); 
开发者ID:jeddict,项目名称:NBModeler,代码行数:2,代码来源:IModelerScene.java


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