Package org.eclipse.wb.gef.graphical.handles

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


    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

TOP

Related Classes of org.eclipse.wb.gef.graphical.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.