Examples of Point


Examples of org.springframework.data.mongodb.core.geo.Point

    assertLocations(locations, "A", "C", "D");
  }

  @Test public void shouldFindWithinBox() {
    // when
    List<Location> locations = repo.findByPositionWithin(new Box(new Point(
        0.25, 0.25), new Point(1, 1)));

    // then
    assertLocations(locations, "B", "C");
  }
View Full Code Here

Examples of org.springframework.data.solr.core.geo.Point

        { DefaultValueFunction.defaultValue(new SimpleField("field_1"), 1), "{!func}def(field_1,1)" },
        { DefaultValueFunction.defaultValue(new SimpleField("field_1"), new Foo()), "{!func}def(field_1,foo())" },
        { DefaultValueFunction.defaultValue(new Foo(), "value"), "{!func}def(foo(),value)" },
        { DefaultValueFunction.defaultValue(new Foo(), 1), "{!func}def(foo(),1)" },
        { DefaultValueFunction.defaultValue(new Foo(), new Bar()), "{!func}def(foo(),bar())" },
        { DistanceFunction.euclideanDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(2,1,2,3,4)" },
        { DistanceFunction.euclideanDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(2,1,2,3,4,5,6)" },
        { DistanceFunction.infiniteNormDistance().between(new Point(1, 2), new Point(3, 4)),
            "{!func}dist(Infinite,1,2,3,4)" },
        { DistanceFunction.infiniteNormDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(Infinite,1,2,3,4,5,6)" },
        { DistanceFunction.manhattanDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(1,1,2,3,4)" },
        { DistanceFunction.manhattanDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(1,1,2,3,4,5,6)" },
        { DistanceFunction.sparsenessDistance().between(new Point(1, 2), new Point(3, 4)), "{!func}dist(0,1,2,3,4)" },
        { DistanceFunction.sparsenessDistance().between(new Point(1, 2, 3), new Point(4, 5, 6)),
            "{!func}dist(0,1,2,3,4,5,6)" },
        { DivideFunction.divide(new Foo()).by(new Bar()), "{!func}div(foo(),bar())" },
        { DivideFunction.divide(new Foo()).by(Long.valueOf(3)), "{!func}div(foo(),3)" },
        { DivideFunction.divide(new Foo()).by("field_1"), "{!func}div(foo(),field_1)" },
        { DivideFunction.divide(new Foo()).by(new SimpleField("field_1")), "{!func}div(foo(),field_1)" },
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.geometry.Point

        this.hideDelay = delay;
    }

    protected void setOpacity(int opacity) {
        if (popup.getOpacity() == Opacity.TRANSPARENT) {
            popup.setLocation(new Point(clientX + POPUP_OFFSET_X, clientY
                    + POPUP_OFFSET_Y));
        }

        popup.setOpacity(opacity);
    }
View Full Code Here

Examples of org.waveprotocol.wave.client.paging.Traverser.Point

   * against a trivial brute-force implementation.
   */
  private void testStartWithin(double start, double end, double count) {
    for (int i = 0; i < count; i++) {
      double position = start + i * (end - start) / (count - 1);
      Point expected = locateStartWithin(root, position);
      Point actual = Traverser.locateStartWithin(root, position);
      assertEquals(expected, actual);
    }
  }
View Full Code Here

Examples of org.yaml.snakeyaml.immutable.Point

        List<String> list = new ArrayList<String>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        bean.setList(list);
        Point p = new Point(1.0, 2.0);
        bean.setPoint(p);
        return bean;
    }
View Full Code Here

Examples of org.zkoss.ganttz.data.DependencyType.Point

                    : graph.outgoingEdgesOf(this.task);
        }

        public boolean sendsModificationsThrough(D dependency) {
            V source = getDependencySource(dependency);
            Point dependencySourcePoint = getSourcePoint(adapter
                    .getType(dependency));

            return source.equals(task)
                    && (!isContainer || pointsModified
                            .contains(dependencySourcePoint));
View Full Code Here

Examples of org.zkoss.openlayers.geometry.Point

            pair("style", layer_style),
            pair("renderers",
                new Object[] { "SVG", "VML", "Canvas" })));

    // create a point feature
    Point point = new Point(-111.04, 45.68);
    Vector pointFeature = new Vector(point, null, style_blue);
    Point point2 = new Point(-105.04, 49.68);
    Vector pointFeature2 = new Vector(point2, null, style_green);
    Point point3 = new Point(-105.04, 49.68);
    Vector pointFeature3 = new Vector(point3, null, style_mark);

    // create a line feature from a list of points
    List<Point> pointList = new ArrayList<Point>();
    Point newPoint = point;
    for (int p = 0; p < 15; ++p) {
      newPoint = new Point(newPoint.getX() + Math.random(),
          newPoint.getY() + Math.random());
      pointList.add(newPoint);
    }

    Vector lineFeature = new Vector(new LineString(pointList), null,
        style_green);

    // create a polygon feature from a linear ring of points
    List<Point> point2List = new ArrayList<Point>();
    for (int p = 0; p < 6; ++p) {
      double a = p * (2 * Math.PI) / 7;
      double r = Math.random() + 1;
      Point newPoint1 = new Point(point.getX() + (r * Math.cos(a)),
          point.getY() + (r * Math.sin(a)));
      point2List.add(newPoint1);
    }
    point2List.add(point2List.get(0));

 
View Full Code Here

Examples of pivot.wtk.Point

                        if (image != null) {
                            imageView.setImage((Image)null);
                            content = new LocalManifest();
                            content.putImage(image);
                            offset = new Point(x - (imageView.getWidth() - image.getWidth()) / 2,
                                y - (imageView.getHeight() - image.getHeight()) / 2);
                        }

                        return (image != null);
                    }
View Full Code Here

Examples of pl.balon.gwt.diagrams.client.connection.data.Point

    prepareElements(data.getPoints().size()-1);

    for (int i = 0; i < elements.size(); i++) {
      Element div = (Element) elements.get(i);
      Point start = (Point) data.getPoints().get(i);
      Point end = (Point) data.getPoints().get(i+1);
     
      String style = "gwt-diagrams-line";

      DOM.setElementAttribute(div, "style", "");
      DOM.setElementProperty(div, "className", style);
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.Point

  public Point endPoint;
  public boolean vertical;

  public SectionData(int startX, int startY, int endX, int endY, boolean vertical) {

    this.startPoint = new Point(startX, startY);
    this.endPoint = new Point(endX, endY);
    this.vertical = vertical;
  }
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.