本文整理匯總了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);
}