Package org.apache.isis.viewer.dnd

Examples of org.apache.isis.viewer.dnd.Location.move()


  private TimePeriod calculate(InternalDrag drag) {
    // TODO this fails when the layout decorator is itself decorated (e.g. by a WindowBorder!
    ScheduleLayout layout = (ScheduleLayout) getParent().getSpecification();
        
    Location location = drag.getLocation();
    location.move(0, -getView().getLocation().getY());
    int top = drag.getOverlay().getLocation().getY() - location.getY();
         int bottom = top + drag.getOverlay().getSize().getHeight();
        
         LOG.debug(top + " " + bottom);
        
View Full Code Here


  private TimePeriod calculate(InternalDrag drag) {
    // TODO this fails when the layout decorator is itself decorated (e.g. by a WindowBorder!
    ScheduleLayout layout = (ScheduleLayout) getParent().getSpecification();
        
    Location location = drag.getLocation();
    location.move(0, -getView().getLocation().getY());
    int top = drag.getOverlay().getLocation().getY() - location.getY();
         int bottom = top + drag.getOverlay().getSize().getHeight();
        
         LOG.debug(top + " " + bottom);
        
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.