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


Java TypeBlockManager类代码示例

本文整理汇总了Java中edu.mit.blocks.workspace.typeblocking.TypeBlockManager的典型用法代码示例。如果您正苦于以下问题:Java TypeBlockManager类的具体用法?Java TypeBlockManager怎么用?Java TypeBlockManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Workspace

import edu.mit.blocks.workspace.typeblocking.TypeBlockManager; //导入依赖的package包/类
public Workspace() {
    super();
    setLayout(null);
    setBackground(Color.WHITE);
    setPreferredSize(new Dimension(800, 600));

    this.factory = new FactoryManager(this);
    this.addWorkspaceListener(this.factory);
    this.blockCanvas.getHorizontalModel().addChangeListener(this);
    for (final Explorer exp : factory.getNavigator().getExplorers()) {
        exp.addListener(this);
    }

    this.miniMap = new MiniMap(this);
    this.addWidget(this.miniMap, true, true);
    this.addComponentListener(new ComponentAdapter() {
        public void componentResized(ComponentEvent e) {
            miniMap.repositionMiniMap();
            blockCanvas.reformBlockCanvas();
            blockCanvasLayer.setSize(getSize());
            blockCanvasLayer.validate();
        }
    });

    blockCanvasLayer = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true,
            factory.getJComponent(), blockCanvas.getJComponent());
    blockCanvasLayer.setOneTouchExpandable(true);
    blockCanvasLayer.setDividerSize(6);
    add(blockCanvasLayer, BLOCK_LAYER);
    validate();
    addPageAt(Page.getBlankPage(this), 0, false);

    this.workspaceWidgets.add(factory);

    this.focusManager = new FocusTraversalManager(this);

    this.typeBlockManager = new TypeBlockManager(this, blockCanvas);
}
 
开发者ID:heqichen,项目名称:openblocks,代码行数:39,代码来源:Workspace.java

示例2: getTypeBlockManager

import edu.mit.blocks.workspace.typeblocking.TypeBlockManager; //导入依赖的package包/类
/**
 * The type block manager, if defined.
 * @return The manager.
 * @see #enableTypeBlocking(boolean)
 */
public TypeBlockManager getTypeBlockManager() {
    return typeBlockManager;
}
 
开发者ID:heqichen,项目名称:openblocks,代码行数:9,代码来源:Workspace.java


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