本文整理汇总了Java中org.flexdock.docking.drag.effects.DragPreview类的典型用法代码示例。如果您正苦于以下问题:Java DragPreview类的具体用法?Java DragPreview怎么用?Java DragPreview使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DragPreview类属于org.flexdock.docking.drag.effects包,在下文中一共展示了DragPreview类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPreviewPolygon
import org.flexdock.docking.drag.effects.DragPreview; //导入依赖的package包/类
protected void createPreviewPolygon(DragOperation token, DockingPort port, Dockable hover, String region) {
DragPreview preview = getPreviewDelegate(token.getDockable(), port);
if(preview==null)
previewPoly = null;
else {
Map dragContext = getDragContext(token);
previewPoly = preview.createPreviewPolygon(token.getDockable(), port, hover, region, this, dragContext);
}
}
示例2: getPreviewDelegate
import org.flexdock.docking.drag.effects.DragPreview; //导入依赖的package包/类
protected DragPreview getPreviewDelegate(Component dockable, DockingPort port) {
if(!previewInit) {
Dockable d = DockingManager.getDockable(dockable);
previewDelegate = EffectsManager.getPreview(d, port);
previewInit = true;
}
return previewDelegate;
}
示例3: getDragPreview
import org.flexdock.docking.drag.effects.DragPreview; //导入依赖的package包/类
public DragPreview getDragPreview() {
return dragPreview;
}
示例4: setDragPreview
import org.flexdock.docking.drag.effects.DragPreview; //导入依赖的package包/类
public void setDragPreview( DragPreview dragPreview ) {
this.dragPreview = dragPreview;
}
示例5: setDragPreview
import org.flexdock.docking.drag.effects.DragPreview; //导入依赖的package包/类
public static void setDragPreview(DragPreview dragPreview) {
EffectsManager.setPreview(dragPreview);
}