Examples of Point


Examples of org.postgis.Point

          PGGeom bean = new PGGeom();
          bean.type = geom.getType();
          bean.xyCoords = new double[numPoints * 2];
          for (int j = 0; j < numPoints; j++)
          {
            Point pt = geom.getPoint(j);
            bean.xyCoords[j * 2] = pt.x;
            bean.xyCoords[j * 2 + 1] = pt.y;
          }
          geometricData.add(bean);
        }
View Full Code Here

Examples of org.pptx4j.Point

      svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
     
      line.setX1(b.getOffset().getXAsString() );
      line.setY1(b.getOffset().getYAsString() );
     
      Point otherEnd = b.getOtherCorner();
     
      line.setX2( otherEnd.getXAsString() );
      line.setY2( otherEnd.getYAsString() );

      line.setStyle("stroke:rgb(99,99,99)");
      // You can't see the line in Midori, unless you specify the color.
      // width eg stroke-width:2 is optional
     
View Full Code Here

Examples of org.renjin.graphics.geom.Point

  public static final int NPC = 17;

  @Internal
  @DataParallel
  public static double grconvertX(@Current Context context, @Recycle double x, int from, int to) {
    return grConvert(context, new Point(x, Double.NaN), from, to).getX();
  }
View Full Code Here

Examples of org.rometools.feed.module.georss.geometries.Point

            if (posElement != null) {
                geoRSSModule = new GMLModuleImpl();
                String coordinates = posElement.getText();
                String[] coord = GeoRSSUtils.trimWhitespace(coordinates).split(" ");
                Position pos = new Position(Double.parseDouble(coord[0]), Double.parseDouble(coord[1]));
                geoRSSModule.setGeometry(new Point(pos));
            }
        } else if (lineStringElement != null) {
            Element posListElement = lineStringElement.getChild("posList", GeoRSSModule.GML_NS);
            if (posListElement != null) {
                geoRSSModule = new GMLModuleImpl();
View Full Code Here

Examples of org.rstudio.core.client.Point

         {
            Element el = inputPanel_.getElement();
            int x = event.getNativeEvent().getClientX();
            int y = event.getNativeEvent().getClientY();

            Point p = new Point(
                  x - el.getAbsoluteLeft(), y - el.getAbsoluteTop());

            showFeedbackAt(p);

            SelectionEvent.fire(LocatorPanel.this, p);
View Full Code Here

Examples of org.sbml.jsbml.ext.layout.Point

 
  /** Calculate the maximum and minium X and Y values for the given layout.
   * Is needed to set the unset nodes in the layout.
   */
  private void setXYRange(Collection<BoundingBox> boxes){
    Point point;
    double x;
    double y;
    boolean setX = false;
    boolean setY = false;
    if (min_x != 0.0 || max_x != 0.0){ setX = true; }
    if (min_y != 0.0 || max_y != 0.0){ setX = true; }
   
    for (BoundingBox box : boxes){
      point = box.getPosition();
      x = point.getX();
      y = point.getY();
      if (x != 0.0){
        if (!setX){
          min_x = x;
          max_x = x;
          setX = true;
View Full Code Here

Examples of org.sgx.yuigwt.yui.util.Point

      "        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc pretium quam eu mi varius pulvinar. Duis orci arcu, ullamcorper sit amet, luctus ut, interdum ac, quam. Pellentesque euismod. Nam tincidunt, purus in ultrices congue, urna neque posuere arcu, aliquam tristique purus sapien id nulla. Etiam rhoncus nulla at leo. Cras scelerisque nisl in nibh. Sed eget odio. Morbi elit elit, porta a, convallis sit amet, rhoncus non, felis. Mauris nulla pede, pretium eleifend, porttitor at, rutrum id, orci. Quisque non urna. Nulla aliquam rhoncus est. \n"+
      "    </p>\n"+
      "</div>");

//    Window.alert( Y.one("#overlay-position")+" - "+Y.one("#overlay-position").getXY());
    Point xy = Y.one("#overlay-position").getXY();
    overlay = Y.newOverlay((OverlayConfig) OverlayConfig.create().
      xy(xy.x()+30, xy.y()+40).
      height("13em").
      width("200px").
      srcNode("#overlay").
      plugins(new PluginBase[]{Y.Plugin().Drag()})
    );
View Full Code Here

Examples of org.spout.api.geo.discrete.Point

   * primary effect is not the same as the secondary effect. Note that in order for the secondary effect to be applied it must differ from the primary effect otherwise a buff will just be applied to
   * the primary effect.
   */
  public void doUpdate() {
    resetUpdateDelay();
    Point pos = getPoint();
    EntityEffectType primary = getPrimaryEffect();
    EntityEffectType secondary = getSecondaryEffect();
    if (getLevels() < 1 || primary == null || primary == EntityEffectType.NONE) {
      return;
    }

    for (Player player : pos.getWorld().getNearbyPlayers(pos, (int) getEffectRange())) {
      Effects effects = player.add(Effects.class);
      effects.add(new EntityEffect(primary, getPrimaryAmplifier(), getEffectDuration()));
      if (secondary != null && secondary != EntityEffectType.NONE && getLevels() == 4 && primary != secondary) {
        effects.add(new EntityEffect(secondary, getEffectDuration()));
      }
View Full Code Here

Examples of org.spoutcraft.api.gui.Point

    });

    addProperty("scrollpos", new Property() {
      @Override
      public void set(Object value) {
        Point p = (Point) value;
        scrollTo(p, false, 0);
      }

      @Override
      public Object get() {
        return mapOutsideToCoords(new Point(0,0));
      }
    });

    setScrollBarPolicy(Orientation.HORIZONTAL, ScrollBarPolicy.SHOW_NEVER);
    setScrollBarPolicy(Orientation.VERTICAL, ScrollBarPolicy.SHOW_NEVER);
View Full Code Here

Examples of org.springframework.data.geo.Point

   * @see DATAREST-279
   */
  @Test
  public void parsesPointFromString() {

    Point reference = new Point(20.9, 10.8);

    assertThat(INSTANCE.convert("10.8,20.9"), is(reference));
    assertThat(INSTANCE.convert(" 10.8,20.9 "), is(reference));
    assertThat(INSTANCE.convert(" 10.8 ,20.9"), is(reference));
    assertThat(INSTANCE.convert(" 10.8 , 20.9 "), is(reference));
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.