Examples of union()


Examples of org.geomajas.gwt.client.spatial.Bbox.union()

          boolean success = false;
          Bbox selectionBounds = new Bbox(0, 0, 0, 0);
          for (Feature feature : features) {
            // if the feature is selected union the bounding box
            if (feature.isSelected()) {
              selectionBounds = selectionBounds.union(feature.getGeometry().getBounds());
              success = true;
            }
          }

          // only zoom when their where really some items selected
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.Bbox.union()

          boolean success = false;
          Bbox selectionBounds = new Bbox(0, 0, 0, 0);
          for (Feature feature : response) {
            // if the feature is selected union the bounding box
            if (feature.isSelected()) {
              selectionBounds = selectionBounds.union(feature.getGeometry().getBounds());
              success = true;
            }
          }

          // only pan when their where really some items selected
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.Bbox.union()

    if (!isEmpty()) {
      for (LineString lineString : lineStrings) {
        if (bounds == null) {
          bounds = lineString.getBounds();
        } else {
          bounds = bounds.union(lineString.getBounds());
        }
      }
    }
    return bounds;
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.Bbox.union()

    if (!isEmpty()) {
      for (Polygon polygon : polygons) {
        if (bounds == null) {
          bounds = polygon.getBounds();
        } else {
          bounds = bounds.union(polygon.getBounds());
        }
      }
    }
    return bounds;
  }
View Full Code Here

Examples of org.geotools.util.NumberRange.union()

              if (dimension.getRange() == null)
                    return null;
                else if (range == null)
                    range = dimension.getRange();
                else
                    range.union(dimension.getRange());
      }
            return range;
        }

        private void handleNullValues(List<CoverageDimensionInfo> dimensions) {
View Full Code Here

Examples of org.gradle.api.internal.artifacts.ivyservice.resolveengine.ModuleVersionSpec.union()

                selector = ModuleVersionSpec.forExcludes(); //includes all
            } else {
                selector = transitiveEdges.get(0).getSelector();
                for (int i = 1; i < transitiveEdges.size(); i++) {
                    DependencyEdge dependencyEdge = transitiveEdges.get(i);
                    selector = selector.union(dependencyEdge.getSelector());
                }
            }
            selector = selector.intersect(ModuleVersionSpec.forExcludes(metaData.getExcludeRules()));
            return selector;
        }
View Full Code Here

Examples of org.hsqldb.navigator.RowSetNavigatorData.union()

            }

            switch (unionType) {

                case UNION :
                    rowSet.union(session, tempNavigator);
                    break;

                case UNION_ALL :
                    rowSet.unionAll(session, tempNavigator);
                    break;
View Full Code Here

Examples of org.infinispan.distribution.ch.ConsistentHashFactory.union()

            unionTopologyId = topology.getTopologyId();
         }
         if (currentCHUnion == null) {
            currentCHUnion = topology.getCurrentCH();
         } else {
            currentCHUnion = chFactory.union(currentCHUnion, topology.getCurrentCH());
         }

         if (pendingCHUnion == null) {
            pendingCHUnion = topology.getPendingCH();
         } else {
View Full Code Here

Examples of org.infinispan.distribution.ch.ConsistentHashFactory.union()

         if (pendingCHUnion == null) {
            pendingCHUnion = topology.getPendingCH();
         } else {
            if (topology.getPendingCH() != null)
               pendingCHUnion = chFactory.union(pendingCHUnion, topology.getPendingCH());
         }
      }

      // We have added each node to the cache status when we received its status response
      List<Address> members = cacheStatus.getMembers();
View Full Code Here

Examples of org.infinispan.distribution.ch.impl.DefaultConsistentHashFactory.union()

      // create CHes
      DefaultConsistentHashFactory chf = new DefaultConsistentHashFactory();
      DefaultConsistentHash ch1 = chf.create(new MurmurHash3(), 2, 40, members1, null);
      final DefaultConsistentHash ch2 = chf.updateMembers(ch1, members2, null);
      DefaultConsistentHash ch3 = chf.rebalance(ch2);
      DefaultConsistentHash ch23 = chf.union(ch2, ch3);

      log.debug(ch1);
      log.debug(ch2);

      // create dependencies
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.