Examples of Area


Examples of java.awt.geom.Area

    float xVertex3 = vertices [2 * vertexIndex3];
    float yVertex3 = vertices [2 * vertexIndex3 + 1];
    if ((xVertex2 - xVertex1) * (yVertex3 - yVertex2) - (yVertex2 - yVertex1) * (xVertex3 - xVertex2) > 0) {
      if (quadrilateralIndex > 0 && quadrilateralIndex % 1000 == 0) {
        // Add now current path to area otherwise area gets too slow
        nodeArea.add(new Area(geometryPath));
        geometryPath.reset();
      }
      geometryPath.moveTo(xVertex1, yVertex1);     
      geometryPath.lineTo(xVertex2, yVertex2);     
      geometryPath.lineTo(xVertex3, yVertex3);
View Full Code Here

Examples of java.awt.geom.Area

      // If room isn't singular retrieve all the points of its different polygons
      List<float [][]> roomPoints = new ArrayList<float[][]>();
      Map<Integer, List<float [][]>> roomHoles = new HashMap<Integer, List<float [][]>>();
      List<Room> homeRooms = this.home.getRooms();
      if (!room.isSingular() || homeRooms.get(homeRooms.size() - 1) != room) {       
        Area roomArea = new Area(getShape(points));
        if (homeRooms.contains(room)) {
          // Remove other rooms surface that may overlap the current room
          for (int i = homeRooms.size() - 1; i > 0 && homeRooms.get(i) != room; i--) {
            Room otherRoom = homeRooms.get(i);
            if (roomPart == FLOOR_PART && otherRoom.isFloorVisible()
                || roomPart == CEILING_PART && otherRoom.isCeilingVisible()) {
              roomArea.subtract(new Area(getShape(otherRoom.getPoints())));
            }
          }
        }
        // Retrieve the points of the different polygons
        // and reverse their points order if necessary
        List<float []> currentPathPoints = new ArrayList<float[]>();
        roomPoints = new ArrayList<float[][]>();
        float [] previousRoomPoint = null;
        int i = 0;
        for (PathIterator it = roomArea.getPathIterator(null); !it.isDone(); ) {
          float [] roomPoint = new float[2];
          switch (it.currentSegment(roomPoint)) {
            case PathIterator.SEG_MOVETO :
            case PathIterator.SEG_LINETO :
              if (previousRoomPoint == null
View Full Code Here

Examples of jodd.json.model.cat.Area

    assertEquals(2, seatCategories.size());
    SeatCategory seatCategory = seatCategories.get(0);
    assertEquals(338937295, seatCategory.getSeatCategoryId().longValue());
    List<Area> areas = seatCategory.getAreas();
    assertEquals(11, areas.size());
    Area area = areas.get(0);
    assertEquals(205705999, area.getAreaId().longValue());
    assertEquals(0, area.getBlockIds().length);
    JDateTime start = performance.getStart();
    assertEquals(1372701600000L, start.getTimeInMillis());
    assertEquals("PLEYEL_PLEYEL", performance.getVenueCode());

    // seatCategoryNames
View Full Code Here

Examples of no.ugland.utransprod.model.Area

    transportCost.setPlace(excelUtil.readCell(row,
        COLUMN_TRANSPORT_COST_PLACE, null));
    String areaCode = excelUtil.readCell(row,
        COLUMN_TRANSPORT_COST_AREA_CODE, "%1$04.0f");

    Area area = areaManager.load(areaCode);
    if (area == null) {
      throw new ProTransException("Kommunenr " + areaCode
          + " finnes ikke!");
    }
    transportCost.setArea(area);
View Full Code Here

Examples of org.apache.fop.area.Area

     * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
     */
    public void addChildArea(Area childArea) {
        // Make sure childArea is inline area
        if (childArea instanceof InlineArea) {
            Area parent = getCurrentArea();
            if (getContext().resolveLeadingSpace()) {
                addSpace(parent,
                         getContext().getLeadingSpace().resolve(false),
                         getContext().getSpaceAdjust());
            }
            parent.addChildArea(childArea);
        }
    }
View Full Code Here

Examples of org.apache.fop.layout.Area

        // one less because of the "continue"
        i = this.marker - 1;
        continue;
      }
      // current column area
      Area currentArea = bac.getNextArea(fo);
      // temporary hack for IDReferences
      currentArea.setIDReferences(bac.getIDReferences());
      if (bac.isNewSpanArea())
      {
        this.marker = i;
        markerSnapshot = this.getMarkerSnapshot(new Vector());
      }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Area

  DocumentManager docMgr = null;
  try {
      docMgr = (DocumentManager) getManager().lookup(DocumentManager.ROLE);

      Publication pub = getPublication("test");
      Area area = pub.getArea(Publication.AUTHORING_AREA);
      Area trashArea = pub.getArea("trash");
      SiteStructure site = area.getSite();
      SiteNode node = site.getNode(PATH);
      Document doc_en = node.getLink("en").getDocument();
      Document doc_de = node.getLink("de").getDocument();

      DocumentLocator loc = DocumentLocator.getLocator(pub.getId(), "trash", PATH, doc_en.getLanguage());

      docMgr.copyAll(area, PATH, trashArea, PATH);

      SiteStructure trashSite = trashArea.getSite();
      assertTrue(trashSite.contains(PATH));
  } finally {
      if (docMgr != null) {
                getManager().release(docMgr);
            }
View Full Code Here

Examples of org.axsl.area.Area

                // one less because of the "continue"
                i = getProgress() - 1;
                continue;
            }
            // current column area
            final Area currentArea = bac.getMainRefArea().getNormalFlow(fo);
            if (bac.getMainRefArea().isNewSpanArea()) {
                setProgress(i);
                setProgressSnapshot(getProgressSnapshot(new
                        ArrayList<Integer>()));
            }
View Full Code Here

Examples of org.axsl.galley.Area

        for (int i = 0; i < area.getChildCount(); i++) {
            final AreaNode child = area.getChildAt(i);
            if (! (child instanceof Area)) {
                continue;
            }
            final Area areaChild = (Area) child;
            renderDestinations(areaChild);
        }
    }
View Full Code Here

Examples of org.neo4j.gis.spatial.pipes.processing.Area

   
    /**
     * @see Area
     */
    public GeoPipeline calculateArea() {
      return addPipe(new Area());
    }
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.