本文整理匯總了Java中edu.mit.blocks.workspace.BlockCanvas類的典型用法代碼示例。如果您正苦於以下問題:Java BlockCanvas類的具體用法?Java BlockCanvas怎麽用?Java BlockCanvas使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BlockCanvas類屬於edu.mit.blocks.workspace包,在下文中一共展示了BlockCanvas類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: TypeBlockManager
import edu.mit.blocks.workspace.BlockCanvas; //導入依賴的package包/類
/**
* TypeBlockManager Constructor
*/
public TypeBlockManager(Workspace workspace, BlockCanvas component) {
this.workspace = workspace;
// turned off the automated block placements
KeyInputMap.enableDefaultKeyMapping(false);
this.autoCompletePanel = new AutoCompletePanel(workspace);
this.blockCanvas = component;
this.focusManager = workspace.getFocusManager();
}