本文整理汇总了Java中org.eclipse.gef.handles.MoveHandle.setDragTracker方法的典型用法代码示例。如果您正苦于以下问题:Java MoveHandle.setDragTracker方法的具体用法?Java MoveHandle.setDragTracker怎么用?Java MoveHandle.setDragTracker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gef.handles.MoveHandle
的用法示例。
在下文中一共展示了MoveHandle.setDragTracker方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSelectionHandles
import org.eclipse.gef.handles.MoveHandle; //导入方法依赖的package包/类
/**
* Create selection handles in the style as predefined in DeltaEcore
* @see DEGraphicalEditorTheme
*/
@Override
protected List<Object> createSelectionHandles() {
List<Object> list = new ArrayList<Object>();
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setDragTracker(getDragTracker());
if (isDragAllowed()) {
moveHandle.setCursor(Cursors.SIZEALL);
} else {
moveHandle.setCursor(SharedCursors.ARROW);
}
// set line style to meet the predefined theme
DEGraphicalEditorTheme theme = DEGraphicalEditor.getTheme();
LineBorder border = new LineBorder();
border.setColor(theme.getSelectionSecondaryColor());
border.setWidth(theme.getLineWidth());
moveHandle.setBorder(border);
list.add(moveHandle);
return list;
}
示例2: createSelectionHandles
import org.eclipse.gef.handles.MoveHandle; //导入方法依赖的package包/类
/**
* @generated
*/
protected List createSelectionHandles() {
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setBorder(null);
moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
return Collections.singletonList(moveHandle);
}
示例3: createSelectionHandles
import org.eclipse.gef.handles.MoveHandle; //导入方法依赖的package包/类
/**
* @generated
*/
protected List createSelectionHandles() {
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setBorder(null);
moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
return Collections.singletonList(moveHandle);
}
示例4: createSelectionHandles
import org.eclipse.gef.handles.MoveHandle; //导入方法依赖的package包/类
/**
* @generated
*/
protected List createSelectionHandles() {
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setBorder(null);
moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
return Collections.singletonList(moveHandle);
}