Examples of Area


Examples of ae.java.awt.geom.Area

     * or whether that shape must be "kept" unmodified.
     * @see #intersectShapes
     * @see #intersectRectShape
     */
    Shape intersectByArea(Shape s1, Shape s2, boolean keep1, boolean keep2) {
        Area a1, a2;

        // First see if we can find an overwriteable source shape
        // to use as our destination area to avoid duplication.
        if (!keep1 && (s1 instanceof Area)) {
            a1 = (Area) s1;
        } else if (!keep2 && (s2 instanceof Area)) {
            a1 = (Area) s2;
            s2 = s1;
        } else {
            a1 = new Area(s1);
        }

        if (s2 instanceof Area) {
            a2 = (Area) s2;
        } else {
            a2 = new Area(s2);
        }

        a1.intersect(a2);
        if (a1.isRectangular()) {
            return a1.getBounds();
        }

        return a1;
    }
View Full Code Here

Examples of com.allen_sauer.gwt.dnd.client.util.Area

   */
  DropController getIntersectDropController(int x, int y) {
    Location location = new CoordinateLocation(x, y);
    for (int i = sortedCandidates.length - 1; i >= 0; i--) {
      Candidate candidate = sortedCandidates[i];
      Area targetArea = candidate.getTargetArea();
      if (targetArea.intersects(location)) {
        return candidate.getDropController();
      }
    }
    return null;
  }
View Full Code Here

Examples of com.google.code.appengine.awt.geom.Area

   
    if (obj == null) {
      return false;
    }
   
    Area area = (Area)clone();
    area.subtract(obj);
    return area.isEmpty();
  }
View Full Code Here

Examples of com.gwcworld.core.bean.Area

    mapJson.setDescription(map.getDescription());
    mapJson.setMilestone(map.isMilestone());
    List<Area> areaList = areaService.getAreaListByMap(map);
    List<AreaJson> areaJsonList = new ArrayList<AreaJson>();
    for (Iterator<Area> iterator = areaList.iterator(); iterator.hasNext();) {
      Area area = iterator.next();
     
      AreaJson areaJson = new AreaJson();
      areaJson.setName(area.getName());
      areaJson.setGridsize(area.getGridsize());
      areaJson.setImgBackground(area.getImgBackground());
      Shape shape = area.getShape();
      ShapeJson shapeJson = new ShapeJson();
      shapeJson.setColorRGBA(shape.getColorRGBA());
      shapeJson.setRotate(shape.getRotate());
      shapeJson.setScaleX(shape.getScaleX());
      shapeJson.setScaleY(shape.getScaleY());
View Full Code Here

Examples of com.haulmont.yarg.formatters.impl.xls.Area

        }
    }

    protected void updateFormulas() {
        for (Map.Entry<Area, List<Area>> entry : areasDependency.entrySet()) {
            Area original = entry.getKey();

            for (Area dependent : entry.getValue()) {
                updateFormulas(original, dependent);
            }
        }
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.geom.Area

    ) {
        if (d == null || !d.ulOn && d.imUlStroke == null && !d.strikeThrough) {
            return segmentOutline; // Nothing to do
        }

        Area res = new Area(segmentOutline);

        float left = (float) trs.getLogicalBounds().getMinX() - trs.x;
        float right = (float) trs.getLogicalBounds().getMaxX() - trs.x;

        d.getStrokes(trs.metrics);

        if (d.strikeThrough) {
            float y = trs.metrics.strikethroughOffset;
            res.add(new Area(d.strikeThroughStroke.createStrokedShape(
                    new Line2D.Float(left, y, right, y)
            )));
        }

        if (d.ulOn) {
            float y = trs.metrics.underlineOffset;
            res.add(new Area(d.ulStroke.createStrokedShape(
                    new Line2D.Float(left, y, right, y)
            )));
        }

        if (d.imUlStroke != null) {
            float y = trs.metrics.underlineOffset;
            res.add(new Area(d.imUlStroke.createStrokedShape(
                    new Line2D.Float(left, y, right, y)
            )));

            if (d.imUlStroke2 != null) {
                y++;
                res.add(new Area(d.imUlStroke2.createStrokedShape(
                        new Line2D.Float(left, y, right, y)
                )));
            }
        }
View Full Code Here

Examples of com.kjoshi.shareit.responsible.Area

*
*/
public class ChainOfResponsibility {
  public static void main(String[] args) {
    // I am keeping Circle in the last in the chain so starting from Circle
    Area circle = new Circle();
    Area triangle = new Triangle(circle);
    Area rectangle = new Rectangle(triangle);
    Area square = new Square(rectangle);
    for (String shape : listOfShapes()) {
      square.findArea(shape);
    }
  }
View Full Code Here

Examples of com.sonymobile.backlogtool.Area

        Transaction tx = null;
        try {
            tx = session.beginTransaction();

            User user = (User) session.get(User.class, username);
            Area area = (Area) session.get(Area.class, areaName);


            if ((area != null && (area.isAdmin(username) || area.isEditor(username)))
                    || (user != null && user.isMasterAdmin())) {
                //TODO: Check the area for LDAP groups here as well
                hasPermission = true;
                System.out.println("approved edit-permission for user " + authentication.getName()
                        + " area: " + areaName);
View Full Code Here

Examples of com.thinkgem.jeesite.modules.sys.entity.Area

  @ModelAttribute("area")
  public Area get(@RequestParam(required=false) String id) {
    if (StringUtils.isNotBlank(id)){
      return areaService.get(id);
    }else{
      return new Area();
    }
  }
View Full Code Here

Examples of com.vaadin.ui.GridLayout.Area

                    return false;
                }

            } else if (parent instanceof GridLayout) {
                GridLayout gl = (GridLayout) parent;
                Area componentArea = gl.getComponentArea(component);
                boolean rowHasHeight = false;
                for (int row = componentArea.getRow1(); !rowHasHeight
                        && row <= componentArea.getRow2(); row++) {
                    for (int column = 0; !rowHasHeight
                            && column < gl.getColumns(); column++) {
                        Component c = gl.getComponent(column, row);
                        if (c != null) {
                            rowHasHeight = !hasRelativeHeight(c);
View Full Code Here
TOP
Copyright © 2015 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.