Examples of Point


Examples of org.eclipse.swt.internal.win32.POINT

   *            contains the client coordinates to be converted.
   * @return converted point of the sreen coordinates.
   */
  public static Point clientToScreen(int handle, Point point)
  {
    POINT pt = new POINT();
    pt.x = point.x;
    pt.y = point.y;
    OS.ClientToScreen(handle, pt);
    return new Point(pt.x, pt.y);
  }
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Point

    Set<Point> cellsToRemoveFillers = Sets.newHashSet();
    // replace widget with fillers
    if (forMove) {
      for (int x = tableData.x; x < tableData.x + tableData.width; x++) {
        for (int y = tableData.y; y < tableData.y + tableData.height; y++) {
          Point cell = new Point(x, y);
          cellsToAddFillers.add(cell);
        }
      }
    }
    // remove fillers from occupied cells
    for (int x = cells.x; x < cells.right(); x++) {
      for (int y = cells.y; y < cells.bottom(); y++) {
        Point cell = new Point(x, y);
        cellsToAddFillers.remove(cell);
        if (isFiller(grid[y][x])) {
          cellsToRemoveFillers.add(cell);
        }
      }
View Full Code Here

Examples of org.geolab3d.geometry.Point

    super.tearDown();
  }
 
  @Test
  public void testGetX() {
    Point p = new Point(1.,2.,3.);
    assertEquals(1.0, p.getX(), 0);
  }
View Full Code Here

Examples of org.geolatte.geom.Point

        }
        if (geometry.haveMeasure) {
            point[offset++] = geometry.m;
        }
        DimensionalFlag flag = DimensionalFlag.valueOf(d == 3, geometry.haveMeasure);
        return new Point(PointCollectionFactory.create(point, flag, crs));
    }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.Point

    tempPoint = new GfxGeometry("PointDrawController.updatePoint");
    tempPoint.setStyle(drawStyle);
    tempPoint.setSymbolInfo(symbolStyle);

    Coordinate coords = getTransformer().worldToPan(geometry.getCoordinate());
    Point point = (Point) geometry.getGeometryFactory().createPoint(coords);
    tempPoint.setGeometry(point);
    mapWidget.render(tempPoint, RenderGroup.VECTOR, RenderStatus.ALL);
  }
View Full Code Here

Examples of org.geomajas.puregwt.client.spatial.Point

    }
  }

  public Path toPath(Geometry geometry) {
    if (geometry instanceof Point) {
      Point point = (Point) geometry;
      return new Path((int) point.getX(), (int) point.getY());
    } else if (geometry instanceof LineString) {
      return toPath((LineString) geometry);
    } else if (geometry instanceof LinearRing) {
      return toPath((LinearRing) geometry);
    } else if (geometry instanceof Polygon) {
View Full Code Here

Examples of org.gephi.preview.api.Point

    public void renderGraphLabelBorders(Graph graph) {
    }

    public void renderNode(Node node) {
        Point center = node.getPosition();
        Color c = node.getColor();
        Color bc = node.getBorderColor();

        cb.setRGBColorStroke(bc.getRed(), bc.getGreen(), bc.getBlue());
        cb.setLineWidth(node.getBorderWidth());
        cb.setRGBColorFill(c.getRed(), c.getGreen(), c.getBlue());
        cb.circle(center.getX(), -center.getY(), node.getRadius());
        cb.fillStroke();
    }
View Full Code Here

Examples of org.geppetto.core.visualisation.model.Point

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
    p2.setZ(new Double(-3.999));
    cylinder.setPosition(p2);
    Point p3 = new Point();
    p3.setX(new Double(6.3));
    p3.setY(new Double(8));
    p3.setZ(new Double(-3.999));
    cylinder.setDistal(p3);
    cylinder.setRadiusBottom(new Double(34.55));
    cylinder.setRadiusTop(new Double(34.55));

    CylinderNode cylinder2 = new CylinderNode("cylinder");
View Full Code Here

Examples of org.gtugs.domain.Point

      JSONObject placemark =
          (JSONObject) ((JSONArray) root.get("Placemark")).get(0);
      JSONArray coordinates =
          (JSONArray) ((JSONObject) placemark.get("Point")).get("coordinates");

      Point point = new Point();
      point.setLatitude((Double) coordinates.get(1));
      point.setLongitude((Double) coordinates.get(0));

      return point;
    } catch (MalformedURLException ex) {
      return null;
    } catch (NullPointerException ex) {
View Full Code Here

Examples of org.gwt.mosaic.core.client.Point

    return moveDragController;
  }

  public Point getPopupPosition(WindowPanel windowPanel) {
    final int[] borders = DOM.getBorderSizes(getElement());
    return new Point(windowPanel.getAbsoluteLeft()
        - (getAbsoluteLeft() + borders[3]), windowPanel.getAbsoluteTop()
        - (getAbsoluteTop() + borders[0]));
  }
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.