Package org.eclipse.gef.handles

Examples of org.eclipse.gef.handles.ResizeHandle


    return super.createSelectionHandles();
  }

  private Handle createHandle(GraphicalEditPart owner, int direction,
      DragTracker tracker, Cursor cursor) {
    ResizeHandle handle = new ResizeHandle(owner, new ColumnCornerLocator(
        owner, direction), cursor);
    handle.setCursor(cursor);
    handle.setDragTracker(tracker);
    return handle;
  }
View Full Code Here


  }
 
  @SuppressWarnings({ "rawtypes", "unchecked" })
  protected void createResizeHandle(List handles, int direction) {
    if ((getResizeDirections() & direction) == direction) {
      ResizeHandle handle = new ResizeHandle((GraphicalEditPart) getHost(), direction) {
        @Override
        protected Color getBorderColor() {
          return (isPrimary()) ? ColorConstants.white : getOutlineColor();
        }
        @Override
        protected Color getFillColor() {
          return (isPrimary()) ? getOutlineColor() : ColorConstants.white;
        }
      };
      handle.setDragTracker(getResizeTracker(direction));
      handle.setCursor( Cursors.getDirectionalCursor(direction, getHostFigure().isMirrored()));
      handles.add(handle);
    } else {
      // display 'resize' handle to allow dragging or indicate selection only
      createDragHandle(handles, direction);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.handles.ResizeHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.