本文整理汇总了Java中edu.mit.blocks.codeblocks.JComponentDragHandler类的典型用法代码示例。如果您正苦于以下问题:Java JComponentDragHandler类的具体用法?Java JComponentDragHandler怎么用?Java JComponentDragHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JComponentDragHandler类属于edu.mit.blocks.codeblocks包,在下文中一共展示了JComponentDragHandler类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDragHandler
import edu.mit.blocks.codeblocks.JComponentDragHandler; //导入依赖的package包/类
public JComponentDragHandler getDragHandler() {
return dragHandler;
}
示例2: FactoryRenderableBlock
import edu.mit.blocks.codeblocks.JComponentDragHandler; //导入依赖的package包/类
/**
* Constructs a new FactoryRenderableBlock instance.
* @param workspace The workspace in use
* @param widget the parent widget of this
* @param blockID the Long ID of its associated Block instance
*/
public FactoryRenderableBlock(Workspace workspace, WorkspaceWidget widget, Long blockID) {
super(workspace, widget, blockID);
this.setBlockLabelUneditable();
dragHandler = new JComponentDragHandler(workspace, this);
}