Examples of ResizeHandle


Examples of mindnotes.client.ui.resize.ResizeHandle

        attach(_html.getElement());
      };
    };

    _flowPanel.add(_html);
    ResizeHandle handle = new ResizeHandle(controller, _flowPanel);
    handle.setListener(new ResizeHandle.Listener() {

      @Override
      public void onResized() {
        fireLayoutChanged();
      }
View Full Code Here

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

Examples of org.eclipse.gef.handles.ResizeHandle

  }
 
  @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

Examples of org.eclipse.wb.gef.graphical.handles.ResizeHandle

  protected final Handle createMoveHandle() {
    return new MoveHandle(getHost());
  }

  protected final Handle createResizeHandle(int direction) {
    ResizeHandle handle = new ResizeHandle(getHost(), direction);
    handle.setDragTrackerTool(new ResizeTracker(direction, REQ_RESIZE));
    return handle;
  }
View Full Code Here

Examples of org.eclipse.wb.gef.graphical.handles.ResizeHandle

    return handle;
  }

  protected final Handle createResizeHandle(int direction, double percent, final Color fillColor) {
    ILocator locator = createComponentLocator(direction, percent);
    ResizeHandle handle = new ResizeHandle(getHost(), direction, locator) {
      @Override
      protected Color getBorderColor() {
        return IColorConstants.black;
      }

      @Override
      protected Color getFillColor() {
        return isPrimary() ? fillColor : IColorConstants.white;
      }
    };
    handle.setDragTrackerTool(new ResizeTracker(direction, REQ_RESIZE));
    return handle;
  }
View Full Code Here

Examples of org.gvt.figure.ResizeHandle

    return list;
  }

  static Handle createHandle(GraphicalEditPart owner, int direction)
  {
    ResizeHandle handle = new ResizeHandle(owner, direction, true);
    return handle;
  }
View Full Code Here

Examples of org.gvt.figure.ResizeHandle

    return list;
  }

  static Handle createHandle(GraphicalEditPart owner, int direction)
  {
    ResizeHandle handle = new ResizeHandle(owner, direction, false);
    return handle;
  }
View Full Code Here

Examples of org.joshy.sketch.canvas.ResizeHandle

        tempSelection.clear();
        dragRectStartPoint = null;
        dragRectEndPoint = null;
        pressed = false;
        if(selectedHandle instanceof ResizeHandle) {
            ResizeHandle rh = (ResizeHandle) selectedHandle;
            final Bounds startBounds = this.resizeStartBounds;
            final SResizeableNode sn = rh.getResizeableNode();
            final Bounds endBounds = new Bounds(sn.getX(), sn.getY(), sn.getWidth(), sn.getHeight());
            context.getUndoManager().pushAction(new UndoManager.UndoableAction(){
                public void executeUndo() {
                    sn.setX(startBounds.getX());
                    sn.setY(startBounds.getY());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.