本文整理汇总了Java中org.eclipse.gef.tools.DragEditPartsTracker类的典型用法代码示例。如果您正苦于以下问题:Java DragEditPartsTracker类的具体用法?Java DragEditPartsTracker怎么用?Java DragEditPartsTracker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DragEditPartsTracker类属于org.eclipse.gef.tools包,在下文中一共展示了DragEditPartsTracker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
@Override
public DragTracker getDragTracker(Request request) {
return new DragEditPartsTracker(this) {
protected EditPart getTargetEditPart() {
return getParent();
}
};
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:TransitionLabelEditPart.java
示例2: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
public DragTracker getDragTracker(Request request) {
return new DragEditPartsTracker(this) {
protected Cursor calculateCursor() {
if (isInState(STATE_INVALID))
return Cursors.NO;
return getCurrentCursor();
}
protected boolean isMove() {
return true;
}
};
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:JDGuideEditPart.java
示例3: initialize
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* Initializes the handle. Sets the {@link org.eclipse.gef.DragTracker} and
* DragCursor.
*/
protected void initialize() {
setOpaque(false);
border = new CornerTriangleBorder(false);
setBorder(border);
setCursor(Cursors.SIZEALL);
setDragTracker(new DragEditPartsTracker(getOwner()));
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:12,代码来源:NonResizableHandle.java
示例4: createNonResizableHandle
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
static Handle createNonResizableHandle(GraphicalEditPart owner, int direction)
{
ResizeHandle handle = new ResizeHandle(owner, direction);
handle.setCursor(Cursors.SIZEALL);
handle.setDragTracker(new DragEditPartsTracker(owner));
return handle;
}
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:8,代码来源:InstallOptionsHandleKit.java
示例5: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
public DragTracker getDragTracker( Request req )
{
DragEditPartsTracker track = new ReportElementDragTracker( this ) {
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.tools.SelectEditPartTracker#handleButtonDown(int)
*/
protected boolean handleButtonDown( int button )
{
if ( getCurrentViewer( ) instanceof DeferredGraphicalViewer )
{
( (DeferredGraphicalViewer) getCurrentViewer( ) ).initStepDat( );
}
boolean bool = super.handleButtonDown( button );
if ( ( button == 3 || button == 1 ) )
// && isInState(STATE_INITIAL))
{
if ( getSourceEditPart( ) instanceof FirstLevelHandleDataItemEditPart )
{
FirstLevelHandleDataItemEditPart first = (FirstLevelHandleDataItemEditPart) getSourceEditPart( );
if ( first.contains( getLocation( ) ) )
{
//MenuManager manager = new LevelCrosstabPopMenuProvider( getViewer( ) );
manager.createContextMenu( getViewer( ).getControl( ) );
Menu menu = manager.getMenu( );
menu.setVisible( true );
return true;
}
}
}
return bool;
}
};
return track;
}
开发者ID:eclipse,项目名称:birt,代码行数:40,代码来源:FirstLevelHandleDataItemEditPart.java
示例6: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
public DragTracker getDragTracker( Request req )
{
return new DragEditPartsTracker( this ) {
protected boolean handleDragInProgress( )
{
return true;
}
};
}
开发者ID:eclipse,项目名称:birt,代码行数:12,代码来源:ListBandEditPart.java
示例7: createHandle
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
static Handle createHandle( GraphicalEditPart owner, int direction )
{
ReportResizeHandle handle = new ReportResizeHandle( owner, direction );
handle.setCursor( SharedCursors.SIZEALL );
handle.setDragTracker( new DragEditPartsTracker( owner ) );
return handle;
}
开发者ID:eclipse,项目名称:birt,代码行数:8,代码来源:ReportNonResizableHandleKit.java
示例8: createHandle
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
static Handle createHandle(GraphicalEditPart owner, int direction) {
ResizeHandle handle = new ResizeHandle(owner, direction);
handle.setCursor(SharedCursors.SIZEALL);
handle.setDragTracker(new DragEditPartsTracker(owner));
return handle;
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:7,代码来源:NonResizableHandleKit.java
示例9: createDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* Overridden to create a {@link DragEditPartsTracker}.
*
* @see org.eclipse.gef.handles.AbstractHandle#createDragTracker()
*/
protected DragTracker createDragTracker() {
DragEditPartsTracker tracker = new DragEditPartsTracker(getOwner());
tracker.setDefaultCursor(getCursor());
return tracker;
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:11,代码来源:MoveHandle.java
示例10: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
public DragTracker getDragTracker( Request req )
{
DragEditPartsTracker track = new DragEditPartsTracker( this );
return track;
}
开发者ID:eclipse,项目名称:birt,代码行数:6,代码来源:DatasetNodeEditPart.java
示例11: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
public DragTracker getDragTracker( Request req )
{
DragEditPartsTracker track = new ReportElementDragTracker( this );
return track;
}
开发者ID:eclipse,项目名称:birt,代码行数:6,代码来源:ReportElementEditPart.java
示例12: createHandle
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* createHandle
*
* @param owner
* @param direction
* @return Handle
*/
static Handle createHandle(GraphicalEditPart owner, int direction) {
ResizeHandle handle = new SequenceLineResizeHandle(owner, direction);
handle.setCursor(SharedCursors.SIZEALL);
handle.setDragTracker(new DragEditPartsTracker(owner));
return handle;
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:14,代码来源:SequenceLineNonResizableHandleKit.java
示例13: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* Returns a drag tracker to use by a resize handle.
* <p>
*
* <i>NOTE</i>: <b>BACKCOMPABILITY SOLUTION FOR ECLIPSE 3.6.x</b>
*
* @return a new {@link ResizeTracker}
* @since 3.7
*/
protected DragEditPartsTracker getDragTracker() {
return new DragEditPartsTracker(getHost());
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:13,代码来源:NoSelectionEditPolicy.java
示例14: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* Returns a drag tracker to use by a resize handle.
*
* @return a new {@link SearchParentDragTracker}
* @since 3.7
*/
protected DragEditPartsTracker getDragTracker() {
return new SearchParentDragTracker(getHost());
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:ElementResizableEditPolicy.java
示例15: getDragTracker
import org.eclipse.gef.tools.DragEditPartsTracker; //导入依赖的package包/类
/**
* Returns a drag tracker to use by a resize handle.
*
* @return a new {@link ResizeTracker}
* @since 3.7
*/
protected DragEditPartsTracker getDragTracker() {
return new DragEditPartsTracker(getHost());
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:10,代码来源:NonResizableEditPolicy.java
注:本文中的org.eclipse.gef.tools.DragEditPartsTracker类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论