Package org.apache.isis.viewer.dnd

Examples of org.apache.isis.viewer.dnd.Location


            TimePeriod tp = (TimePeriod) object.getField(field);
      int y = (int) (((tp.getStart().longValue() - from) * maxHeight) / to);
            int height = (int) (((tp.getEnd().longValue() - tp.getStart().longValue()) * maxHeight) / to);

            v.setLocation(new Location(x, y));
            v.setSize(new Size(width, height));
        }
    }
View Full Code Here


        for (int i = 0; i < views.length; i++) {
            View v = views[i];
      Size s = v.getRequiredSize();
      v.setSize(s);
      v.setLocation(new Location(x, y));
      x += s.getWidth();
    }
  }
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);
        
         TimePeriod tp = new TimePeriod();
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);
        
         TimePeriod tp = new TimePeriod();
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.Location

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.