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